From 6594c63c9925f07d851cfe99fa8366fb92ddeaae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mateusz=20P=C3=B3=C5=82rola?= Date: Tue, 7 Sep 2010 11:31:46 +0200 Subject: [PATCH] some changes in translations --- data/gui.qrc | 4 ++-- data/translations/dict_en.qm | Bin 23 -> 0 bytes data/translations/dict_pl.qm | Bin 4881 -> 0 bytes src/mdictionary/gui/main.cpp | 38 ++++++++++++++++-------------- src/mdictionary/mdictionary.pro | 4 ++-- src/plugins/google/GooglePlugin.cpp | 4 ++-- src/plugins/google/google.pro | 4 ++-- src/plugins/google/google.qrc | 4 ++-- src/plugins/google/translations/en_EN.qm | Bin 23 -> 0 bytes src/plugins/google/translations/pl_PL.qm | Bin 1020 -> 1001 bytes src/plugins/xdxf/XdxfDialog.cpp | 2 +- src/plugins/xdxf/translations/en_EN.qm | Bin 134 -> 0 bytes src/plugins/xdxf/translations/pl_PL.qm | Bin 4158 -> 3473 bytes src/plugins/xdxf/xdxf.pro | 4 ++-- src/plugins/xdxf/xdxf.qrc | 4 ++-- src/plugins/xdxf/xdxfplugin.cpp | 4 ++-- 16 files changed, 37 insertions(+), 35 deletions(-) delete mode 100644 data/translations/dict_en.qm delete mode 100644 data/translations/dict_pl.qm delete mode 100644 src/plugins/google/translations/en_EN.qm delete mode 100644 src/plugins/xdxf/translations/en_EN.qm diff --git a/data/gui.qrc b/data/gui.qrc index 65aa8e7..03cab88 100644 --- a/data/gui.qrc +++ b/data/gui.qrc @@ -7,10 +7,10 @@ icons/48x48/edit-select-all.png icons/16x16/staron.png icons/16x16/staroff.png - translations/dict_pl.qm - translations/dict_en.qm config/mdictionary.config xsl/style.css xsl/xsl.xsl + translations/en_US.qm + translations/pl_PL.qm diff --git a/data/translations/dict_en.qm b/data/translations/dict_en.qm deleted file mode 100644 index 9dad8dffceb9623e88f8b96d9cd0caf25574c6fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ diff --git a/data/translations/dict_pl.qm b/data/translations/dict_pl.qm deleted file mode 100644 index 47e96e85ba4fffb7fd6971d282dd9440e08b7b5c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4881 zcmcIoeP|?S8GrVYO*Wg&CYQ!~;&<;Cmsn`t23GJ)OCB zZJlWR)dT-H`b)^Y6s;3e(OPJXjDG&_(DUL*;g8=W${vl@!fPYfuq z;_JEBXFm;pp343E8}KuCWTJi(c21to&!7DYo`0Bs;^eLw|rjqu(kn{OuK@i3`P- zN1jJ~? z5+DjDXoA?7CAFSPdHOM^ZdpOiw1uwOw&RP66qchI(pVD5PW5rJPHUO9OcuH#9UOO- zKREIdRyec(8qQP4CeFqwyxTh)r`C6;Lb|TwF2KT$^?T*!5xNM~o=W;Q)H*QOC7JmG zmyQZp4K8iR!PTiwIUdY>fP<3d+?^!9)YFTMK7m;k$1m4S zPar8gfpy0dS3c@Aq;Yq@)ErJVo?W+cz-#Hu+6AN-3{OhMb*BP-A z^6XijcbInSlH+5nh#^ny<2kw)L9Qa$ZakJCQ3>nhy*6eI>@EaxfBnCS{kBfRZowUhRW_Px{sE9r!|ms zu4gdfL9CwmyK^`ycDj6OIGF1h4tDbI8W8%4_&+0YKb3+WM20)i&c}=T4$$b1hlLm@ zglBFm#!E=W>)--g*VeGgD^)ocb$VF%3$ z&P+}f({unBQOI#ZXw@pFDo;2znmNXATX?Dz8C-DA;iH^7*Ypd^9+O5tmf3XqE8CY6 zi}O+CL+uimb3gXa&_*Y`Dg_)APDz7+mXyb@Uy!={dp1_#N-wbdp*i12U+ZV-;TV5A z2lP(iFz$zm%M%aT7N<$7`MjT;0(}mJz|&li>KCKyPD{->w_WZYi!RHn{#nC}&iQ-x znSq=i-!;b#!G?H(J7Za#vVk(cM9bI|+$w!sU0T6&9sgfgfi6?QT@#s$O1X&>3~wPH zSB{nj`jFjsK9l*++=0=5oygzzU;gScMF0Q* diff --git a/src/mdictionary/gui/main.cpp b/src/mdictionary/gui/main.cpp index efdf082..2982155 100644 --- a/src/mdictionary/gui/main.cpp +++ b/src/mdictionary/gui/main.cpp @@ -54,6 +54,25 @@ QStringList parseParameters(int argc, char *argv[]) { return result; } +void retranslate() { + QString locale = QLocale::system().name(); + + QTranslator translator; + QTranslator qtTranslator; + + qtTranslator.load("qt_" + locale, + QLibraryInfo::location(QLibraryInfo::TranslationsPath)); + QCoreApplication::installTranslator(&qtTranslator); + + qDebug()<("Notify"); qRegisterMetaType("Notify::NotifyType"); - QString locale = QLocale::system().name(); - - QTranslator qtTranslator; - qtTranslator.load("qt_" + locale, - QLibraryInfo::location(QLibraryInfo::TranslationsPath)); - - a.installTranslator(&qtTranslator); - - QTranslator mdictionaryTranslator; - - if(locale == "pl_PL") - mdictionaryTranslator.load(":/translations/dict_pl"); - - else - - mdictionaryTranslator.load(":/translations/dict_en"); - - a.installTranslator(&mdictionaryTranslator); + retranslate(); Backbone backbone; MainWindow w(&backbone); diff --git a/src/mdictionary/mdictionary.pro b/src/mdictionary/mdictionary.pro index cd5fd50..afa7f87 100644 --- a/src/mdictionary/mdictionary.pro +++ b/src/mdictionary/mdictionary.pro @@ -59,8 +59,8 @@ HEADERS += gui/MainWindow.h \ RESOURCES += ../../data/gui.qrc -TRANSLATIONS += dict_pl.ts \ - dict_en.ts +TRANSLATIONS += pl_PL.ts \ + en_US.ts target.path = $$BIN_DIR INSTALLS += target diff --git a/src/plugins/google/GooglePlugin.cpp b/src/plugins/google/GooglePlugin.cpp index 20df8aa..95ae0e4 100644 --- a/src/plugins/google/GooglePlugin.cpp +++ b/src/plugins/google/GooglePlugin.cpp @@ -51,8 +51,8 @@ void GooglePlugin::retranslate() { QTranslator *translator = new QTranslator(this); - if(!translator->load(":/translations/" + locale)) { - translator->load(":/translations/en_EN"); + if(!translator->load(":/google/translations/" + locale)) { + translator->load(":/google/translations/en_US"); } QCoreApplication::installTranslator(translator); } diff --git a/src/plugins/google/google.pro b/src/plugins/google/google.pro index 85aec3b..48633dc 100644 --- a/src/plugins/google/google.pro +++ b/src/plugins/google/google.pro @@ -18,8 +18,8 @@ HEADERS += \ GoogleDictDialog.h \ GoogleDialog.h -TRANSLATIONS += dict_google_pl.ts \ - dict_google_en.ts +TRANSLATIONS += pl_PL.ts \ + en_US.ts RESOURCES += \ google.qrc diff --git a/src/plugins/google/google.qrc b/src/plugins/google/google.qrc index 47a4287..473e92a 100644 --- a/src/plugins/google/google.qrc +++ b/src/plugins/google/google.qrc @@ -1,6 +1,6 @@ - - translations/en_EN.qm + translations/pl_PL.qm + translations/en_US.qm diff --git a/src/plugins/google/translations/en_EN.qm b/src/plugins/google/translations/en_EN.qm deleted file mode 100644 index 9dad8dffceb9623e88f8b96d9cd0caf25574c6fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ diff --git a/src/plugins/google/translations/pl_PL.qm b/src/plugins/google/translations/pl_PL.qm index 24a516ffa59cc262cd283751a411e17a32a7cd0f..a546bd7b42beb5e3448d4ac3457bae61827b5cfd 100644 GIT binary patch delta 409 zcmeyv{*rxyv_As_1M8*(3=B-!48GI2fIL0s_u+{^{tT9z2|#g%C|0w{%0Rv}ha;;V zkbceS9v}=9Z|4nde+Q&L@cTzgF)%Pb$Yfw(E|^@wsKCzSo}ZtdlREh}qqHEaTTy(nVlem%?#B_y#oYM5nJcZ!Yl9J54^kQTyvY1}hqgnAE2snWDFt7o!6hyC;0>r40 zqQt!7oWzp+A_XoaV~|{@#1I8^O##pq#SB$ISCwMA6>d0haAH}if^abwcWq==<3n}V X#H<_q9Y7axF*5!aVPg5K!zBy=<^gIi delta 464 zcmaFK{)c^nbO<9K1M8*(3=GVE45}cS;Rb{6G%f}PMi=Jy;fX*#1Ix_>pg3a%ha;;V zkQ>YyabFn7U(3_bwU~i{=|691`#T`bo(VLhnHi`;X>vTH^kgOG9cCaN2ZJ9&B7+r! z0tb-8zy`#u3L*Jc3hY3ZhZg{14* z+=}vZ@fihn4nrtIF+&N^5#Qj9 zJUNc>UL2ZBp?&~KOEE+NEh+$7SIkfaw6KaH7i@JNLnYiop5Vl?RE6Y>#Ju#>Vl1{z aKF6e{irtD1pcPzTLSpMp82?GEQvUh_3 diff --git a/src/plugins/xdxf/XdxfDialog.cpp b/src/plugins/xdxf/XdxfDialog.cpp index 04bf67d..5ef8d24 100644 --- a/src/plugins/xdxf/XdxfDialog.cpp +++ b/src/plugins/xdxf/XdxfDialog.cpp @@ -104,7 +104,7 @@ void XdxfDialog::initializeUI() { #endif cacheLayout = new QHBoxLayout; - cacheCheckBox = new QCheckBox(tr("Optimize for quicker searches")); + cacheCheckBox = new QCheckBox(tr("Optimize")); cacheCheckBox->setToolTip(cacheToolTip); cacheLayout->addWidget(cacheCheckBox); #ifdef Q_WS_MAEMO_5 diff --git a/src/plugins/xdxf/translations/en_EN.qm b/src/plugins/xdxf/translations/en_EN.qm deleted file mode 100644 index 900f71678adc36c355111d16b61fba965160a91d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 134 zcmcE7ks@*G{hX<16=n7(EZlq7iGhKEgJ+4@OCZgV3B<9?KthN?l_8HofuWcol_8lS zAIMGt35#F~GZb?GB^cO%m`62Fp*S@;KQBe2Sd$$nAQ+KSk>;G3oROKA?vk09lb_Dm K0TgCpWCQ?znH|Ic diff --git a/src/plugins/xdxf/translations/pl_PL.qm b/src/plugins/xdxf/translations/pl_PL.qm index 8ab7e05924a0741585fa4eeb8c78b926da15d3d1..a9dec1f90fc2071dd0fb02d0bf6ce982d799c205 100644 GIT binary patch delta 718 zcmZ8dOK1~O6g@99lbL3cjMz{FQ63b6iy{=I3qgb$YqM#KW1&*P4#^}Ln@q-LrfRAE zpo_Y*4obW5vnb+1u-J{F6v09lx+pFRr5hI&tP6LdE~MVku`xb)yz}n8=bU@*GN0Xl zD>eB6IK2R{IY`f51M&#c)2;M=#igS+0dXiYxMBd2c_DdVgX&g# zxM%GLpgQ7Q_7&wNao)Z|^@qfbA<`4ROC3JxNdwZSwHH8Ck9KT+B%Ut!Pu&2D7?l^h zOfqVf*Pl!P$_eG=ghzx&%629RG(BzlQX-;!PknHAi-f<$&)j}UM#tj|E!&`z;H%e3 zSWA?YDasp3eJ>3ZZ`QVwWFTC#=rgkvW6zls8^~WN_-`W@)ZZv$8Rcrxuc(K^%wzRP zh#cWuh~5j+lmApRfh@bx0}CcN98{5q0h?aV29XQmY#hV%a>`JYYRdE*hDW%@Iw^LU z>Vt@(1Or6rrn;=M$sNNjajVAds>^GpD^nt{W(B`Hp6>j=ix%{fwu`H%PzQm>7=t)Y$p{Ff40S%e*wESwCDf; delta 699 zcmbOzy-#6+Nc{%}2KOZl42&}vST`MDVBm9LP-|2M(w7+uO*$DEm?I%HcLh`QkwgXt zrd+1uvppFYSY|_LUI}JC*_%N9Czub{Ok`l-IL0Dy;U@zFrw_{v&pkkKR+gE0Q-S&n zAT(DB%gqF!J>0IWW|M*T)bj+gncaR0)Tqz)C>kii^^`rdp@o5gp^W|7nmPssHffIC zb)`TH^&m9Qa*mfSd<+ci-JI_-b}}%q?uXEP#oY6!Jpo#Do+oJ10-(jVJWIr00?lFI z&ERMNn!A)QSP1A*&i9!N4E(ChKnW2BRff$>j2jp^`65y((tPq0Qzma`ibvu}Gn*js zdYB`Tc(0fnk$AzZXOMU^*;0^rZtTYe{DVu1G7A(Elao{PN{SV@Cd+WRASs!^5sct% zHsTCmnXJUD%PRzOS8!@cNoHPp@#GL@V@VVdm(0YR{B%Z;UoFl%;Z@TL<(s dnwl3JuF5Emg!-@p=y)zh#{VKrEPr*lgaJma&_n - - translations/en_EN.qm + translations/pl_PL.qm + translations/en_US.qm diff --git a/src/plugins/xdxf/xdxfplugin.cpp b/src/plugins/xdxf/xdxfplugin.cpp index a3a7846..8751e42 100644 --- a/src/plugins/xdxf/xdxfplugin.cpp +++ b/src/plugins/xdxf/xdxfplugin.cpp @@ -55,8 +55,8 @@ void XdxfPlugin::retranslate() { QTranslator *translator = new QTranslator(this); - if(!translator->load(":/translations/" + locale)) { - translator->load(":/translations/en_EN"); + if(!translator->load(":/xdxf/translations/" + locale)) { + translator->load(":/xdxf/translations/en_US"); } QCoreApplication::installTranslator(translator); } -- 1.7.9.5