From 7193c04f1d29a24d7c9ec7e51359cbf09b39eaa2 Mon Sep 17 00:00:00 2001 From: Jens John Date: Fri, 14 Nov 2014 18:35:34 +0100 Subject: [PATCH] add a German translation --- 2048-qt.pro | 2 +- qml/main.qml | 12 ++++ resources.qrc | 1 + ts/2048-qt_de_DE.qm | Bin 0 -> 1998 bytes ts/2048-qt_de_DE.ts | 136 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 ts/2048-qt_de_DE.qm create mode 100644 ts/2048-qt_de_DE.ts diff --git a/2048-qt.pro b/2048-qt.pro index 8029442..30a1452 100644 --- a/2048-qt.pro +++ b/2048-qt.pro @@ -29,7 +29,7 @@ HEADERS += \ myclass.h \ settings.h -TRANSLATIONS = ts/2048-qt_zh_CN.ts ts/2048-qt_ru_RU.ts +TRANSLATIONS = ts/2048-qt_zh_CN.ts ts/2048-qt_ru_RU.ts ts/2048-qt_de_DE.ts VERSION = 0.1.5 diff --git a/qml/main.qml b/qml/main.qml index 67e9497..ab69906 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -125,6 +125,18 @@ ApplicationWindow { } } } + MenuItem { + text: "German" + checkable: true + exclusiveGroup: languageSettingsGroup + checked: settings.value("language") == "de_DE" ? true : false + onTriggered: { + if (settings.value("language") != "de_DE") { + settings.setValue("language", "de_DE"); + changeLanguageDialog.open(); + } + } + } } } diff --git a/resources.qrc b/resources.qrc index 8e26ef5..1914805 100644 --- a/resources.qrc +++ b/resources.qrc @@ -2,6 +2,7 @@ ts/2048-qt_zh_CN.qm ts/2048-qt_ru_RU.qm + ts/2048-qt_de_DE.qm qml/main.qml qml/2048.js qml/Tile.qml diff --git a/ts/2048-qt_de_DE.qm b/ts/2048-qt_de_DE.qm new file mode 100644 index 0000000000000000000000000000000000000000..d21904f2b4c1df86f41c435fe5a047b4da8d5240 GIT binary patch literal 1998 zcmah~O^91n6h28_CYh4Kp;VF3#SK_pIBnBXq)3?3N#YD@XVOF+1O;CvH!rvIax=c4 znN}Afbm2nWSluW>!Igpwp(1E;ZPmKZ?6#1O`>PFh@7*O>s-VbuNN-k{u4RhIz*X1IX92s z`8GMfR*ABY(CWKiV|{}*FH55Q1@d0}fM{+hdo}tK^KtfvhyDPrm5VFLpZPNP`t`qn zyXAcR^EHg`%inpmL6qwj+J|1o`1it_k9xrWUHI@$9`Q$t+1@80u~l6E6mhu|^S;Y@ zug(9m^cwc*m)5J_Bkr-%mG5HU4wSyggvfto;j_2i1OA2r=ynbfMLJ1UIz^|87|oqDU8OVk2F)`_thz&)M*c`$k`&l<`Lo?o93@d@nxII~!}|p2D4nOs#x0mQ z!TTINpNd~h#Lq?*$5H8k6172Un?@8+&u-zYG&|2EnH6aj5O)SN*N|QyQ!*E+Nt!(J zNl{2!G_W}fP3`$A93;~&Lgoq>NJRDcZt+g@qDrYN0o(wG2tYLjKB4>+i-RER(hx8K zr|sf7E&Dw8Mr`cLAj#y=e`Ba(H#uOVD#s zJ>khnL?bg@>nNc0bZj|rTH`>i4@-Qscgj9{<@JGPwTdgcpK zczzU%O{J5h8a8qOLi~f^MvSxYiJxS_+$Pr8!Q9wz--8B!#wsuK9(zhxM17=j8e;Uu ScQ4^soSAO>2L52#Oy*xo8FX?0 literal 0 HcmV?d00001 diff --git a/ts/2048-qt_de_DE.ts b/ts/2048-qt_de_DE.ts new file mode 100644 index 0000000..11528e5 --- /dev/null +++ b/ts/2048-qt_de_DE.ts @@ -0,0 +1,136 @@ + + + + + main + + + 2048 Game + 2048 + + + + File + &Datei + + + + + New Game + Neues Spiel + + + + Exit + &Beenden + + + + Settings + &Einstellungen + + + + Labeling + &Beschriftung + + + + 2048 + 2048 + + + + Degree + Grad + + + + Military Rank + Militärsränge + + + + PRC + PRC + + + + Language + &Sprache + + + English + Englisch + + + Simplified Chinese + Vereinfachtes Chinesisch + + + + Help + &Hilfe + + + + About + Über + + + + About Qt + Über &Qt + + + + SCORE + Punkte + + + + BEST + Rekord + + + + Join the numbers and get to the <b>2048 tile</b>! + Kombiniere bis zu einer Summe von <b>2048</b>! + + + + Language Setting Hint + Hinweis zur Spracheinstellung + + + + Please restart the program to make the language setting take effect. + Starten Sie das Programm erneut, um die geänderten Spracheinstellungen zu übernehmen. + + + + About 2048-Qt + Über &2048-Qt + + + + Game Over + Game Over + + + + Game Over! + Game Over! + + + + You Win + Sie gewinnen! + + + + You win! Continue playing? + Sie haben gewonnen! Weiterspielen? + + +