added Russian translation
This commit is contained in:
parent
bfbf9dcf9d
commit
c2e15100a4
@ -29,7 +29,7 @@ HEADERS += \
|
||||
myclass.h \
|
||||
settings.h
|
||||
|
||||
TRANSLATIONS = ts/2048-qt_zh_CN.ts ts/2048-qt_ru.ts
|
||||
TRANSLATIONS = ts/2048-qt_zh_CN.ts ts/2048-qt_ru_RU.ts
|
||||
|
||||
VERSION = 0.1.4
|
||||
|
||||
|
@ -13,6 +13,7 @@ A clone of [2048](https://github.com/gabrielecirulli/2048), implemented in Qt.
|
||||
- PRC (天朝)
|
||||
- Multi-language support, currently
|
||||
- English
|
||||
- Russian (by [Sergey Basalaev](https://github.com/SBasalaev))
|
||||
- Simplified Chinese
|
||||
|
||||
## Screenshots
|
||||
@ -52,4 +53,5 @@ sudo apt-get install 2048-qt
|
||||
|
||||
## Todo
|
||||
|
||||
- Allow the user to add his own label systems
|
||||
- AI support
|
||||
|
12
qml/main.qml
12
qml/main.qml
@ -101,6 +101,18 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Russian")
|
||||
checkable: true
|
||||
exclusiveGroup: languageSettingsGroup
|
||||
checked: settings.value("language") === "ru_RU" ? true : false
|
||||
onTriggered: {
|
||||
if (settings.value("language") !== "ru_RU") {
|
||||
settings.setValue("language", "ru_RU");
|
||||
changeLanguageDialog.open();
|
||||
}
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Simplified Chinese")
|
||||
checkable: true
|
||||
|
@ -1,6 +1,7 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>ts/2048-qt_zh_CN.qm</file>
|
||||
<file>ts/2048-qt_ru_RU.qm</file>
|
||||
<file>qml/main.qml</file>
|
||||
<file>qml/2048.js</file>
|
||||
<file>qml/Tile.qml</file>
|
||||
|
BIN
ts/2048-qt_ru_RU.qm
Normal file
BIN
ts/2048-qt_ru_RU.qm
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0" language="ru_RU">
|
||||
<TS version="2.1" language="ru_RU">
|
||||
<context>
|
||||
<name>main</name>
|
||||
<message>
|
||||
@ -15,7 +15,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="26"/>
|
||||
<location filename="../qml/main.qml" line="264"/>
|
||||
<location filename="../qml/main.qml" line="276"/>
|
||||
<source>New Game</source>
|
||||
<translation>Новая игра</translation>
|
||||
</message>
|
||||
@ -70,67 +70,72 @@
|
||||
<translation>Упрощённый китайский</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="121"/>
|
||||
<location filename="../qml/main.qml" line="117"/>
|
||||
<source>Russian</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="133"/>
|
||||
<source>Help</source>
|
||||
<translation>Справка</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="123"/>
|
||||
<location filename="../qml/main.qml" line="135"/>
|
||||
<source>About</source>
|
||||
<translation>О программе</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="127"/>
|
||||
<location filename="../qml/main.qml" line="139"/>
|
||||
<source>About Qt</source>
|
||||
<translation>О Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="185"/>
|
||||
<location filename="../qml/main.qml" line="197"/>
|
||||
<source>SCORE</source>
|
||||
<translation>СЧЁТ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="185"/>
|
||||
<location filename="../qml/main.qml" line="197"/>
|
||||
<source>BEST</source>
|
||||
<translation>ЛУЧШИЙ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="245"/>
|
||||
<location filename="../qml/main.qml" line="257"/>
|
||||
<source>Join the numbers and get to the <b>2048 tile</b>!</source>
|
||||
<translation>Объединяйте числа, чтобы получить <b>плитку 2048</b>!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="302"/>
|
||||
<location filename="../qml/main.qml" line="314"/>
|
||||
<source>Language Setting Hint</source>
|
||||
<translation>Подсказка установки языка</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="303"/>
|
||||
<location filename="../qml/main.qml" line="315"/>
|
||||
<source>Please restart the program to make the language setting take effect.</source>
|
||||
<translation>Пожалуйста, перезапустите программу, чтобы применить языковые настройки.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="309"/>
|
||||
<location filename="../qml/main.qml" line="321"/>
|
||||
<source>About 2048-Qt</source>
|
||||
<translation>О программе 2048-Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="316"/>
|
||||
<location filename="../qml/main.qml" line="328"/>
|
||||
<source>Game Over</source>
|
||||
<translation>Игра окончена</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="317"/>
|
||||
<location filename="../qml/main.qml" line="329"/>
|
||||
<source>Game Over!</source>
|
||||
<translation>Игра окончена!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="327"/>
|
||||
<location filename="../qml/main.qml" line="339"/>
|
||||
<source>You Win</source>
|
||||
<translation>Вы выиграли</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="328"/>
|
||||
<location filename="../qml/main.qml" line="340"/>
|
||||
<source>You win! Continue playing?</source>
|
||||
<translation>Вы выиграли! Продолжить играть?</translation>
|
||||
</message>
|
Binary file not shown.
@ -15,7 +15,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="26"/>
|
||||
<location filename="../qml/main.qml" line="264"/>
|
||||
<location filename="../qml/main.qml" line="276"/>
|
||||
<source>New Game</source>
|
||||
<translation>新游戏</translation>
|
||||
</message>
|
||||
@ -70,67 +70,72 @@
|
||||
<translation>简体中文</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="121"/>
|
||||
<location filename="../qml/main.qml" line="117"/>
|
||||
<source>Russian</source>
|
||||
<translation>俄语</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="133"/>
|
||||
<source>Help</source>
|
||||
<translation>帮助</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="123"/>
|
||||
<location filename="../qml/main.qml" line="135"/>
|
||||
<source>About</source>
|
||||
<translation>关于</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="127"/>
|
||||
<location filename="../qml/main.qml" line="139"/>
|
||||
<source>About Qt</source>
|
||||
<translation>关于Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="185"/>
|
||||
<location filename="../qml/main.qml" line="197"/>
|
||||
<source>SCORE</source>
|
||||
<translation>得分</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="185"/>
|
||||
<location filename="../qml/main.qml" line="197"/>
|
||||
<source>BEST</source>
|
||||
<translation>最高分</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="245"/>
|
||||
<location filename="../qml/main.qml" line="257"/>
|
||||
<source>Join the numbers and get to the <b>2048 tile</b>!</source>
|
||||
<translation>把相同的数字相加,得到<b>2048</b>!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="302"/>
|
||||
<location filename="../qml/main.qml" line="314"/>
|
||||
<source>Language Setting Hint</source>
|
||||
<translation>语言设置提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="303"/>
|
||||
<location filename="../qml/main.qml" line="315"/>
|
||||
<source>Please restart the program to make the language setting take effect.</source>
|
||||
<translation>为了让语言设置生效,请重启程序。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="309"/>
|
||||
<location filename="../qml/main.qml" line="321"/>
|
||||
<source>About 2048-Qt</source>
|
||||
<translation>关于2048-Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="316"/>
|
||||
<location filename="../qml/main.qml" line="328"/>
|
||||
<source>Game Over</source>
|
||||
<translation>游戏结束</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="317"/>
|
||||
<location filename="../qml/main.qml" line="329"/>
|
||||
<source>Game Over!</source>
|
||||
<translation>游戏结束!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="327"/>
|
||||
<location filename="../qml/main.qml" line="339"/>
|
||||
<source>You Win</source>
|
||||
<translation>你赢了</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/main.qml" line="328"/>
|
||||
<location filename="../qml/main.qml" line="340"/>
|
||||
<source>You win! Continue playing?</source>
|
||||
<translation>你赢了!要继续玩吗?</translation>
|
||||
</message>
|
||||
|
Loading…
x
Reference in New Issue
Block a user