From 06f7ea31b324f1c8320c7197a56aee429ce6ba33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 13 Nov 2014 17:53:03 +0100 Subject: [PATCH] Add French translation --- 2048-qt.desktop | 1 + 2048-qt.pro | 2 +- README.md | 1 + qml/main.qml | 12 +++++ resources.qrc | 1 + ts/2048-qt_fr_FR.qm | Bin 0 -> 2031 bytes ts/2048-qt_fr_FR.ts | 128 ++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 ts/2048-qt_fr_FR.qm create mode 100644 ts/2048-qt_fr_FR.ts diff --git a/2048-qt.desktop b/2048-qt.desktop index 058797d..f9856fd 100644 --- a/2048-qt.desktop +++ b/2048-qt.desktop @@ -3,6 +3,7 @@ Name=2048-Qt GenericName=2048-Qt Comment=The 2048 number game implemented in Qt +Comment[fr]=Jeu de réflexion et de mathématique Exec=2048-qt Icon=2048-qt Terminal=false diff --git a/2048-qt.pro b/2048-qt.pro index 8029442..f5a649e 100644 --- a/2048-qt.pro +++ b/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_fr_FR.ts VERSION = 0.1.5 diff --git a/README.md b/README.md index 5a1376e..728dbe2 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 + - French (by [Rémi Verschelde](https://github.com/akien-mga)) - Russian (by [Sergey Basalaev](https://github.com/SBasalaev)) - Simplified Chinese diff --git a/qml/main.qml b/qml/main.qml index 67e9497..36aad86 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -101,6 +101,18 @@ ApplicationWindow { } } } + MenuItem { + text: "Français" + checkable: true + exclusiveGroup: languageSettingsGroup + checked: settings.value("language") === "fr_FR" ? true : false + onTriggered: { + if (settings.value("language") !== "fr_FR") { + settings.setValue("language", "fr_FR"); + changeLanguageDialog.open(); + } + } + } MenuItem { text: "简体中文" checkable: true diff --git a/resources.qrc b/resources.qrc index 8e26ef5..66bb0d1 100644 --- a/resources.qrc +++ b/resources.qrc @@ -2,6 +2,7 @@ ts/2048-qt_zh_CN.qm ts/2048-qt_ru_RU.qm + ts/2048-qt_fr_FR.qm qml/main.qml qml/2048.js qml/Tile.qml diff --git a/ts/2048-qt_fr_FR.qm b/ts/2048-qt_fr_FR.qm new file mode 100644 index 0000000000000000000000000000000000000000..6a290630631d8261273189069f046fe1fb49e06d GIT binary patch literal 2031 zcmaJ?O^6g%5U!c&+3A(t#e;%~EN?=LhGgAUJa`yZbZ69rb$6XHD>(?hnR(l`_H>W^ zix_@g6jH@7lqm_cH% z?5H$yHKY;LC7(PzJqk2!aaYre!ZiAeEE=|LQh4@)q6s=cq2?HkIRyKjIFRAm@KLTo z1~XyE8jnz&YBYoT)Tyf78M|wZgXxGrqbjuPl0$E)6Gyt4T67e9F0!>Lpf9!gP*qvJ z$_O-ugdzY#{3-G^*r=VhGZ~H19sm>e6m*a6WLQNEb+vpB$+!#>g$O~Sw4Y(FnV3JR z{A^;2NFYK20=6d++u4`_j!}{b-(}6QN^_LcBqr^GGgMGRjeW}Lra?{U>_NOHpl;8P zgExC-5&6XLt+|CFtT?7bF}7*P=YlFgPU}{w&}6(GjCAX_p6!b8s1k0}X(~Su(rpV% zg(CFg?Mibx?&J`XRwkR%nS@r;B0T$uRKhPRrV}$~Wm7q}Yo(JLq1hN}A?y^`wIXR{ zs6!E<8>gg9PR!F#Ki3`^l&zwdSXb{Xw^DXJz76G*lQO zR?Yar<3?LE5RcI;64XGC4P$I~*5(_CCR?jr|(%UPtm z(VSDKR=7phBd7(m$*0^G7V0x;r`J#{1pzn-cF7IQNwgsw%j?H0Zl-=fd`nr_WoeUX zUT(M(ETzWs6ecpM7|G4hzpDnM$6f$VmN2;m`9=`n;i9&1(m^qK@VDqjsxCN621@uU zfS71ZG;7!QEMIoGNjvhmiuas;ErVVyLq1VUOR5!aNei)x8oj%$rri`9GxPOY8n*@_ z_dDwa!iuL(TbRA33DQR6Q2E1)!UB}Sla4{D z76P*|Bp7S_65mO6CvZ*mBVld1CVV|`-MGp-bu8;SmQ%J{7BilUL5Lu+BhO$Wb}ona K6aMAp3%U0rA9iX0 literal 0 HcmV?d00001 diff --git a/ts/2048-qt_fr_FR.ts b/ts/2048-qt_fr_FR.ts new file mode 100644 index 0000000..aa4a599 --- /dev/null +++ b/ts/2048-qt_fr_FR.ts @@ -0,0 +1,128 @@ + + + + + main + + + 2048 Game + 2048 + + + + File + Fichier + + + + + New Game + Nouvelle partie + + + + Exit + Quitter + + + + Settings + Paramètres + + + + Labeling + Variante + + + + 2048 + 2048 + + + + Degree + Diplôme (chinois) + + + + Military Rank + Rang militaire (chinois) + + + + PRC + RPC (chinois) + + + + Language + Langue + + + + Help + Aide + + + + About + À propos + + + + About Qt + À propos de Qt + + + + SCORE + SCORE + + + + BEST + RECORD + + + + Join the numbers and get to the <b>2048 tile</b>! + Combinez les nombres pour atteindre <b>2048</b> ! + + + + Language Setting Hint + Information sur le paramétrage de la langue + + + + Please restart the program to make the language setting take effect. + Veuillez redémarrer le programme pour que le changement de langue soit pris en compte. + + + + About 2048-Qt + À propos de 2048-Qt + + + + Game Over + Fin de la partie + + + + Game Over! + Vous avez perdu ! + + + + You Win + Vous avez gagné + + + + You win! Continue playing? + Vous avez atteint l'objectif ! Voulez-vous continuer ? + + +