diff --git a/2048-qt.pro b/2048-qt.pro index 8ef0d1a..c067000 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 +TRANSLATIONS = ts/2048-qt_zh_CN.ts ts/2048-qt_ru_RU.ts ts/2048-qt_pl_PL.ts VERSION = 0.1.6 diff --git a/README.md b/README.md index a359f8a..faad5b5 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ A clone of [2048](https://github.com/gabrielecirulli/2048), implemented in Qt. - PRC (天朝) - Multi-language support, currently - English + - Polish (by [Michał Radwański](https://github.com/enedil)) - Russian (by [Sergey Basalaev](https://github.com/SBasalaev)) - Simplified Chinese diff --git a/qml/main.qml b/qml/main.qml index 7d64895..d344828 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -113,6 +113,19 @@ ApplicationWindow { } } } + MenuItem { + text: "Polski" + checkable: true + exclusiveGroup: languageSettingsGroup + checked: settings.value("language") === "pl_PL" ? true : false + onTriggered: { + if (settings.value("language") !== "pl_PL") { + settings.setValue("language", "pl_PL"); + changeLanguageDialog.open(); + } + } + } + MenuItem { text: "Русский" checkable: true diff --git a/resources.qrc b/resources.qrc index 6914e54..ca54c92 100644 --- a/resources.qrc +++ b/resources.qrc @@ -1,6 +1,7 @@ ts/2048-qt_zh_CN.qm + ts/2048-qt_pl_PL.qm ts/2048-qt_ru_RU.qm qml/main.qml qml/2048.js diff --git a/ts/2048-qt_pl_PL.qm b/ts/2048-qt_pl_PL.qm new file mode 100644 index 0000000..0ed0c11 Binary files /dev/null and b/ts/2048-qt_pl_PL.qm differ diff --git a/ts/2048-qt_pl_PL.ts b/ts/2048-qt_pl_PL.ts new file mode 100644 index 0000000..b9db7aa --- /dev/null +++ b/ts/2048-qt_pl_PL.ts @@ -0,0 +1,145 @@ + + + + + main + + + 2048 Game + Gra 2048 + + + + File + Plik + + + + + New Game + Nowa gra + + + + Exit + Wyjdź + + + + Settings + Ustawienia + + + + Labeling + Etykiety + + + + 2048 + 2048 + + + + Degree + Stopień + + + + Military Rank + Ranga wojskowa + + + + PRC + PRC + + + + Language + Język + + + English + Angielski + + + Polish + Polski + + + Russian + Rosyjski + + + Simplified Chinese + Chiński uproszczony + + + + + Help + Pomoc + + + + About + O programie + + + + About Qt + O Qt + + + + SCORE + WYNIK + + + + BEST + NAJLEPSZY + + + + Join the numbers and get to the <b>2048 tile</b>! + Łącz liczby i dotrzyj do <b>kafelka 2048</b>! + + + + Language Setting Hint + Wskazówka odnośnie ustawiania języka + + + + Please restart the program to make the language setting take effect. + Aby zmiana języka była widoczna, proszę uruchomić ponownie program. + + + + About 2048-Qt + O programie 2048-Qt + + + + Game Over + Игра окончена + + + + Game Over! + Gra skończona! + + + + You Win + Wygrałeś + + + + You win! Continue playing? + Wygrałeś! Kontynuować grę? + + +