added Russian translation

master
Qiaoyong Zhong 11 years ago
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

@ -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>

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 &lt;b&gt;2048 tile&lt;/b&gt;!</source>
<translation>Объединяйте числа, чтобы получить &lt;b&gt;плитку 2048&lt;/b&gt;!</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 &lt;b&gt;2048 tile&lt;/b&gt;!</source>
<translation>&lt;b&gt;2048&lt;/b&gt;</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…
Cancel
Save