From b6d7b48d2ec084f94f0e8e57b6c46efa8a4534c9 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 20 Apr 2015 11:50:05 +0200 Subject: [PATCH] i10n: add Settings page to translatable resources --- .tx/config | 29 ++++- .../Base.lproj/AboutViewController.strings | Bin 1406 -> 1382 bytes .../Base.lproj/ChatRoomViewController.strings | Bin 3404 -> 3344 bytes Classes/Base.lproj/ChatViewController.strings | Bin 1536 -> 1508 bytes .../ContactDetailsLabelViewController.strings | Bin 402 -> 394 bytes .../ContactDetailsViewController.strings | Bin 1412 -> 1384 bytes .../Base.lproj/ContactsViewController.strings | Bin 1818 -> 1786 bytes .../Base.lproj/DialerViewController.strings | Bin 4530 -> 4450 bytes .../DialerViewController~ipad.strings | Bin 4752 -> 4668 bytes .../FirstLoginViewController.strings | Bin 1306 -> 1282 bytes .../HistoryDetailsViewController.strings | Bin 4874 -> 4782 bytes .../Base.lproj/HistoryViewController.strings | Bin 1980 -> 1944 bytes .../Base.lproj/ImageViewController.strings | Bin 402 -> 394 bytes .../Base.lproj/InCallViewController.strings | Bin 260 -> 256 bytes .../IncomingCallViewController.strings | Bin 1586 -> 1558 bytes .../IncomingCallViewController~ipad.strings | Bin 3186 -> 3130 bytes .../Base.lproj/WizardViewController.strings | Bin 1250 -> 1226 bytes .../WizardViewController~ipad.strings | Bin 2522 -> 2474 bytes Classes/Base.lproj/WizardViews.strings | Bin 19026 -> 18742 bytes .../LinphoneUI/Base.lproj/UICallBar.strings | Bin 9834 -> 9650 bytes .../Base.lproj/UICallBar~ipad.strings | Bin 7654 -> 7510 bytes .../LinphoneUI/Base.lproj/UICallCell.strings | Bin 9704 -> 9532 bytes .../LinphoneUI/Base.lproj/UIChatCell.strings | Bin 1508 -> 1480 bytes .../Base.lproj/UIChatRoomCell.strings | Bin 1822 -> 1798 bytes .../Base.lproj/UIConferenceHeader.strings | Bin 648 -> 636 bytes .../Base.lproj/UIContactCell.strings | Bin 778 -> 762 bytes .../Base.lproj/UIContactDetailsFooter.strings | Bin 450 -> 442 bytes .../Base.lproj/UIContactDetailsHeader.strings | Bin 676 -> 664 bytes .../Base.lproj/UIHistoryCell.strings | Bin 642 -> 630 bytes .../LinphoneUI/Base.lproj/UIMainBar.strings | Bin 2740 -> 2688 bytes .../Base.lproj/UIMainBar~ipad.strings | Bin 3856 -> 3780 bytes .../LinphoneUI/Base.lproj/UIStateBar.strings | Bin 1870 -> 1838 bytes Resources/en.lproj/Localizable.strings | 21 ++++ Resources/fr.lproj/Localizable.strings | Bin 29550 -> 29550 bytes Settings/InAppSettings.bundle/Advanced.plist | 6 +- Settings/InAppSettings.bundle/Root.plist | 2 +- .../ar.lproj/Advanced.strings | 3 - .../ar.lproj/Root.strings | 5 +- .../de.lproj/Tunnel.strings | Bin 0 -> 404 bytes .../en.lproj/Advanced.strings | 53 ++------- .../en.lproj/Audio.strings | 52 ++------- .../en.lproj/Call.strings | 14 +-- .../en.lproj/Network.strings | 55 +--------- .../en.lproj/Root.strings | 75 +++---------- .../en.lproj/Tunnel.strings | 19 +--- .../en.lproj/Video.strings | 18 --- .../fr.lproj/Advanced.strings | 5 +- .../fr.lproj/Root.strings | 5 +- .../ja.lproj/Network.strings | Bin 0 -> 1946 bytes .../ja.lproj/Tunnel.strings | Bin 0 -> 400 bytes .../nl.lproj/Network.strings | Bin 0 -> 1946 bytes .../nl.lproj/Tunnel.strings | Bin 0 -> 400 bytes .../ru.lproj/Advanced.strings | 5 +- .../ru.lproj/Root.strings | 5 +- .../ru.lproj/Tunnel.strings | Bin 0 -> 400 bytes .../zh_TW.lproj/Tunnel.strings | Bin 0 -> 404 bytes Tools/generate_strings_files.sh | 103 ++++++++++++------ 57 files changed, 170 insertions(+), 305 deletions(-) create mode 100644 Settings/InAppSettings.bundle/de.lproj/Tunnel.strings create mode 100644 Settings/InAppSettings.bundle/ja.lproj/Network.strings create mode 100644 Settings/InAppSettings.bundle/ja.lproj/Tunnel.strings create mode 100644 Settings/InAppSettings.bundle/nl.lproj/Network.strings create mode 100644 Settings/InAppSettings.bundle/nl.lproj/Tunnel.strings create mode 100644 Settings/InAppSettings.bundle/ru.lproj/Tunnel.strings create mode 100644 Settings/InAppSettings.bundle/zh_TW.lproj/Tunnel.strings diff --git a/.tx/config b/.tx/config index cf79ceeeb..3f7fcb407 100644 --- a/.tx/config +++ b/.tx/config @@ -4,7 +4,34 @@ minimum_perc = 1 [linphone-ios.localizablestrings] file_filter = Resources/.lproj/Localizable.strings -source_file = Resources/en.lproj/Localizable.strings +source_lang = en + +[linphone-ios.inappsettingsadvancedstrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Advanced.strings +source_lang = en + +[linphone-ios.inappsettingsaudiostrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Audio.strings +source_lang = en + +[linphone-ios.inappsettingscallstrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Call.strings +source_lang = en + +[linphone-ios.inappsettingsnetworkstrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Network.strings +source_lang = en + +[linphone-ios.inappsettingsrootstrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Root.strings +source_lang = en + +[linphone-ios.inappsettingstunnelstrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Tunnel.strings +source_lang = en + +[linphone-ios.inappsettingsvideostrings] +file_filter = Settings/InAppSettings.bundle/.lproj/Video.strings source_lang = en [linphone-ios.aboutviewcontrollerstrings] diff --git a/Classes/Base.lproj/AboutViewController.strings b/Classes/Base.lproj/AboutViewController.strings index 2f4d991a10a599685cd9a7f89932a851a7956f64..ba945f814f57f621cb711e1f3bbf2ef0fa99dcc3 100644 GIT binary patch delta 40 tcmeyz^^9wR%tVDX6ED1&sGzd=0V5-jn#{rcV4{M_WCfNbAnFfG698Ys5HbJ& delta 69 zcmaFH^^a?U46`SL)8zFmrV|4yAWTNpiEoa8n48x#sxrdFCjVf1099%}nU7@=l)W7Q DB99i8 diff --git a/Classes/Base.lproj/ChatRoomViewController.strings b/Classes/Base.lproj/ChatRoomViewController.strings index e43729de39194c1af3e534c8dea8c5a13becefd6..93c9cfce9417d35e1300e9b7d6aa24f4a0aa307d 100644 GIT binary patch delta 96 zcmX>jH9=~E%tVDtlOM2{Ox9v-n!JJW8koJ0scoWy*yK3oB@-2#CVQ|<0gCRLT*Mxn;8xmlxyY3EcO93T^=aN*N{s delta 167 zcmbOrbw+A}46`SL)8x0z&J*J%fS42CZik6Xe#STjB4j#w9a9^GDL&bYc?nd-b(riA z7O?E(LN?LKEG#;c_pxpPD=B1K3!*p6va>RR1r#~HgXy=--jnZficBu!oB>wA%jFGG V0CdRYS=@8LiVE3OCr9yY0{~QzHD3S# diff --git a/Classes/Base.lproj/ChatViewController.strings b/Classes/Base.lproj/ChatViewController.strings index df5f383df4a4aa209ced29f0ff7f927e0960c020..0a6a5b80297c96e5c6bb0fccd1a556f1fb22c618 100644 GIT binary patch delta 51 zcmZqRdBQzGW}?ESi3(zqc^DT=-oUtRqJq=pHB5UTB65=#Ft6Jj#KOTiIfzAOausVE E0Or;av;Y7A delta 80 zcmaFD-M}+JhS`(BY2sV)$puV06XPa8c-vuuyBHV1m<3EPAWYNAJV!Z delta 93 zcmaFC)xteNhS`(BY4Ss6=ZSF>piJ?}*I48xD={{~`MVewz?4m%!-T3Xff=UmK3x4Z GmPr7V?jHpJ diff --git a/Classes/Base.lproj/ContactsViewController.strings b/Classes/Base.lproj/ContactsViewController.strings index c293d1ca73a34dbf2402979f95f16d0dafa764e0..933e3a6291d9d462caaae3300a21f5ffff9256f7 100644 GIT binary patch delta 88 zcmbQm_ltLe%w!`*vB~e4^(Ma3m>kC>HMxsXWa6$8py(!$%;tZLJd8kw$z&}ifyqJ4 dO;F`GfV9~p);VDAKSrI&k65RGm91mT0RUNB9*qD1 delta 109 zcmeyxJBx3E46`SL)8vgT;*)PN>rG5J1?8GgPGGD-lG2$h$MgWoH=R6%S!A*sa~+cW S4Ji9ETx=HW0l4};wj2PG_#-(0 diff --git a/Classes/Base.lproj/DialerViewController.strings b/Classes/Base.lproj/DialerViewController.strings index ec1ffab035524ce65776bf7aa9d82f4f4f361971..88646409506cf1d1a11710f4cdac606c012a1cda 100644 GIT binary patch delta 166 zcmdm_{77kn%ti$k#)%3tn_UMBDR4ILf5fF zXdey;EyW3;UvN$Vt3SjA;ZNY60p{oNKxiM{6;M9MndFP084Ex|eiOn+kq@lS!- zlh`402^w%cdzXVJ(3G4xizXG#A H3C;rmy_7qZ delta 245 zcmdm^GC_5M46`SL(`0!@*@+e}K+MhZjJAwmu|ziK$@7>dz}W@NEpWCOO9zZSiFF2y zIr$bVO!zchERP)~<~-Sg1HoqEM6k~wv8Qn%#1ps?Y%QK0U^5@`TnE#I0^XCE_> XT;N-R#O9d1kADkP-D|k`Ji&PY)1OAh diff --git a/Classes/Base.lproj/FirstLoginViewController.strings b/Classes/Base.lproj/FirstLoginViewController.strings index 9a0f04f2db3de5089d09a096ce2846583b705ac0..389b7f246bb34acdde28388c90ac64872c100ae0 100644 GIT binary patch delta 46 xcmbQm)xt_r9uUuf?*dqX27d?80EfvM{Cty{1SWyS_6SUv93c1&q%1*b6#(Z` BKmPy# delta 345 zcmZ3d+NCx@hS`(BY4Sy0@yUFGIuqk2K)I%ql^B~q?9GcASsB5C=UGK3aq3Ne$H+JN z2h$R$km}?E%pGuc4oeL}soCTetUQzLSSLY+Zo-wFVe3IwrobUGc^msIu#i8;T!hpW zxQ-|;xyeyHGLz#t#U^`j`M|}wxcMemu}DpRz!d@(gZg8#4kyRtI_^18G1JL@JZ&iQ zReUm&jd&M8#h!!d^Q@|q@9@Dq1N5uTWHAAu$r?bVa|FaDzu=F7E6Wgog%c>)9zcyT NooprOH@QH_4gd!NXNv#; diff --git a/Classes/Base.lproj/HistoryViewController.strings b/Classes/Base.lproj/HistoryViewController.strings index 39300297a0e53c838574b1e1dc07b6506b22ec54..d29c7a5b6ea885cd8f6dc239ca31ee0a6d54c45c 100644 GIT binary patch delta 76 zcmdnPKZAdQ%w!=pr-?7LCiX0vY{a+;#G9f{7FICNnYKn*4zA!{iHGVUx9(qc(RivoKDc!14nqpfY&_>l~nh poXLCGih$}L0mUmOPvB^P%2`Y<;7kE(E}QJfRR!@yVwcbtcBmfO1VIYcX~qNgaTT?_+9%i$^h^fU;Kt09Jk# AZvX%Q diff --git a/Classes/Base.lproj/WizardViewController~ipad.strings b/Classes/Base.lproj/WizardViewController~ipad.strings index be01bf7eecbbb9df0e342ff77047c6bd4f6eddce..75a68e71e12908f47a12b715a214cc12dac2ab43 100644 GIT binary patch delta 132 zcmca5yh?b2%;ZVzVw3ZjbtY?Z@J%e}0&?Rf$1o;9ggHVcYcb^j*(Q_EF||RJo&fXn uSo)y+h{<`ZB~URPAX{p30-Fz14s7fsc97CT5Fw5uV5R4nG$v2t^Z)?#BrWX# delta 172 zcmZ1_d`ozO46`SL(_}>!@yVwcbtcBmfO1VI&tun`*daDKi_r^7#R0hVKBhLfcog#q zDEly6>=(-!C_8bo8e1A%9B9krb8K^Qr*Ra(<@PaY0QpjrYdG})jOsA% diff --git a/Classes/Base.lproj/WizardViews.strings b/Classes/Base.lproj/WizardViews.strings index 8083292b396d888d2374ffa4feafa3a890a2441f..302614eda41a29a1a8526e97dab2105c18488632 100644 GIT binary patch delta 696 zcmZWnJ!lhQ80KqY2%%n*{=_p$&uctOj7dyu#2DKc)YKM4f`fDjk|C5JnTj|_DIJ4k zIPUoOr52J98w%5gM*YHM+Xsc@VmQsDY(7w^SnRL`}3KS4;oS9@8mK; zD4?)5X%U?IBTVqbEhCTL-enwkbqj>xNkj67@Yt8e*K<9NJ%#D}eugvHsXt0sD9|9N zUw8>)T!e4@8LDEF+fB&Q8su9Ns379#yoDE0n$BTISl5EzZ1-?Ag-4;rnW6&96JGSg z3n+$b9M9uZSo@DxCl_!s;qY6Nn%k;1E#i$Q3u7ubY`4QlU1z0;WN935(BQx;>|Ok6 zYc^vd=3KGS5fo{`{n~O+?wvrR4%mLnS|RW z8!JYf%hJUHj_x>HqKj=NFHQ06r5b3d$EtU^WBpU7ObN_n2i<$R1)y{P*sUk|oy&GB kPY|d$m)onn=Wz}DNxm$kREG6NkPSEp?a~U9+H5H z9+ZR-)V4hmi;f6>+EaLLuk+Z@W2o-`VZ>U|k!Vef zL1_O(!cM!F2@Ux^6sLkh$2L{SIDe6CdUDuw%J^_#lEsmEWZg2BT~{ftiMR2<)rAE& z(=*Nq2%S}~#gP^S_&SFW5H1m8H{arZ1f_$O7Cw#a;jX8&4YoqML>mnYHvFdEiQ`oo| w{r@Y4bo_{F=cVf?i+1=#1)Jlm#O6|e$g*D?#8x^AcY2ywO*DVAqVrpS0m#fDLI3~& diff --git a/Classes/LinphoneUI/Base.lproj/UICallBar.strings b/Classes/LinphoneUI/Base.lproj/UICallBar.strings index 726f09e44184af812060f60e5969167218f93b6b..dd9323ebd4d9b5ebe590d880a8dd13a17832f15e 100644 GIT binary patch delta 436 zcmaFmv&nmc%;X|Ir-`R{Cg!z(Sd%RnXMkxjrYT_h1Jj(zLMjQ9KQJeO`CP0*lkbVk zOrFOoHu(-q%;ZVZCX)+TCxPWW*k*wF66{@I{tI>pUr$PF@)Sv-$zM49z~UX8N5J$X zE{GjD+#O)P6%T~w;Dxy1883)`3M|*e50MKHfY5S+5c&<2-X#R#cL+o1Qz9ahb;P75 zCx}W+o+A<3J9!0bfj#L0J^dL^u?wUoOMV5^uJdqxvsA?5W0>ZLi-3nXemJm{Q^qMF>y@ZC)5MhJ3$yC7bgPo zgN^7Cpg73wa+BxC=uOTNm6#kS7BG2}*e|$vmaN`n9dU`tS`qw~Ufb delta 442 zcmca+^~`#L46`SL)5MR?6XT{pSofg!`Kvw)gSC-0Ngm~6ozFeFUZGo9)I=MhxZ!(9h9{?~Pk}&`P diff --git a/Classes/LinphoneUI/Base.lproj/UICallCell.strings b/Classes/LinphoneUI/Base.lproj/UICallCell.strings index 9d95512170df08bb68401dea489da152d00fde17..d1f90f4042f77db0f84fd7a9dd4ba5eba9f0d355 100644 GIT binary patch delta 379 zcmX|*KS)AR7{z&NrS&v>sl9GD|D_U5juIjwO%@Lkag2tB1_xG61j zgHwn$g=2)1JfbO@nj9J=nx)T+IDO}yd%pAiCa1%q&e8Yg?=PP5>rNmm>9D20xdpeg zgLhvFhb|c*#xZl2>8}XW^@7}L0p^N9^Hb>aHAC#=+&$_s@Zjkz-ZEP2HokW?bT_JS z$TqI|6>{GCpzq}p9q28CCBFjhWSDI>(DYkN->0OJb}$ULOaa-BWJs%MNeZTsW5l;@ z%AVmhFyH5>2bv;=3i#uDCm96Jo1~ zOmt7h5kDdDFO>H`M9)q5XTf68Ora8e5#6C46`SL)8vZ+juT_HfSHM$s*_C^CxF@3EZ&p(m{!4*O#Z>N1g_=)a}9{S z*_wrw5iDrWdLK$VPflQ)0cTsW&jGV93iwW*!@)P%fMXhjFXla2fHMfpPUKt)SF=sQ zZt?`KNnpMrH$=QpJaw`bPYzVA>SR6{m&yNl3ZQx%C$HnZ1D9LJ*8>&zo!rL12Fx}T zSO}swUlcHfIQF7k?BonViOE$$K5&h%gdmE6fdMp-2dG(R@&yT&$wDFxU^Np(AdX4o z^aqP~h=zg1LF(niAfb0r3~bTlLh-9`xpll=K=lw$D{_PM%1pi>X$O_}og5{F?05sP z*$bp3CNGnA0jmMU2%pRjIQx~%1|+k2CO?yX1L4aZ1=EEp`jZ_L_$FJ(NKJktUx%dD jYw|Zmi^)2QRbVlYx#yI1fMOL0HA;VwzhlvSWfRxDO4NL-)Z5S&+LX)$YgeG$_^+Cn=OfF!)w>gMKf)TE8 H5^E3u{e2b? delta 84 zcmX@X{e*jh46`SL)8s%_(TN5RpiI@tCX5v@;mHRW&%nhuFs%WzqnYo+FOs-JYFaiLj CtP!LD delta 63 zcmZqUo5wdnhS`(BX`=Lh5H(qn@g|7g{E?BB5iIbP=`onT$Ra(Nk4a~;9LpB4f{QGs FOaMfJ5(EGM diff --git a/Classes/LinphoneUI/Base.lproj/UIConferenceHeader.strings b/Classes/LinphoneUI/Base.lproj/UIConferenceHeader.strings index 7371f52434d7232fbc4a9745e68c45c9283a4b3f..25e0f0fda4a1127ea676c071e664c5c426780abf 100644 GIT binary patch delta 16 YcmeBR{lhXrW}?EaiT~bAe#bZq06?AyTmS$7 delta 33 hcmeyv(!n}GhS`(BX`=LP5HW diff --git a/Classes/LinphoneUI/Base.lproj/UIContactDetailsFooter.strings b/Classes/LinphoneUI/Base.lproj/UIContactDetailsFooter.strings index 85d6b67a3c2fa64d79e012494910e1f694ccf60b..d8404ad2e628e145a385c5b092038207255546c1 100644 GIT binary patch delta 16 YcmX@ayo-5)%tVD-6BWcJi!iPO05qEg*8l(j delta 20 YcmdnRe296146`SL(?sdpVCw5p079<^9RL6T diff --git a/Classes/LinphoneUI/Base.lproj/UIContactDetailsHeader.strings b/Classes/LinphoneUI/Base.lproj/UIContactDetailsHeader.strings index 55ec8b262b484d8f0a6f0f7d10a0152a6d6f2ce9..5f67bbc47330266069785e17cb0581694651588d 100644 GIT binary patch delta 20 ccmZ3&I)inB%tVC`6BR@zYcNike1P!@08RA=;Q#;t delta 29 fcmbQix`cIt46`SL(?scyAZju<<4Q2SneizAdXfmP diff --git a/Classes/LinphoneUI/Base.lproj/UIHistoryCell.strings b/Classes/LinphoneUI/Base.lproj/UIHistoryCell.strings index 4bdf055cbf2d3428ada85ead04737620290ba830..832c063531604c1231d79d273b5f1fa2adb6108d 100644 GIT binary patch delta 20 ccmZo-{l+puW}?D}i3%cHq)$ delta 29 fcmeyy(!@GJhS`(BX`=K;5H*>baVD5v%y=09fV2p= diff --git a/Classes/LinphoneUI/Base.lproj/UIMainBar.strings b/Classes/LinphoneUI/Base.lproj/UIMainBar.strings index c472a605a94a9acdf0a57261c34c1c69a831b5c9..7dcd85f93ea7518de1f6b0f7666900705a31380d 100644 GIT binary patch delta 121 zcmdlY+8{bXX7VH^vB`PNI+L{+ttQS119DA(%qF<-F(!w}Mock4{voK?5x86h%K{+V rWO4xOB)FIc8(3@-`=rTwoPLv^u&ucz_~bjRIuqk2K)I%ql^C0lr6xaPoCD<_MiFmgo`J$oU|9g= yn@*m_Dl*xFwGK)C3|#IG+axeMm;Eo8&g7U1qBsBL;ADgfcusEM6q}sFB?ACspEFhf diff --git a/Classes/LinphoneUI/Base.lproj/UIMainBar~ipad.strings b/Classes/LinphoneUI/Base.lproj/UIMainBar~ipad.strings index a12201c8a54f1c7c0a5f80db8624b43436b5232a..670e50eb1b32ab8d75dd95efd54f3ccc4886cd9c 100644 GIT binary patch delta 149 zcmbOrcSLrA%tVD-6BV2$J1|a|?7$l}S&u0O#J#{YXL14aArP~IWdTseZ1O#Boym2q zDIlRNc9F?8Y!fD5U^_M0iA!X%7pK+aH|*&xO9AcCIaF{{GzX0heKy^uzZMZX_ d#!La4oG|$sPa2TF3n=e4*@e#!OyA)%0RR9XHZlMJ delta 269 zcmX>iJ3(%O46`SL)8vI*;*)t8btcBmK;rI!vP~x&@TyIYV-%Te#^iw{uQT}o(;T>( z3Cw*+a(a_zunJA~VAY$vh$RlLW&yX}FF@JJllj;)!0bW}(aBxx zFQDwHa4{*)FHpAUn+a diff --git a/Classes/LinphoneUI/Base.lproj/UIStateBar.strings b/Classes/LinphoneUI/Base.lproj/UIStateBar.strings index cce74a594d3278457ae9ca919554ceddcaf6a263..4056cdda2f7a51225f6eb827d4e8c25beba06864 100644 GIT binary patch delta 64 zcmX@dw~lXu%ti$P#>oy$B9lEBzX0ha6BRrr8!&GHQ!INXe_&Yw6jhmgfb{^Bwwlbs KE;9KWTLb{xAQr3u delta 104 zcmZ3-caCp@46`SL(?)4QMi4!@o>g?R1LGGcTXpgu7M;oK7)2(}U~&M7O_cVWtiZel a#*|^%gQT(r%6k2PsdMOA* Title - + Other Type PSGroupSpecifier @@ -162,7 +162,7 @@ Type PSGroupSpecifier Title - + File sharing AutocapitalizationType @@ -174,7 +174,7 @@ Type PSTextFieldSpecifier Title - Sharing server + Server URL Key sharing_server_preference IASKTextAlignment diff --git a/Settings/InAppSettings.bundle/Root.plist b/Settings/InAppSettings.bundle/Root.plist index 62dbcc5ec..b3b012a6c 100644 --- a/Settings/InAppSettings.bundle/Root.plist +++ b/Settings/InAppSettings.bundle/Root.plist @@ -244,7 +244,7 @@ Title - + Development debug actions Type PSGroupSpecifier diff --git a/Settings/InAppSettings.bundle/ar.lproj/Advanced.strings b/Settings/InAppSettings.bundle/ar.lproj/Advanced.strings index 596d79598..b8b57af69 100644 --- a/Settings/InAppSettings.bundle/ar.lproj/Advanced.strings +++ b/Settings/InAppSettings.bundle/ar.lproj/Advanced.strings @@ -7,9 +7,6 @@ /* Console */ "Console" = "المُحاوِرة"; -/* */ -"" = ""; - /* Animations */ "Animations" = "رسوم حيوية"; diff --git a/Settings/InAppSettings.bundle/ar.lproj/Root.strings b/Settings/InAppSettings.bundle/ar.lproj/Root.strings index 030f39138..78b3224a7 100644 --- a/Settings/InAppSettings.bundle/ar.lproj/Root.strings +++ b/Settings/InAppSettings.bundle/ar.lproj/Root.strings @@ -43,9 +43,6 @@ /* Advanced */ "Advanced" = "متقدم"; -/* */ -"" = ""; - /* About */ "About" = "حول التطبيق"; @@ -62,4 +59,4 @@ "More options" = "الخيارات الأخرى"; /* Clear Account */ -"Clear Account" = "Clear Account"; \ No newline at end of file +"Clear Account" = "Clear Account"; diff --git a/Settings/InAppSettings.bundle/de.lproj/Tunnel.strings b/Settings/InAppSettings.bundle/de.lproj/Tunnel.strings new file mode 100644 index 0000000000000000000000000000000000000000..0f1bacd321218f26bae491eb47deda62547ac31e GIT binary patch literal 404 zcmY+AF%E+;5Co^@6%i#34?rn+03jV8FqA}sSaCD>Y{gnxH7jDM9R;WOHQEvUk+BqCPw8 j$yhZ_ymjPP#l@rb)*aS`IPw literal 0 HcmV?d00001 diff --git a/Settings/InAppSettings.bundle/en.lproj/Advanced.strings b/Settings/InAppSettings.bundle/en.lproj/Advanced.strings index c962e7a60..b43a5407d 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Advanced.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Advanced.strings @@ -1,55 +1,16 @@ -/* Debug */ "Debug" = "Debug"; - -/* Debug */ "Debug" = "Debug"; - -/* Console */ -"Console" = "Console"; - -/* */ -"" = ""; - -/* Animations */ +"Send Logs" = "Send Logs"; +"Clear Logs" = "Clear Logs"; +"Other" = "Other"; "Animations" = "Animations"; - -/* Rotation */ -"Rotation" = "Rotation"; - -/* Background mode */ "Background mode" = "Background mode"; - -/* Start at boot */ "Start at boot" = "Start at boot"; - -/* First login view */ +"Auto-answer after notification" = "Auto-answer after notification"; "First login view" = "First login view"; - -/* Expire */ "Expire" = "Expire"; - -/* Primary account */ -"Primary account" = "Standalone calls (no proxy)"; - -/* Display name */ +"Primary account" = "Primary account"; "Display name" = "Display name"; - -/* Sharing server */ -"Sharing server" = "Sharing server"; - -/* Username */ "Username" = "Username"; - -/* Rotation */ -"Rotation" = "Rotation"; - -/* Automatic */ -"Automatic" = "Automatic"; - -/* Portrait */ -"Portrait" = "Portrait"; - -/* Landscape */ -"Landscape" = "Landscape"; - -"Auto-answer after notification" = "Auto-answer after notification"; \ No newline at end of file +"File sharing" = "File sharing"; +"Server URL" = "Server URL"; diff --git a/Settings/InAppSettings.bundle/en.lproj/Audio.strings b/Settings/InAppSettings.bundle/en.lproj/Audio.strings index 86403612c..675c25120 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Audio.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Audio.strings @@ -1,56 +1,26 @@ -/* Codecs */ "Codecs" = "Codecs"; - -/* AMR */ -"AMR" = "AMR"; - -/* Speex 16Khz */ "Speex 16Khz" = "Speex 16Khz"; - -/* Speex 8Khz */ "Speex 8Khz" = "Speex 8Khz"; - -/* Silk 24Khz */ +"Opus 48kHz" = "Opus 48kHz"; "Silk 24Khz" = "Silk 24Khz"; - -/* Silk 16Khz */ "Silk 16Khz" = "Silk 16Khz"; - -/* G722 */ +"AAC-ELD 16kHz" = "AAC-ELD 16kHz"; +"AAC-ELD 22kHz" = "AAC-ELD 22kHz"; +"AAC-ELD 32kHz" = "AAC-ELD 32kHz"; +"AAC-ELD 44kHz" = "AAC-ELD 44kHz"; +"AAC-ELD 48kHz" = "AAC-ELD 48kHz"; +"AMR" = "AMR"; "G722" = "G722"; - -/* G729 */ "G729" = "G729"; - -/* GSM */ "GSM" = "GSM"; - -/* ILBC */ "ILBC" = "ILBC"; - -/* PCMU */ "PCMU" = "PCMU"; - -/* PCMA */ "PCMA" = "PCMA"; - -/* Advanced */ "Advanced" = "Advanced"; - -/* Playback gain */ "Playback gain" = "Playback gain"; - -/* Microphone gain */ "Microphone gain" = "Microphone gain"; - -/* Adaptive rate control */ "Adaptive rate control" = "Adaptive rate control"; - -/* Network bitrate limit */ -"Network bitrate limit" = "Network bitrate limit"; - -/* Voice processing */ -"Enable Voice Processing"="Enable Voice Processing"; - -/* Bass Boost / equalizer */ -"Enable Bass Boost"="Enable Bass Boost"; \ No newline at end of file +"Adaptive rate algorithm" = "Adaptive rate algorithm"; +"Codec bitrate limit" = "Codec bitrate limit"; +"Enable Voice Processing" = "Enable Voice Processing"; +"Enable Bass Boost" = "Enable Bass Boost"; diff --git a/Settings/InAppSettings.bundle/en.lproj/Call.strings b/Settings/InAppSettings.bundle/en.lproj/Call.strings index 58a723b05..a56e6ea0c 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Call.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Call.strings @@ -1,17 +1,7 @@ -/* Prefix */ "Prefix" = "Prefix"; - -/* Substitue + by 00 */ "Substitue + by 00" = "Substitue + by 00"; - -/* Send inband DTMFs */ "Send inband DTMFs" = "Send inband DTMFs"; - -/* Send SIP INFO DTMFs */ "Send SIP INFO DTMFs" = "Send SIP INFO DTMFs"; - -/* Incoming call timeout */ "Incoming call timeout" = "Incoming call timeout"; - -/* In call timeout */ -"In call timeout" = "In call timeout"; \ No newline at end of file +"In call timeout" = "In call timeout"; +"Voice mail URI" = "Voice mail URI"; diff --git a/Settings/InAppSettings.bundle/en.lproj/Network.strings b/Settings/InAppSettings.bundle/en.lproj/Network.strings index 0d4466218..603793659 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Network.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Network.strings @@ -1,65 +1,14 @@ -/* Wifi only */ -"Wifi only" = "Wifi only"; - -/* Edge optimization */ "Edge optimization" = "Edge optimization"; - -/* Stun Server */ +"Wifi only" = "Wifi only"; "Stun Server" = "Stun Server"; - -/* ICE */ "ICE" = "ICE"; - -/* Random Port */ "Random Port" = "Random Port"; - -/* Port */ "Port" = "Port"; - -/* Audio Port(s) */ "Audio Port(s)" = "Audio Port(s)"; - -/* Video Port(s) */ "Video Port(s)" = "Video Port(s)"; - -/* Transport */ -"Transport" = "Transport"; - -/* Media Encryption */ +"Use IPv6" = "Use IPv6"; "Media Encryption" = "Media Encryption"; - -/* Push Notifications */ "Push Notification" = "Push Notification"; - -/* Transport */ -"Transport" = "Transport"; - -/* UDP */ -"UDP" = "UDP"; - -/* TCP */ -"TCP" = "TCP"; - -/* TLS */ -"TLS" = "TLS"; - -/* None */ -"None" = "None"; - -/* SRTP */ -"SRTP" = "SRTP"; - -/* ZRTP */ -"ZRTP" = "ZRTP"; - -/* Limits */ "Limits" = "Limits"; - -/* Upload bandwidth */ "Upload bandwidth" = "Upload bandwidth"; - -/* Download bandwidth */ "Download bandwidth" = "Download bandwidth"; - -/* IPv6 */ -"Use IPv6" = "Use IPv6"; \ No newline at end of file diff --git a/Settings/InAppSettings.bundle/en.lproj/Root.strings b/Settings/InAppSettings.bundle/en.lproj/Root.strings index 442bf4709..50533b6fb 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Root.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Root.strings @@ -1,65 +1,26 @@ -/* SIP account */ "SIP account" = "SIP account"; - -/* Wizard */ -"Wizard" = "Run assistant"; - -/* User name */ +"Wizard" = "Wizard"; +"Clear Account" = "Clear Account"; "User name" = "User name"; - -/* User ID */ "User ID" = "User ID"; - -/* Password */ "Password" = "Password"; - -/* Domain */ "Domain" = "Domain"; - -/* Proxy */ "Proxy" = "Proxy"; - -/* Outbound proxy */ +"Transport" = "Transport"; "Outbound proxy" = "Outbound proxy"; - -/* Settings */ -"Settings" = "Settings"; - -/* Enable video */ -"Enable video" = "Enable video"; - -/* Audio */ -"Audio" = "Audio"; - -/* Video */ -"Video" = "Video"; - -/* Call */ -"Call" = "Call"; - -/* Network */ -"Network" = "Network"; - -/* Advanced */ -"Advanced" = "Advanced"; - -/* */ -"" = ""; - -/* About */ -"About" = "About"; - -/* Quit */ -"Quit" = "Quit"; - -/* Release */ -"Release" = "Release"; - -/* Clear cache */ -"Clear cache" = "Clear cache"; - -/* More options */ +"AVPF" = "AVPF"; "More options" = "More options"; - -/* Clear Account */ -"Clear Account" = "Clear Account"; \ No newline at end of file +"Settings" = "Settings"; +"Enable video" = "Enable video"; +"Audio" = "Audio"; +"Video" = "Video"; +"Call" = "Call"; +"Network" = "Network"; +"Tunnel" = "Tunnel"; +"Advanced" = "Advanced"; +"Development debug actions" = "Development debug actions"; +"About" = "About"; +"Quit" = "Quit"; +"Exit" = "Exit"; +"Clear cache" = "Clear cache"; +"Battery alert" = "Battery alert"; diff --git a/Settings/InAppSettings.bundle/en.lproj/Tunnel.strings b/Settings/InAppSettings.bundle/en.lproj/Tunnel.strings index 3e4f1957c..dc1f514a4 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Tunnel.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Tunnel.strings @@ -1,20 +1,3 @@ -/* Auto */ -"Auto" = "Auto"; - -/* Address */ -"Address" = "Address"; - -/* Mode */ "Mode" = "Mode"; - -/* Off */ -"Off" = "Off"; - -/* On */ -"On" = "On"; - -/* Port */ +"Address" = "Address"; "Port" = "Port"; - -/* WWAN */ -"WWAN" = "WWAN"; \ No newline at end of file diff --git a/Settings/InAppSettings.bundle/en.lproj/Video.strings b/Settings/InAppSettings.bundle/en.lproj/Video.strings index 3d8acf107..675d4dc4f 100644 --- a/Settings/InAppSettings.bundle/en.lproj/Video.strings +++ b/Settings/InAppSettings.bundle/en.lproj/Video.strings @@ -1,27 +1,9 @@ -/* Automatically start video */ "Automatically start" = "Automatically start"; - -/* Automatically accept video */ "Automatically accept" = "Automatically accept"; - -/* Show self view */ "Show self view" = "Show self view"; - -/* Show preview */ "Show preview" = "Show preview"; - -/* Preferred video size */ "Preferred video size" = "Preferred video size"; - -/* Codecs */ "Codecs" = "Codecs"; - -/* mpeg4 */ "mpeg4" = "mpeg4"; - -/* h264 */ "h264" = "h264"; - -/* VP8 */ "VP8" = "VP8"; - diff --git a/Settings/InAppSettings.bundle/fr.lproj/Advanced.strings b/Settings/InAppSettings.bundle/fr.lproj/Advanced.strings index b73671ef1..25ab1bf7e 100644 --- a/Settings/InAppSettings.bundle/fr.lproj/Advanced.strings +++ b/Settings/InAppSettings.bundle/fr.lproj/Advanced.strings @@ -7,9 +7,6 @@ /* Console */ "Console" = "Console"; -/* */ -"" = ""; - /* Animations */ "Animations" = "Animations"; @@ -52,4 +49,4 @@ /* Landscape */ "Landscape" = "Paysage"; -"Auto-answer after notification" = "Réponse auto. sur notification"; \ No newline at end of file +"Auto-answer after notification" = "Réponse auto. sur notification"; diff --git a/Settings/InAppSettings.bundle/fr.lproj/Root.strings b/Settings/InAppSettings.bundle/fr.lproj/Root.strings index 46244e4a1..36b38c814 100644 --- a/Settings/InAppSettings.bundle/fr.lproj/Root.strings +++ b/Settings/InAppSettings.bundle/fr.lproj/Root.strings @@ -43,9 +43,6 @@ /* Advanced */ "Advanced" = "Avancées"; -/* */ -"" = ""; - /* About */ "About" = "À Propos"; @@ -62,4 +59,4 @@ "More options" = "Plus d'options"; /* Clear Account */ -"Clear Account" = "Effacer le compte"; \ No newline at end of file +"Clear Account" = "Effacer le compte"; diff --git a/Settings/InAppSettings.bundle/ja.lproj/Network.strings b/Settings/InAppSettings.bundle/ja.lproj/Network.strings new file mode 100644 index 0000000000000000000000000000000000000000..acf7d260e9547c0525d3a385f274f059568b3c42 GIT binary patch literal 1946 zcma)7O;5r=5PfHUMZ-zCaPvYu7~w#IhR{|MZ%F-0kQ#~*{PF7B*3FyRmiAES&dmGR z*;)Ac9%6t1_jtoIp8zQ~SmVgI0fy+IUz6)Id&#FhHzKM>tmB;^!3&=Fmf{0DD!lXg z!ZLq%TGDB+m2Q_>>m#JzXRa2~%@+IoQ`+@;={4o8#uV4wuQ-dfIQ-gT7VN}^JxbY^ z0CRqC=~Nu`d2u%7twxpAN5rFuMP9LI3C}Av-p-KW+&FBm5&Nkct9M7OgeP-KuenBg zr)sQT#BRI(XPnLdov-G^UzfAIH{65k+md~nkbgy;I1Ehgd(wU}Zpj9-^A zGlWJbf?Hcmv9=i3^9^S}?tDZzMJzJJ0#V7Mj|i!VMLtxJJ|d(d7CGZ&xL@TRCq|BK zR1D>)Wr;c8Ywml=$q(?D->U=%@+M?g9r_mc literal 0 HcmV?d00001 diff --git a/Settings/InAppSettings.bundle/ja.lproj/Tunnel.strings b/Settings/InAppSettings.bundle/ja.lproj/Tunnel.strings new file mode 100644 index 0000000000000000000000000000000000000000..76caed71617c24ef319bb3c2565ef06c224e8821 GIT binary patch literal 400 zcmY+Au?@m75Jg{|DNxEZaZN;#0U&f)AW#M=z(Q=n2<*ZPkdGqsFS0E8p6>m#{r%Kb zY-qW2tmB;^!3&=Fmf{0DD!lXg z!ZLq%TGDB+m2Q_>>m#JzXRa2~%@+IoQ`+@;={4o8#uV4wuQ-dfIQ-gT7VN}^JxbY^ z0CRqC=~Nu`d2u%7twxpAN5rFuMP9LI3C}Av-p-KW+&FBm5&Nkct9M7OgeP-KuenBg zr)sQT#BRI(XPnLdov-G^UzfAIH{65k+md~nkbgy;I1Ehgd(wU}Zpj9-^A zGlWJbf?Hcmv9=i3^9^S}?tDZzMJzJJ0#V7Mj|i!VMLtxJJ|d(d7CGZ&xL@TRCq|BK zR1D>)Wr;c8Ywml=$q(?D->U=%@+M?g9r_mc literal 0 HcmV?d00001 diff --git a/Settings/InAppSettings.bundle/nl.lproj/Tunnel.strings b/Settings/InAppSettings.bundle/nl.lproj/Tunnel.strings new file mode 100644 index 0000000000000000000000000000000000000000..325ff1ba7a84cb37582f4ce45a5565cf27d50f41 GIT binary patch literal 400 zcmY+AK@NgI3`O6XQ%;QGKvmHDo$Nb!@O9q03I(V#}g z3r{S(HE2;G{YfG_@kG+IqGH`<78I $localizable_en.tmp -mv $localizable_en.tmp $localizable_en -sed -i.bak "s/= \"IC_MSG\";/= \"$IC_MSG_EN\";/" $localizable_en -sed -i.bak "s/= \"IM_MSG\";/= \"$IM_MSG_EN\";/" $localizable_en -rm $localizable_en.bak +if [ $# != 0 ]; then + echo "No argument needed. This script will (re)generate .strings file from .xib files and register them in the transifex config file located in .tx/config." + exit 0 +fi -to_utf8=$(mktemp -t linphone) +##### 1. Generate Localizable.strings from source files (.m) +function generate_localizable_from_sources { + localizable_en=$root_directory/Resources/en.lproj/Localizable.strings + # The 2 only specific cases of the application: since we are length limited for push + # notifications, the ID is not matching the English translation... so we must keep + # the translations! + IC_MSG_EN=$(sed -nE 's/"IC_MSG" = "(.*)";/\1/p' $localizable_en) + IM_MSG_EN=$(sed -nE 's/"IM_MSG" = "(.*)";/\1/p' $localizable_en) + rm -f $localizable_en + find $root_directory/Classes -name '*.m' | xargs genstrings -u -a -o $(dirname $localizable_en) + iconv -f utf-16 -t utf-8 $localizable_en > $localizable_en.tmp + mv $localizable_en.tmp $localizable_en + sed -i.bak "s/= \"IC_MSG\";/= \"$IC_MSG_EN\";/" $localizable_en + sed -i.bak "s/= \"IM_MSG\";/= \"$IM_MSG_EN\";/" $localizable_en + rm $localizable_en.bak +} -find $root_directory/Classes -not -path "$root_directory/Classes/KIF/*" -name Base.lproj -exec find {} -name '*.xib' \; | while read -r xibfile; do - stringsfile="${xibfile/.xib/.strings}" +##### 2. Generate .strings for all XIB files +function generate_strings_from_xib { + to_utf8_file=$(mktemp -t linphone) + find $root_directory/Classes -not -path "$root_directory/Classes/KIF/*" -name Base.lproj -exec find {} -name '*.xib' \; | while read -r xibfile; do + stringsfile="${xibfile/.xib/.strings}" - ibtool --generate-strings-file "$stringsfile" "$xibfile" + ibtool --generate-strings-file "$stringsfile" "$xibfile" - # remove if empty - iconv -f utf-16 -t utf-8 "$stringsfile" > "$to_utf8" - if [ ! -s "$to_utf8" ]; then - echo "$(basename "$stringsfile") is empty, removing" - rm "$stringsfile" - else - echo "$(basename "$xibfile")->$(basename "$stringsfile")" + # remove if empty + iconv -f utf-16 -t utf-8 "$stringsfile" > "$to_utf8_file" + if [ ! -s "$to_utf8_file" ]; then + echo "$(basename "$stringsfile") is empty, removing" + rm "$stringsfile" + else + echo "$(basename "$xibfile")->$(basename "$stringsfile")" - res_name=$(basename "$stringsfile" | tr -d '_.~-' | tr '[:upper:]' '[:lower:]') - dir_name=$(echo $(dirname "$stringsfile") | sed -E "s|$root_directory/||") - # if not registered in transifex config file, register it + res_name=$(basename "$stringsfile" | tr -d '_.~-' | tr '[:upper:]' '[:lower:]') + dir_name=$(echo $(dirname "$stringsfile") | sed -E "s|$root_directory/||") + # if not registered in transifex config file, register it + if ! grep -q $res_name $root_directory/.tx/config; then + echo "not found in .tx/config, adding it" + echo " + [linphone-ios.$res_name] + file_filter = $(echo $dir_name| sed 's/Base.lproj/.lproj/')/$(basename "$stringsfile") + source_file = $dir_name/$(basename "$stringsfile") + source_lang = en + " >> $root_directory/.tx/config + fi + fi + done + rm $to_utf8_file +} + +##### 3. Generate .strings for all InAppSettings PLIST files +function generate_strings_from_inappsettings_plist { + tmp_file=$(mktemp -t linphone) + find $root_directory/Settings/InAppSettings.bundle -name '*.plist' | while read -r plistfile; do + echo $plistfile + plistfilestrings="$(basename ${plistfile/.plist/.strings})" + printf '' > $tmp_file + while read title; do + echo "\"$title\" = \"$title\";" >> $tmp_file + done <<< "$(grep -e '>Title<' $plistfile -A 1 | sed -nE 's|.*(.*).*|\1|p')" + + mv $tmp_file $root_directory/Settings/InAppSettings.bundle/en.lproj/$plistfilestrings + + res_name=$(echo "$plistfilestrings" | tr -d '_.~-' | tr '[:upper:]' '[:lower:]') if ! grep -q $res_name $root_directory/.tx/config; then echo "not found in .tx/config, adding it" echo " [linphone-ios.$res_name] -file_filter = $(echo $dir_name| sed 's/Base.lproj/.lproj/')/$(basename "$stringsfile") -source_file = $dir_name/$(basename "$stringsfile") +file_filter = Settings/InAppSettings.bundle/.lproj/$plistfilestrings source_lang = en " >> $root_directory/.tx/config fi - fi -done -rm $to_utf8 + done +} + +# generate_localizable_from_sources +# generate_strings_from_xib +generate_strings_from_inappsettings_plist