From 5dc0ee8cf18c2c4cab95f03d3bfef3cb5d7eba1f Mon Sep 17 00:00:00 2001 From: Thomas SERVUC Date: Thu, 24 Oct 2019 23:45:37 +0200 Subject: [PATCH 1/2] Improvement : Review commands and MD syntax --- HowToTranslate.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HowToTranslate.md b/HowToTranslate.md index 092b827..f06e8b4 100644 --- a/HowToTranslate.md +++ b/HowToTranslate.md @@ -23,7 +23,7 @@ The next step is to generate the .po files with the following command (change 'e ``` msginit --input=po/gfx_curses.pot --locale=es_AR --output=po/es_AR/gfx_curses.po msginit --input=po/gfx_terminal.pot --locale=es_AR --output=po/es_AR/gfx_terminal.po -msginit --input=po/highscore.pot --locale=es_AR --output=po/es_AR/gfx_highscore.po +msginit --input=po/highscore.pot --locale=es_AR --output=po/es_AR/highscore.po ``` ### Translation @@ -39,15 +39,15 @@ for example: Nwe should create the directory where we'll place the .mo files (change es_AR by your language standard name): ``` -mkdir 18n/es_AR/LC_MESSAGES +mkdir -p 18n/es_AR/LC_MESSAGES ``` The last step is to generate the .mo file: ``` -msgfmt --output-file=/18n/es_AR/LC_MESSAGES/gfx_curses.mo po/es_AR/gfx_curses.po -msgfmt --output-file=/18n/es_AR/LC_MESSAGES/gfx_terminal.mo po/es_AR/gfx_terminal.po -msgfmt --output-file=/18n/es_AR/LC_MESSAGES/highscore.mo po/es_AR/highscore.po +msgfmt --output-file=18n/es_AR/LC_MESSAGES/gfx_curses.mo po/es_AR/gfx_curses.po +msgfmt --output-file=18n/es_AR/LC_MESSAGES/gfx_terminal.mo po/es_AR/gfx_terminal.po +msgfmt --output-file=18n/es_AR/LC_MESSAGES/highscore.mo po/es_AR/highscore.po ``` -##And this is it! +## And this is it! From ca512ae2ff7f6aac833d56da1b94b54ef864db34 Mon Sep 17 00:00:00 2001 From: Thomas SERVUC Date: Thu, 24 Oct 2019 23:45:50 +0200 Subject: [PATCH 2/2] Improvement : Add french translation --- 18n/fr_FR/LC_MESSAGES/gfx_curses.mo | Bin 0 -> 533 bytes 18n/fr_FR/LC_MESSAGES/gfx_terminal.mo | Bin 0 -> 518 bytes 18n/fr_FR/LC_MESSAGES/highscore.mo | Bin 0 -> 1102 bytes po/fr_FR/gfx_curses.po | 33 +++++++++++++++ po/fr_FR/gfx_terminal.po | 33 +++++++++++++++ po/fr_FR/highscore.po | 56 ++++++++++++++++++++++++++ 6 files changed, 122 insertions(+) create mode 100644 18n/fr_FR/LC_MESSAGES/gfx_curses.mo create mode 100644 18n/fr_FR/LC_MESSAGES/gfx_terminal.mo create mode 100644 18n/fr_FR/LC_MESSAGES/highscore.mo create mode 100644 po/fr_FR/gfx_curses.po create mode 100644 po/fr_FR/gfx_terminal.po create mode 100644 po/fr_FR/highscore.po diff --git a/18n/fr_FR/LC_MESSAGES/gfx_curses.mo b/18n/fr_FR/LC_MESSAGES/gfx_curses.mo new file mode 100644 index 0000000000000000000000000000000000000000..45cf8375f92fc1b2f3db65de1a71567677b21ba7 GIT binary patch literal 533 zcmZ9J!A{#i5Qa@lFDoil^vYo_NFcPvc95VO5(UyABGn>-h*K|%J#n_Ocg^lP0>r&f zP^nMXV_$$5U`z`^jP&WB8I5LUXaB6P{tC!ei4EeA_&|IoTB`|0T>sa5(oe)sB3%iB z-=u5AU-CbaK9GJUU3o{4z9-t=tx+ln0N_*!*vwgQkr|6`T-e&#%(q!EvE~P6o{w{W ziPkBj1tihl0W9J$3S)MTwXvS3u24BYZVJbzMnEOKk`C|ix=~nODX9lVB~=+_rec#b zevS*(_Tpcqr^!haf8lY&lRZc}qO-pfB~iq_N$2_0O6^MNjTJDRn@T!3^iMi)XctWu z&TOAbb;dP(uIJ7E9KdwY^*H#iLsRvpzEj5^^z|9b9-AF`Ven-S&*VC TOKhxY&rUz^>hiCn=i@&D(O`<8 literal 0 HcmV?d00001 diff --git a/18n/fr_FR/LC_MESSAGES/gfx_terminal.mo b/18n/fr_FR/LC_MESSAGES/gfx_terminal.mo new file mode 100644 index 0000000000000000000000000000000000000000..01989e439ec4b9ae7a5b663b95aec6841fd151e8 GIT binary patch literal 518 zcmZXQOHRWu5QYPkjgeR&v12hCq*ll!2_S*nB1$O`K_P0ZuGpB=O@mT9*iHot4!{A} zaVidg#0@wClY)4Nkw5)2_SiF?*Ok(fgH}S;kUFx6Tp@*J$P#ky; z-(p+48?NuV$ZQsxhF^nEw^5d`4_>84oQ_D+ROI-V*^F`CzsLM1{GRj& D$Ki#I literal 0 HcmV?d00001 diff --git a/18n/fr_FR/LC_MESSAGES/highscore.mo b/18n/fr_FR/LC_MESSAGES/highscore.mo new file mode 100644 index 0000000000000000000000000000000000000000..555ae33dc3c95dd61d9570fb8d9ea1c7172076e0 GIT binary patch literal 1102 zcmb7C!EVz)5H(N=SmFQ|E0qw{%, 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: 2048 v1.0.1\n" +"Report-Msgid-Bugs-To: matiasezequielbian@gmail.com\n" +"POT-Creation-Date: 2018-04-26 18:58-0300\n" +"PO-Revision-Date: 2019-10-24 23:37+0200\n" +"Last-Translator: Thomas \n" +"Language-Team: French\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: src/gfx_curses.c:70 +#, c-format +msgid " Hi: %d\n" +msgstr "Meilleur:%d\n" + +#: src/gfx_curses.c:68 +#, c-format +msgid "Score: %d\n" +msgstr " Score: %d\n" + +#: src/gfx_curses.c:66 +#, c-format +msgid "Score: %d (+%d)\n" +msgstr " Score: %d (+%d)\n" diff --git a/po/fr_FR/gfx_terminal.po b/po/fr_FR/gfx_terminal.po new file mode 100644 index 0000000..6822588 --- /dev/null +++ b/po/fr_FR/gfx_terminal.po @@ -0,0 +1,33 @@ +# French translations for PACKAGE package. +# Copyright (C) 2019 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Thomas , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-26 19:02-0300\n" +"PO-Revision-Date: 2019-10-24 23:38+0200\n" +"Last-Translator: Thomas \n" +"Language-Team: French\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: src/gfx_terminal.c:46 +#, c-format +msgid " Hi: %ld\n" +msgstr "Meilleur: %ld\n" + +#: src/gfx_terminal.c:44 +#, c-format +msgid "Score: %ld\n" +msgstr " Score: %ld\n" + +#: src/gfx_terminal.c:42 +#, c-format +msgid "Score: %ld (+%ld)\n" +msgstr " Score: %ld (+%ld)\n" diff --git a/po/fr_FR/highscore.po b/po/fr_FR/highscore.po new file mode 100644 index 0000000..f5b348a --- /dev/null +++ b/po/fr_FR/highscore.po @@ -0,0 +1,56 @@ +# French translations for PACKAGE package. +# Copyright (C) 2019 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Thomas , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-17 18:12-0300\n" +"PO-Revision-Date: 2019-10-24 23:38+0200\n" +"Last-Translator: Thomas \n" +"Language-Team: French\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: src/highscore.c:58 +#, c-format +msgid "Are you sure you want to reset your scores? Y(es) or N(o)\n" +msgstr "Voulez-vous vraiment remettre a zero vos scores ? (Y)Oui ou (N)on\n" + +#: src/highscore.c:76 +#, c-format +msgid "Please enter Yes or No\n" +msgstr "Veuillez entrer (Y)Oui ou (N)on\n" + +#: src/highscore.c:95 +#, c-format +msgid "load: Failed to open highscore file\n" +msgstr "chargement: Echec dans l'ouverture du fichier de score\n" + +#: src/highscore.c:100 +#, c-format +msgid "load: Failed to parse highscore file\n" +msgstr "chargement: Echec dans la lecture du fichier de score\n" + +#: src/highscore.c:122 +#, c-format +msgid "save: Failed to open highscore file\n" +msgstr "sauvegarde: Echec dans l'ouverture du fichier de score\n" + +#: src/highscore.c:127 +#, c-format +msgid "save: Failed to write highscore file\n" +msgstr "sauvegarde: Echec dans l'ecriture du fichier de score\n" + +#: src/highscore.c:71 +msgid "y" +msgstr "y" + +#: src/highscore.c:71 +msgid "yes" +msgstr "yes"