From 7a5d90dd2f6784b726526ebf7b1475cc20dc0bdc Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 13 Jun 2020 14:31:21 +0200 Subject: [PATCH] Setup Qt translations --- README.translations.txt | 35 ++++ app/SysTray-X/SysTray-X.pro | 7 + app/SysTray-X/languages/SysTray-X_en.qm | Bin 0 -> 3904 bytes app/SysTray-X/languages/SysTray-X_en.ts | 265 ++++++++++++++++++++++++ app/SysTray-X/languages/SysTray-X_nl.qm | Bin 0 -> 4206 bytes app/SysTray-X/languages/SysTray-X_nl.ts | 265 ++++++++++++++++++++++++ 6 files changed, 572 insertions(+) create mode 100644 README.translations.txt create mode 100644 app/SysTray-X/languages/SysTray-X_en.qm create mode 100644 app/SysTray-X/languages/SysTray-X_en.ts create mode 100644 app/SysTray-X/languages/SysTray-X_nl.qm create mode 100644 app/SysTray-X/languages/SysTray-X_nl.ts diff --git a/README.translations.txt b/README.translations.txt new file mode 100644 index 0000000..22cfb81 --- /dev/null +++ b/README.translations.txt @@ -0,0 +1,35 @@ +Translations +============ + +Adding a languages +------------------ + +Add your language to the TRANSLATIONS var in the SysTray-X .pro file (app/SysTray-X/SysTray-X.pro) + + +Update translation files +------------------------ + +To update the base translation files in the languages directory: + +cd app/SysTray-X +lupdate-qt5 -verbose SysTray-X.pro + + +Translating +----------- + +Start Qt linguist (linguist-qt5, linguist) and open the language file (app/SysTray-X/languages/*.ts) you want to translate. +Translate the found strings, mark them translated. When finished, 'Save' the file and 'Release' the file. + +Add the *.ts and *.qm files to git. + + +Qt translation tools +-------------------- + +lupdate -verbose SysTray-X.pro + +linguist + +lrelease SysTray-X.pro diff --git a/app/SysTray-X/SysTray-X.pro b/app/SysTray-X/SysTray-X.pro index 73a4063..f1dcb87 100644 --- a/app/SysTray-X/SysTray-X.pro +++ b/app/SysTray-X/SysTray-X.pro @@ -29,6 +29,13 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = SysTray-X TEMPLATE = app +# +# Translations +# +TRANSLATIONS = \ + languages/$${TARGET}_en.ts \ + languages/$${TARGET}_nl.ts + # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the diff --git a/app/SysTray-X/languages/SysTray-X_en.qm b/app/SysTray-X/languages/SysTray-X_en.qm new file mode 100644 index 0000000000000000000000000000000000000000..d0727056553f1f17f69aca72c63cec6efb7309cb GIT binary patch literal 3904 zcmbVPTWB0r82&fe-E248O=8m!+oGozmNcfh)?R`Nxzdm(ZAsGRsXDteyF1P7%rFgC?Zr}FROV_{nWt1pzmWcZC;(u5hT8ZYrC))4^1y@cIg@@^x z*MdYF575x2HaxSPrjKnVYJQexU;PZ9SLo>E1W{yjVBgE{5Jjg0_x^cI6gt`P{*`Zu zVs{!IW#0tuKx4~;Kk?iRtdD@t8gKq}o~W@s7*GC<`*XpwkI#b7?%>si)4;tGyq3O< z@2>`b)PBXf80uJw1HU!2_5LpS&xcZpcX9t-=*D{kz(0d^5bH-+hp_$@`h4#LqF`s} zy9*9@EQCXs?t$0W;l9YHxc_2!WY?33PYYi^zJU1TrUM_`hX3E2?hd|<@4t+kZvn4R zByw>FbZGi;!?~#y@OnM^^QN8Pak;tg!WqQzP3#Hz6?}dWdn@o0>_6T(F>@cd597g` zpTO_M`17|Lu|AF~+^+eL_?auWfHT<=8@>eG6DpivYy1~~5!|LQUV;85yf=>|4c8f0 zCC$hLDjx{-_xAS=tbGVpPtgb^$sm^;Vl+p2vT2?yl5n+$7Cj#=0-ep}?RiVe?^&z~ z7N=2Rs#A)xH0&8SjarhP$`02wiowVwl{AveOv0nCs>!u2qI3xS>6~%k>iSG1Exm26+0cyNw%X{HFYG9;A%dMD@iwVLX|U$ z6F^E~tJiEVq8taMBsL)9nYWbU6A;2%HCPN;q978UH3Ob$cwVs`R>(9zi@_?3!MZ+% zsw{?TT6EF^Hqrt!3E9N3eG;_R%JM3M9i*XI zW*;3hT-{+#-t@!h0ER1eh9~&i2%5)S+c9$WLP&_rNJ9u0a&S8H2#HgZMG_|=jYYB- z+@^6QExDS*=CiIYD^^mqWS>Yo*T7dR9V-IX(YlbruZBvu-Oy+gRmQ`IgmVFdBu*L%yw>)=w zec9N63_LTDhaxjPkK2kK-PN2{Y+K4GEXC8r$8&_HsG27s>W-4JB!~Cuu0yJ<`1xUUSQPFOkhAc> zM`H$8YYVCMuwg7YS<7%U*?QH~Lo?vYWn*A(2-azQPE|xuT>>35=u%8K95t<`3jFI7 zLo58$PX5SD{iNSfZ4I`C$(RE3%4XJ9#A8r3rTO=@y)}Rx0P-GJIBWFaI)_c=q8p-j zm!`@V&y`~^2gi>dmQ$RpAr~giIz9OR_$bzvK%IvrdF)#;z077 znB6sxZ%08xp|lW~hn1?3cys9}S9VbGi7i%sfbw(+7YL2@nOqF{Hanj^{0uIOeKiWL7@g hj%VjYM_Q)7;&}0_qKUbzvE0WeN+r*8VBHW1{0Ct + + + + AboutDialog + + + About SysTray-X + About SysTray-X + + + + SysTray-X Companion App by Ximi1970 + SysTray-X Companion App by Ximi1970 + + + + Version: + Version: + + + + 0.0.1 + Do not translate + + + + + Build: + Build: + + + + + 0 + Do not translate + + + + + Hash: + Hash: + + + + Branch: + Branch: + + + + master + Do not translate + + + + + DebugWidget + + + SysTray-X Debug + SysTray-X Debug + + + + Test 2 + Test 2 + + + + Unread mail: + Unread mail: + + + + Test 1 + Test 1 + + + + 0 + Do not translate + + + + + Test 3 + Test 3 + + + + PreferencesDialog + + + SysTray-X Preferences + SysTray-X Preferences + + + + Default icon + Default icon + + + + Icon + Icon + + + + Default Thunderbird + Default Thunderbird + + + + Lookthrough icon + Lookthrough icon + + + + + Custom icon + Custom icon + + + + + Choose + Choose + + + + KDE integration (Hide) + KDE integration (Hide) + + + + Mail notification icon + Mail notification icon + + + + Blank icon + Blank icon + + + + New mail icon + New mail icon + + + + No icon + No icon + + + + Windows + Windows + + + + Minimize + Minimize + + + + Default minimize + Default minimize + + + + Minimize to tray, method 1 + Minimize to tray, method 1 + + + + Minimize to tray, method 2 + Minimize to tray, method 2 + + + + Start application minimized + Start application minimized + + + + Minimize on close + Minimize on close + + + + Number properties + Number properties + + + + Display unread message count + Display unread message count + + + + Number color + Number color + + + + Number size + Number size + + + + Count type + Count type + + + + Unread + Unread + + + + New + New + + + + Display debug window + Display debug window + + + + + Open Image + Open Image + + + + + Image Files (*.png *.jpg *.bmp) + Image Files (*.png *.jpg *.bmp) + + + + SysTrayX + + + &Show/Hide + &Show/Hide + + + + &Preferences + &Preferences + + + + &About + &About + + + + &Quit + &Quit + + + diff --git a/app/SysTray-X/languages/SysTray-X_nl.qm b/app/SysTray-X/languages/SysTray-X_nl.qm new file mode 100644 index 0000000000000000000000000000000000000000..39b8ba9757db37d08d9582127fd4af198120543e GIT binary patch literal 4206 zcmb_fU2GIp6h7PTZkO$L`vWxmG&l&Ur9yv+2oaM0VJozhv_PMXvpcuDLw9G^nOU0F zgz%sSK}mc75<@hYsEL|rVgtlzOo%^;2``2RqrnHC#2Ac3g%Bft=k9j4-R{o5*kX?*_>QRu4gi5K1`s#SeA|Gh^PSg3mM z!k0vKzg68$UWDH6>iRo>5UomLyo>Sg>MMVqA*x>EkH-Fj{6qh#d#8ZsG5@8idFcJx z|JL+*d|&W?m--1~GSK`W3jON>8*gug{fmKk>pPhLCGg?9-Ozs$V-LoUG4^8oIq=!e zJ4F6{fv?Uw!0~)AaPB7jX$p3R7BGK4*tc~(-oFoCK6(WHymz&4VcjhqA8%AY#9s*06vXB0s=>Xs zFJ@+)L0wIm3E%Psfv%3Oj_#F^iW(HBB<*p9Yx*tKh$r`y6pBD7OFE@UTOtzd&*~|yv_zPOfzMuMA~3Al zWehyC(k-|;KqjRr14Ramo46~~hxZId4ezETWD4KXxVmXK?V>K%qb)8G%7B^9sD^GD zN?#_U#O9PKJ*{`|-c=$bU^_}jCD%5TiY5Mrjta|$k`f*-i*zup+K#YRGP!J3J|6}} zESor{YYE}_kW#d%Bol)G5<>_Qu6OkX@1zQ8tyozEc_I)62ZVLIqQOaFJ4!Coyd-*x zBzh{^=q-}yEh*84Y&IwXWGP(pxHzyej20N@v~=WLAvq&Q3`?k*l2-Lpj{RcXEp!kv z0$LTM2WxSV9toN1X%|(vKcyNoiXJx&M%FlPiD_X8BQEU4Es5z69gvZ?UAf>u(ll-1 zA=3(`=U`c^@PvIy;a_K;U5()ZGix}CGnet!+9#8rx#De*i)4BKY6r5mW2P%P*p3`? zq+$(s6(nhZJqhBo0I9*4g>dLR?*d*uD5lkH%26hhSwj<6Ot&;oK1!J=k36!dzCvs| zNOlVT3PnC2$J^p_ zOqTdg2u+PBrMh8UePwJYr@N3JFMlp(7Ys)3zse(E1&2M2TgOvNm^z$ zk*u^&_o3|;7exh_O=)LZ+RP_9yen_Bc@%Y1F-%9F*5f(fDr~b2G%7hSO@9J+{)UO~G@sxM{9V=;wAv0mQBFBdK?8IgSvhD=t zXJ|WCr19>c{FyRmm-fmHE(pg|92~2*D{0{*O)b|y%XEqGg(tr;^bDOv}lSp<+n$ibdL zF0reH0v#F4renfFIZT=IP*#Sf4Mmzv0LxX5!a<-huPbAj8DTlPuszCAOOZk@MqDl& z&OkR3wRx4ccT?JgLlYk_m@su^>2=kG4`qa*$QtSaZC}2PT7bd{ zA>AO4{%(_}LgZ_X$;R##?=Vca=6 + + + + AboutDialog + + + About SysTray-X + Over SysTray-X + + + + SysTray-X Companion App by Ximi1970 + SysTray-X Companion App door Ximi1970 + + + + Version: + Versie: + + + + 0.0.1 + Niet vertalen + + + + + Build: + Build: + + + + + 0 + Niet vertalen + + + + + Hash: + Hash: + + + + Branch: + Branch: + + + + master + Niet vertalen + + + + + DebugWidget + + + SysTray-X Debug + SysTray-X Debug + + + + Test 2 + Test 2 + + + + Unread mail: + Ongelezen berichten: + + + + Test 1 + Test 1 + + + + 0 + Niet vertalen + + + + + Test 3 + Test 3 + + + + PreferencesDialog + + + SysTray-X Preferences + SysTray-X Opties + + + + Default icon + Standaard pictogram + + + + Icon + Pictogram + + + + Default Thunderbird + Standaard Thunderbird + + + + Lookthrough icon + Doorzichtig pictogram + + + + + Custom icon + Aangepast pictogram + + + + + Choose + Kies + + + + KDE integration (Hide) + KDE integratie (Verbergen) + + + + Mail notification icon + Berichten notificatie pictogram + + + + Blank icon + Leeg pictogram + + + + New mail icon + Nieuw bericht pictogram + + + + No icon + Geen pictogram + + + + Windows + Vensters + + + + Minimize + Minimaliseren + + + + Default minimize + Standaard minimalisatie + + + + Minimize to tray, method 1 + Minimaliseer naar systeemvak, methode 1 + + + + Minimize to tray, method 2 + Minimaliseer naar systeemvak, methode 2 + + + + Start application minimized + Start programma geminimaliseerd + + + + Minimize on close + Minimaliseren bij sluiten + + + + Number properties + Nummer opties + + + + Display unread message count + Aantal ongelezen berichten weergeven + + + + Number color + Nummer kleur + + + + Number size + Nummer grootte + + + + Count type + Type berichttelling + + + + Unread + Ongelezen + + + + New + Nieuw + + + + Display debug window + Toon debug venster + + + + + Open Image + Open afbeelding + + + + + Image Files (*.png *.jpg *.bmp) + Afbeeldingsbestanden (*.png *.jpg *.bmp) + + + + SysTrayX + + + &Show/Hide + &Tonen/Verbergen + + + + &Preferences + &Opties + + + + &About + O&ver + + + + &Quit + &Afsluiten + + +