diff --git a/2048-qt.pro b/2048-qt.pro index c067000..eed1d97 100644 --- a/2048-qt.pro +++ b/2048-qt.pro @@ -30,7 +30,7 @@ HEADERS += \ src/settings.h \ src/myclass.h -TRANSLATIONS = ts/2048-qt_zh_CN.ts ts/2048-qt_ru_RU.ts ts/2048-qt_pl_PL.ts +TRANSLATIONS = ts/2048-qt_de_DE.ts ts/2048-qt_pl_PL.ts ts/2048-qt_ru_RU.ts ts/2048-qt_zh_CN.ts VERSION = 0.1.6 diff --git a/qml/main.qml b/qml/main.qml index d344828..10a4d18 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -138,6 +138,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 ca54c92..43eeff2 100644 --- a/resources.qrc +++ b/resources.qrc @@ -3,6 +3,7 @@ ts/2048-qt_zh_CN.qm ts/2048-qt_pl_PL.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 0000000..d21904f Binary files /dev/null and b/ts/2048-qt_de_DE.qm differ 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? + + +