Package: 2048-qt Version: 0.1.5-3 Severity: wishlist Tags: upstream patch l10n
Hello Matiainer, attached you'll find a patch to add a German translation to 2048-qt. Since I'm not familiar with the translation system and the build system, please carefully review the patch. However, I used the translation for several days (locally build) without any problems. To actually build the version you probably need to modify the build system. Since I did not understand your build system, I updated debian/rules as follows: #!/usr/bin/make -f export QT_SELECT=qt5 %: dh $@ override_dh_auto_build: /usr/bin/lrelease-qt4 ts/2048-qt_de_DE.ts -qm ts/2048-qt_de_DE.qm dh_auto_build override_dh_auto_clean: [ -f ts/2048-qt_de_DE.qm ] || rm -f ts/2048-qt_de_DE.qm dh_auto_clean Please note that this is only a workaround, e.g. double builds do fail (but t his should be easy to fix). It would be great if you could apply the patch for your next upload and also forward it to upstream. -- System Information: Debian Release: 8.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages 2048-qt depends on: ii libc6 2.19-15 ii libgcc1 1:4.9.2-10 ii libgl1-mesa-glx [libgl1] 10.3.2-1 ii libqt5core5a 5.3.2+dfsg-4+b1 ii libqt5gui5 5.3.2+dfsg-4+b1 ii libqt5network5 5.3.2+dfsg-4+b1 ii libqt5qml5 5.3.2-4 ii libqt5quick5 5.3.2-4 ii libqt5widgets5 5.3.2+dfsg-4+b1 ii libstdc++6 4.9.2-10 ii qml-module-qtquick-controls 5.3.2-2 ii qml-module-qtquick-dialogs 5.3.2-2 2048-qt recommends no packages. 2048-qt suggests no packages. -- no debconf information -- Dr. Helge Kreutzmann deb...@helgefjell.de Dipl.-Phys. http://www.helgefjell.de/debian.php 64bit GNU powered gpg signed mail preferred Help keep free software "libre": http://www.ffii.de/
Index: 2048-Qt-0.1.5/ts/2048-qt_de_DE.ts =================================================================== --- /dev/null +++ 2048-Qt-0.1.5/ts/2048-qt_de_DE.ts @@ -0,0 +1,140 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="de_DE"> +<context> + <name>main</name> + <message> + <location filename="../qml/main.qml" line="13"/> + <source>2048 Game</source> + <translation>Spiel 2048</translation> + </message> + <message> + <location filename="../qml/main.qml" line="24"/> + <source>File</source> + <translation>Datei</translation> + </message> + <message> + <location filename="../qml/main.qml" line="26"/> + <location filename="../qml/main.qml" line="276"/> + <source>New Game</source> + <translation>Neues Spiel</translation> + </message> + <message> + <location filename="../qml/main.qml" line="31"/> + <source>Exit</source> + <translation>Ende</translation> + </message> + <message> + <location filename="../qml/main.qml" line="38"/> + <source>Settings</source> + <translation>Einstellungen</translation> + </message> + <message> + <location filename="../qml/main.qml" line="40"/> + <source>Labeling</source> + <translation>Benennung</translation> + </message> + <message> + <location filename="../qml/main.qml" line="42"/> + <source>2048</source> + <translation>2048</translation> + </message> + <message> + <location filename="../qml/main.qml" line="54"/> + <source>Degree</source> + <translation>Grad</translation> + </message> + <message> + <location filename="../qml/main.qml" line="66"/> + <source>Military Rank</source> + <translation>Militärischer Dienstgrad</translation> + </message> + <message> + <location filename="../qml/main.qml" line="78"/> + <source>PRC</source> + <translation>PRC</translation> + </message> + <message> + <location filename="../qml/main.qml" line="91"/> + <source>Language</source> + <translation>Sprache</translation> + </message> + <message> + <source>English</source> + <translation type="vanished">Englisch</translation> + </message> + <message> + <source>Simplified Chinese</source> + <translation type="vanished">Vereinfachtes Chinesisch</translation> + </message> + <message> + <source>Russian</source> + <translation type="vanished">Russisch</translation> + </message> + <message> + <location filename="../qml/main.qml" line="133"/> + <source>Help</source> + <translation>Hilfe</translation> + </message> + <message> + <location filename="../qml/main.qml" line="135"/> + <source>About</source> + <translation>Über</translation> + </message> + <message> + <location filename="../qml/main.qml" line="139"/> + <source>About Qt</source> + <translation>Über Qt</translation> + </message> + <message> + <location filename="../qml/main.qml" line="197"/> + <source>SCORE</source> + <translation>PUNKTE</translation> + </message> + <message> + <location filename="../qml/main.qml" line="197"/> + <source>BEST</source> + <translation>BESTE</translation> + </message> + <message> + <location filename="../qml/main.qml" line="257"/> + <source>Join the numbers and get to the <b>2048 tile</b>!</source> + <translation>Verbinden Sie die Zahlen bis zur <b>2048er Kachel</b>!</translation> + </message> + <message> + <location filename="../qml/main.qml" line="314"/> + <source>Language Setting Hint</source> + <translation>Spracheinstellungstipps</translation> + </message> + <message> + <location filename="../qml/main.qml" line="315"/> + <source>Please restart the program to make the language setting take effect.</source> + <translation>Bitte starten Sie das Programm neu, damit die Spracheinstellung aktiviert wird.</translation> + </message> + <message> + <location filename="../qml/main.qml" line="321"/> + <source>About 2048-Qt</source> + <translation>Über 2048-Qt</translation> + </message> + <message> + <location filename="../qml/main.qml" line="328"/> + <source>Game Over</source> + <translation>Spiel vorbei</translation> + </message> + <message> + <location filename="../qml/main.qml" line="329"/> + <source>Game Over!</source> + <translation>Spiel vorbei!</translation> + </message> + <message> + <location filename="../qml/main.qml" line="339"/> + <source>You Win</source> + <translation>Sie haben gewonnen</translation> + </message> + <message> + <location filename="../qml/main.qml" line="340"/> + <source>You win! Continue playing?</source> + <translation>Sie haben gewonnen! Weiter spielen?</translation> + </message> +</context> +</TS> Index: 2048-Qt-0.1.5/qml/main.qml =================================================================== --- 2048-Qt-0.1.5.orig/qml/main.qml +++ 2048-Qt-0.1.5/qml/main.qml @@ -125,6 +125,18 @@ ApplicationWindow { } } } + MenuItem { + text: "Deutsch" + 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(); + } + } + } } } Index: 2048-Qt-0.1.5/2048-qt.pro =================================================================== --- 2048-Qt-0.1.5.orig/2048-qt.pro +++ 2048-Qt-0.1.5/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 Index: 2048-Qt-0.1.5/resources.qrc =================================================================== --- 2048-Qt-0.1.5.orig/resources.qrc +++ 2048-Qt-0.1.5/resources.qrc @@ -2,6 +2,7 @@ <qresource prefix="/"> <file>ts/2048-qt_zh_CN.qm</file> <file>ts/2048-qt_ru_RU.qm</file> + <file>ts/2048-qt_de_DE.qm</file> <file>qml/main.qml</file> <file>qml/2048.js</file> <file>qml/Tile.qml</file>
signature.asc
Description: Digital signature