From: Flavio Calva Date: Sat, 10 Jun 2023 06:38:24 +0000 (+0200) Subject: gettext: --no-location X-Git-Url: http://git.ya2.it/?p=pmachines.git;a=commitdiff_plain;ds=sidebyside gettext: --no-location --- diff --git a/assets/locale/po/it_IT.po b/assets/locale/po/it_IT.po index 7162dbd..643a5d8 100644 --- a/assets/locale/po/it_IT.po +++ b/assets/locale/po/it_IT.po @@ -17,210 +17,156 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: pmachines/editor/augmented_frame.py:53 msgid "Collapse/Expand" msgstr "Nascondi/Mostra" -#: pmachines/editor/scene_list.py:41 msgid "Write the file names (without the extension), one file for each line" msgstr "Scrivi i nomi dei file (senza estensione), uno per riga." -#: pmachines/editor/scene_list.py:68 msgid "the list of the scenes in the proper order" msgstr "la lista della scene nell'ordine" -#: pmachines/editor/scene_list.py:93 pmachines/editor/scene.py:185 msgid "Close the scene editor" msgstr "Chiudi l'editor della scena" -#: pmachines/editor/scene_list.py:103 msgid "Save the scene list" msgstr "Salva la lista delle scene" -#: pmachines/editor/scene_list.py:112 pmachines/editor/scene.py:314 msgid "You have unsaved changes. Really quit?" msgstr "Hai modifiche non salvate, vuoi veramente uscire?" -#: pmachines/editor/scene.py:81 -msgid "Filename" -msgstr "Filename" - -#: pmachines/editor/scene.py:97 -msgid "The name of the file without the extension" -msgstr "Il nome del file senza estensione" - -#: pmachines/editor/scene.py:100 -msgid "Name" -msgstr "Nome" - -#: pmachines/editor/scene.py:115 -msgid "The title of the scene" -msgstr "Il titolo della scena" - -#: pmachines/editor/scene.py:118 -msgid "Background" -msgstr "Sfondo" - -#: pmachines/editor/scene.py:133 -msgid "The name of the background" -msgstr "Il nome dello sfondo" - -#: pmachines/editor/scene.py:136 -msgid "Description" -msgstr "Descrizione" - -#: pmachines/editor/scene.py:160 -msgid "The description of the scene" -msgstr "La descrizione della scena" - -#: pmachines/editor/scene.py:195 -msgid "Save the scene" -msgstr "Salva la scena" - -#: pmachines/editor/scene.py:205 -msgid "Set the sorting of the scenes" -msgstr "Imposta l'ordinamento delle scene" - -#: pmachines/editor/scene.py:217 pmachines/editor/scene.py:234 -msgid "new item" -msgstr "nuovo oggetto" - -#: pmachines/editor/scene.py:247 -msgid "Create a new item" -msgstr "Crea un nuovo oggetto" - -#: pmachines/editor/scene.py:258 -msgid "Initial items" -msgstr "Oggetti iniziali" - -#: pmachines/editor/scene.py:268 -msgid "New scene" -msgstr "Nuova scena" - -#: pmachines/editor/start_items.py:57 msgid "class" msgstr "classe" -#: pmachines/editor/start_items.py:57 msgid "class of the item" msgstr "classe dell'oggetto" -#: pmachines/editor/start_items.py:71 msgid "count" msgstr "quantità" -#: pmachines/editor/start_items.py:71 msgid "number of the items" msgstr "numero degli oggetti" -#: pmachines/editor/start_items.py:72 pmachines/editor/inspector.py:68 msgid "scale" msgstr "scala" -#: pmachines/editor/start_items.py:72 pmachines/editor/inspector.py:68 msgid "scale (e.g. 1.2)" msgstr "scala (e.g. 1.2)" -#: pmachines/editor/start_items.py:73 pmachines/editor/inspector.py:69 msgid "mass" msgstr "massa" -#: pmachines/editor/start_items.py:73 msgid "mass (default 1)" msgstr "massa (default 1)" -#: pmachines/editor/start_items.py:74 pmachines/editor/inspector.py:70 msgid "restitution" msgstr "rimbalzo" -#: pmachines/editor/start_items.py:74 pmachines/editor/inspector.py:70 msgid "restitution (default 0.5)" msgstr "rimbalzo (default 0.5)" -#: pmachines/editor/start_items.py:75 pmachines/editor/inspector.py:71 msgid "friction" msgstr "frizione" -#: pmachines/editor/start_items.py:75 pmachines/editor/inspector.py:71 msgid "friction (default 0.5)" msgstr "frizione (default 0.5)" -#: pmachines/editor/start_items.py:76 pmachines/editor/inspector.py:72 -#: pmachines/editor/inspector.py:343 pmachines/editor/inspector.py:475 msgid "id" msgstr "id" -#: pmachines/editor/start_items.py:85 pmachines/editor/inspector.py:83 msgid "strategy" msgstr "strategia" -#: pmachines/editor/start_items.py:85 pmachines/editor/inspector.py:83 msgid "the strategy of the item" msgstr "la strategia dell'oggetto" -#: pmachines/editor/start_items.py:100 pmachines/editor/inspector.py:98 msgid "strategy_args" msgstr "argomenti strategia" -#: pmachines/editor/start_items.py:100 pmachines/editor/inspector.py:98 msgid "the arguments of the strategy" msgstr "gli argomenti della strategia" -#: pmachines/editor/start_items.py:128 pmachines/editor/inspector.py:125 -#: pmachines/editor/inspector.py:502 msgid "Close" msgstr "Chiudi" -#: pmachines/editor/start_items.py:138 msgid "Save" msgstr "Salva" -#: pmachines/editor/start_items.py:148 msgid "Delete" msgstr "Cancella" -#: pmachines/editor/start_items.py:158 msgid "New" msgstr "Nuovo" -#: pmachines/editor/start_items.py:168 msgid "Next" msgstr "Prossimo" -#: pmachines/editor/start_items.py:362 pmachines/editor/inspector.py:283 msgid "There are errors in the strategy args." msgstr "Ci sono errori negli argomenti della strategia." -#: pmachines/editor/inspector.py:66 pmachines/editor/inspector.py:342 -#: pmachines/editor/inspector.py:474 msgid "position" msgstr "posizione" -#: pmachines/editor/inspector.py:66 pmachines/editor/inspector.py:474 msgid "position (e.g. 0.1 2.3 4.5)" msgstr "posizione (e.g. 0.1 2.3 4.5)" -#: pmachines/editor/inspector.py:67 msgid "roll" msgstr "roll" -#: pmachines/editor/inspector.py:67 msgid "roll (e.g. 90)" msgstr "roll (e.g. 90)" -#: pmachines/editor/inspector.py:69 msgid "mass (default 1; 0 if fixed)" msgstr "massa (default 1; 0 se fisso)" -#: pmachines/editor/inspector.py:72 pmachines/editor/inspector.py:475 msgid "id of the item (for the strategies)" msgstr "id dell'oggetto (per le strategie)" -#: pmachines/editor/inspector.py:136 pmachines/editor/inspector.py:513 msgid "Delete the item" msgstr "Cancella l'oggetto" -#: pmachines/gui/credits_page.py:11 +msgid "Filename" +msgstr "Filename" + +msgid "The name of the file without the extension" +msgstr "Il nome del file senza estensione" + +msgid "Name" +msgstr "Nome" + +msgid "The title of the scene" +msgstr "Il titolo della scena" + +msgid "Background" +msgstr "Sfondo" + +msgid "The name of the background" +msgstr "Il nome dello sfondo" + +msgid "Description" +msgstr "Descrizione" + +msgid "The description of the scene" +msgstr "La descrizione della scena" + +msgid "Save the scene" +msgstr "Salva la scena" + +msgid "Set the sorting of the scenes" +msgstr "Imposta l'ordinamento delle scene" + +msgid "new item" +msgstr "nuovo oggetto" + +msgid "Create a new item" +msgstr "Crea un nuovo oggetto" + +msgid "Initial items" +msgstr "Oggetti iniziali" + +msgid "New scene" +msgstr "Nuova scena" + msgid "" "Code and gfx\n" " scaleFlavio Calva\n" @@ -236,11 +182,9 @@ msgstr "" "Music\n" " scaleStefan Grossmann" -#: pmachines/gui/credits_page.py:17 msgid "Website" msgstr "Sito web" -#: pmachines/gui/credits_page.py:23 msgid "" "Special thanks to:\n" " scalerdb\n" @@ -252,123 +196,101 @@ msgstr "" " scaleLuisa Tenuta\n" " scaleDamiana Ercolani" -#: pmachines/gui/credits_page.py:29 pmachines/gui/options_page.py:132 -#: pmachines/gui/play_page.py:32 msgid "Back" msgstr "Indietro" -#: pmachines/gui/main_page.py:11 msgid "Play" msgstr "Gioca" -#: pmachines/gui/main_page.py:18 msgid "Options" msgstr "Opzioni" -#: pmachines/gui/main_page.py:25 msgid "Credits" msgstr "Riconoscimenti" -#: pmachines/gui/main_page.py:32 pmachines/scene/scene.py:311 msgid "Exit" msgstr "Esci" -#: pmachines/gui/options_page.py:30 pmachines/gui/options_page.py:33 -#: pmachines/gui/options_page.py:145 msgid "English" msgstr "Inglese" -#: pmachines/gui/options_page.py:30 pmachines/gui/options_page.py:34 -#: pmachines/gui/options_page.py:146 msgid "Italian" msgstr "Italiano" -#: pmachines/gui/options_page.py:47 msgid "Language" msgstr "Linguaggio" -#: pmachines/gui/options_page.py:56 msgid "Volume" msgstr "Volume" -#: pmachines/gui/options_page.py:70 msgid "Fullscreen" msgstr "Schermo intero" -#: pmachines/gui/options_page.py:101 msgid "Resolution" msgstr "Risoluzione" -#: pmachines/gui/options_page.py:114 msgid "Antialiasing" msgstr "Antialiasing" -#: pmachines/gui/options_page.py:123 msgid "Shadows" msgstr "Ombre" -#: pmachines/scene/scene.py:110 msgid "Scene: " msgstr "Scena: " -#: pmachines/scene/scene.py:312 msgid "Instructions" msgstr "Istruzioni" -#: pmachines/scene/scene.py:313 msgid "Run" msgstr "Vai" -#: pmachines/scene/scene.py:320 msgid "Editor" msgstr "Editor" -#: pmachines/scene/scene.py:643 msgid "You win!" msgstr "Hai vinto!" -#: pmachines/scene/scene.py:723 msgid "You have failed!" msgstr "Hai perso!" -#~ msgid "Teeter tooter" -#~ msgstr "Altalena" +msgid "Teeter tooter, domino, box and basket ball" +msgstr "Altalena, domino, scatola e palla da basket" -#~ msgid "Goal: every domino piece must fall" -#~ msgstr "Obiettivo: ogni pezzo del domino deve cadere" +msgid "Goal: every domino piece must be hit" +msgstr "Obiettivo: ogni pezzo del domino deve essere colpito" -#~ msgid "Basket ball" -#~ msgstr "Palla da basket" +msgid "Goal: you must hit every domino piece" +msgstr "Obiettivo: devi colpire tutti i pezzi del domino" -#~ msgid "Goal: only the last piece of each row must be up" -#~ msgstr "Obiettivo: l'ultimo pezzo di ogni riga deve rimanere in piedi" +msgid "Domino, box and basket ball" +msgstr "Domino, scatola e palla da basket" -#~ msgid "Goal: every domino piece must be hit" -#~ msgstr "Obiettivo: ogni pezzo del domino deve essere colpito" +msgid "Domino" +msgstr "Domino" -#~ msgid "Domino, box and basket ball" -#~ msgstr "Domino, scatola e palla da basket" +msgid "keep mouse_l pressed to drag an item" +msgstr "tieni \\5mouse_l\\5 per muovere un oggetto" -#~ msgid "Teeter tooter, domino, box and basket ball" -#~ msgstr "Altalena, domino, scatola e palla da basket" +msgid "Basket ball" +msgstr "Palla da basket" -#~ msgid "Domino" -#~ msgstr "Domino" +msgid "Teeter tooter" +msgstr "Altalena" -#~ msgid "Goal: you must hit every domino piece" -#~ msgstr "Obiettivo: devi colpire tutti i pezzi del domino" +msgid "Box" +msgstr "Scatola" -#~ msgid "keep mouse_l pressed to drag an item" -#~ msgstr "tieni \\5mouse_l\\5 per muovere un oggetto" +msgid "Domino and box" +msgstr "Domino e scatola" -#~ msgid "Box" -#~ msgstr "Scatola" +msgid "keep mouse_r pressed to rotate an item" +msgstr "tieni \\5mouse_r\\5 per ruotare un oggetto" -#~ msgid "Goal: the left box must hit the right box" -#~ msgstr "Obiettivo: la scatola a sinistra deve colpire la scatola a destra" +msgid "Goal: the left box must hit the right box" +msgstr "Obiettivo: la scatola a sinistra deve colpire la scatola a destra" -#~ msgid "Domino and box" -#~ msgstr "Domino e scatola" +msgid "Goal: every domino piece must fall" +msgstr "Obiettivo: ogni pezzo del domino deve cadere" -#~ msgid "keep mouse_r pressed to rotate an item" -#~ msgstr "tieni \\5mouse_r\\5 per ruotare un oggetto" +msgid "Goal: only the last piece of each row must be up" +msgstr "Obiettivo: l'ultimo pezzo di ogni riga deve rimanere in piedi" diff --git a/assets/locale/po/pmachines.pot b/assets/locale/po/pmachines.pot index d8e5b77..a4e4181 100644 --- a/assets/locale/po/pmachines.pot +++ b/assets/locale/po/pmachines.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-02-06 17:47+0100\n" +"POT-Creation-Date: 2023-06-14 16:41+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,210 +17,156 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: pmachines/editor/augmented_frame.py:53 msgid "Collapse/Expand" msgstr "" -#: pmachines/editor/scene_list.py:41 msgid "Write the file names (without the extension), one file for each line" msgstr "" -#: pmachines/editor/scene_list.py:68 msgid "the list of the scenes in the proper order" msgstr "" -#: pmachines/editor/scene_list.py:93 pmachines/editor/scene.py:185 msgid "Close the scene editor" msgstr "" -#: pmachines/editor/scene_list.py:103 msgid "Save the scene list" msgstr "" -#: pmachines/editor/scene_list.py:112 pmachines/editor/scene.py:314 msgid "You have unsaved changes. Really quit?" msgstr "" -#: pmachines/editor/inspector.py:66 pmachines/editor/inspector.py:342 -#: pmachines/editor/inspector.py:473 -msgid "position" +msgid "class" msgstr "" -#: pmachines/editor/inspector.py:66 pmachines/editor/inspector.py:473 -msgid "position (e.g. 0.1 2.3 4.5)" +msgid "class of the item" msgstr "" -#: pmachines/editor/inspector.py:67 -msgid "roll" +msgid "count" msgstr "" -#: pmachines/editor/inspector.py:67 -msgid "roll (e.g. 90)" +msgid "number of the items" msgstr "" -#: pmachines/editor/inspector.py:68 pmachines/editor/start_items.py:72 msgid "scale" msgstr "" -#: pmachines/editor/inspector.py:68 pmachines/editor/start_items.py:72 msgid "scale (e.g. 1.2)" msgstr "" -#: pmachines/editor/inspector.py:69 pmachines/editor/start_items.py:73 msgid "mass" msgstr "" -#: pmachines/editor/inspector.py:69 -msgid "mass (default 1; 0 if fixed)" +msgid "mass (default 1)" msgstr "" -#: pmachines/editor/inspector.py:70 pmachines/editor/start_items.py:74 msgid "restitution" msgstr "" -#: pmachines/editor/inspector.py:70 pmachines/editor/start_items.py:74 msgid "restitution (default 0.5)" msgstr "" -#: pmachines/editor/inspector.py:71 pmachines/editor/start_items.py:75 msgid "friction" msgstr "" -#: pmachines/editor/inspector.py:71 pmachines/editor/start_items.py:75 msgid "friction (default 0.5)" msgstr "" -#: pmachines/editor/inspector.py:72 pmachines/editor/inspector.py:343 -#: pmachines/editor/inspector.py:474 pmachines/editor/start_items.py:76 msgid "id" msgstr "" -#: pmachines/editor/inspector.py:72 pmachines/editor/inspector.py:474 -msgid "id of the item (for the strategies)" -msgstr "" - -#: pmachines/editor/inspector.py:83 pmachines/editor/start_items.py:85 msgid "strategy" msgstr "" -#: pmachines/editor/inspector.py:83 pmachines/editor/start_items.py:85 msgid "the strategy of the item" msgstr "" -#: pmachines/editor/inspector.py:98 pmachines/editor/start_items.py:100 msgid "strategy_args" msgstr "" -#: pmachines/editor/inspector.py:98 pmachines/editor/start_items.py:100 msgid "the arguments of the strategy" msgstr "" -#: pmachines/editor/inspector.py:125 pmachines/editor/inspector.py:501 -#: pmachines/editor/start_items.py:128 msgid "Close" msgstr "" -#: pmachines/editor/inspector.py:136 pmachines/editor/inspector.py:512 -msgid "Delete the item" +msgid "Save" msgstr "" -#: pmachines/editor/inspector.py:283 pmachines/editor/start_items.py:362 -msgid "There are errors in the strategy args." +msgid "Delete" msgstr "" -#: pmachines/editor/scene.py:81 -msgid "Filename" +msgid "New" msgstr "" -#: pmachines/editor/scene.py:97 -msgid "The name of the file without the extension" +msgid "Next" msgstr "" -#: pmachines/editor/scene.py:100 -msgid "Name" +msgid "There are errors in the strategy args." msgstr "" -#: pmachines/editor/scene.py:115 -msgid "The title of the scene" +msgid "position" msgstr "" -#: pmachines/editor/scene.py:118 -msgid "Background" +msgid "position (e.g. 0.1 2.3 4.5)" msgstr "" -#: pmachines/editor/scene.py:133 -msgid "The name of the background" +msgid "roll" msgstr "" -#: pmachines/editor/scene.py:136 -msgid "Description" +msgid "roll (e.g. 90)" msgstr "" -#: pmachines/editor/scene.py:160 -msgid "The description of the scene" +msgid "mass (default 1; 0 if fixed)" msgstr "" -#: pmachines/editor/scene.py:195 -msgid "Save the scene" +msgid "id of the item (for the strategies)" msgstr "" -#: pmachines/editor/scene.py:205 -msgid "Set the sorting of the scenes" +msgid "Delete the item" msgstr "" -#: pmachines/editor/scene.py:217 pmachines/editor/scene.py:234 -msgid "new item" +msgid "Filename" msgstr "" -#: pmachines/editor/scene.py:247 -msgid "Create a new item" +msgid "The name of the file without the extension" msgstr "" -#: pmachines/editor/scene.py:258 -msgid "Initial items" +msgid "Name" msgstr "" -#: pmachines/editor/scene.py:268 -msgid "New scene" +msgid "The title of the scene" msgstr "" -#: pmachines/editor/start_items.py:57 -msgid "class" +msgid "Background" msgstr "" -#: pmachines/editor/start_items.py:57 -msgid "class of the item" +msgid "The name of the background" msgstr "" -#: pmachines/editor/start_items.py:71 -msgid "count" +msgid "Description" msgstr "" -#: pmachines/editor/start_items.py:71 -msgid "number of the items" +msgid "The description of the scene" msgstr "" -#: pmachines/editor/start_items.py:73 -msgid "mass (default 1)" +msgid "Save the scene" msgstr "" -#: pmachines/editor/start_items.py:138 -msgid "Save" +msgid "Set the sorting of the scenes" msgstr "" -#: pmachines/editor/start_items.py:148 -msgid "Delete" +msgid "new item" msgstr "" -#: pmachines/editor/start_items.py:158 -msgid "New" +msgid "Create a new item" msgstr "" -#: pmachines/editor/start_items.py:168 -msgid "Next" +msgid "Initial items" +msgstr "" + +msgid "New scene" msgstr "" -#: pmachines/gui/credits_page.py:11 msgid "" "Code and gfx\n" " scaleFlavio Calva\n" @@ -230,11 +176,9 @@ msgid "" " scaleStefan Grossmann" msgstr "" -#: pmachines/gui/credits_page.py:17 msgid "Website" msgstr "" -#: pmachines/gui/credits_page.py:23 msgid "" "Special thanks to:\n" " scalerdb\n" @@ -242,123 +186,101 @@ msgid "" " scaleDamiana Ercolani" msgstr "" -#: pmachines/gui/credits_page.py:29 pmachines/gui/options_page.py:132 -#: pmachines/gui/play_page.py:32 msgid "Back" msgstr "" -#: pmachines/gui/main_page.py:11 msgid "Play" msgstr "" -#: pmachines/gui/main_page.py:18 msgid "Options" msgstr "" -#: pmachines/gui/main_page.py:25 msgid "Credits" msgstr "" -#: pmachines/gui/main_page.py:32 pmachines/scene/scene.py:307 msgid "Exit" msgstr "" -#: pmachines/gui/options_page.py:30 pmachines/gui/options_page.py:33 -#: pmachines/gui/options_page.py:145 msgid "English" msgstr "" -#: pmachines/gui/options_page.py:30 pmachines/gui/options_page.py:34 -#: pmachines/gui/options_page.py:146 msgid "Italian" msgstr "" -#: pmachines/gui/options_page.py:47 msgid "Language" msgstr "" -#: pmachines/gui/options_page.py:56 msgid "Volume" msgstr "" -#: pmachines/gui/options_page.py:70 msgid "Fullscreen" msgstr "" -#: pmachines/gui/options_page.py:101 msgid "Resolution" msgstr "" -#: pmachines/gui/options_page.py:114 msgid "Antialiasing" msgstr "" -#: pmachines/gui/options_page.py:123 msgid "Shadows" msgstr "" -#: pmachines/scene/scene.py:108 msgid "Scene: " msgstr "" -#: pmachines/scene/scene.py:308 msgid "Instructions" msgstr "" -#: pmachines/scene/scene.py:309 msgid "Run" msgstr "" -#: pmachines/scene/scene.py:315 msgid "Editor" msgstr "" -#: pmachines/scene/scene.py:638 msgid "You win!" msgstr "" -#: pmachines/scene/scene.py:718 msgid "You have failed!" msgstr "" -msgid "Teeter tooter" +msgid "Teeter tooter, domino, box and basket ball" msgstr "" -msgid "Goal: every domino piece must fall" +msgid "Goal: every domino piece must be hit" msgstr "" -msgid "Basket ball" +msgid "Goal: you must hit every domino piece" msgstr "" -msgid "Goal: only the last piece of each row must be up" +msgid "Domino, box and basket ball" msgstr "" -msgid "Goal: every domino piece must be hit" +msgid "Domino" msgstr "" -msgid "Domino, box and basket ball" +msgid "keep mouse_l pressed to drag an item" msgstr "" -msgid "Teeter tooter, domino, box and basket ball" +msgid "Basket ball" msgstr "" -msgid "Domino" +msgid "Teeter tooter" msgstr "" -msgid "Goal: you must hit every domino piece" +msgid "Box" msgstr "" -msgid "keep mouse_l pressed to drag an item" +msgid "Domino and box" msgstr "" -msgid "Box" +msgid "keep mouse_r pressed to rotate an item" msgstr "" msgid "Goal: the left box must hit the right box" msgstr "" -msgid "Domino and box" +msgid "Goal: every domino piece must fall" msgstr "" -msgid "keep mouse_r pressed to rotate an item" +msgid "Goal: only the last piece of each row must be up" msgstr "" diff --git a/prj.org b/prj.org index 9c1e52b..aab8600 100644 --- a/prj.org +++ b/prj.org @@ -3,7 +3,6 @@ #+CATEGORY: pmachines #+TAGS: bug(b) calendar(c) waiting(w) -* remove line numbers from po/pot files (--no-location) * remove functional tests * bucket, magnet, road cone * (when panda3d provides it) android build (test with the emulator of android studio) diff --git a/tests/assets/locale/po/it_IT.po b/tests/assets/locale/po/it_IT.po index 9d0a42e..7e55476 100644 --- a/tests/assets/locale/po/it_IT.po +++ b/tests/assets/locale/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-14 08:00+0100\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2022-12-14 08:00+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,5 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: /home/flavio/sync/pmachines/tests/ya2/utils/test_language.py:26 -#: /home/flavio/sync/pmachines/tests/ya2/utils/test_language.py:28 msgid "test string" msgstr "stringa di test" diff --git a/tests/assets/locale/po/test.pot b/tests/assets/locale/po/test.pot index 6e01a0b..8d71626 100644 --- a/tests/assets/locale/po/test.pot +++ b/tests/assets/locale/po/test.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-14 10:01+0100\n" +"POT-Creation-Date: 2023-06-14 16:46+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,5 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: /home/flavio/sync/pmachines/tests/ya2/utils/test_language.py:26 -#: /home/flavio/sync/pmachines/tests/ya2/utils/test_language.py:28 msgid "test string" msgstr "" diff --git a/ya2/build/lang.py b/ya2/build/lang.py index 6126245..760c4eb 100644 --- a/ya2/build/lang.py +++ b/ya2/build/lang.py @@ -33,7 +33,7 @@ class LanguageBuilder: find_info = FindFileNamesArgs(['py'], ['tests']) src_files = ' '.join(find_file_names(find_info)) cmd_tmpl = 'xgettext -ci18n -d {appname} -L python ' + \ - '-o {pot_path}{appname}.pot ' + '--no-location -o {pot_path}{appname}.pot ' system(cmd_tmpl.format(appname=self.__app_name, pot_path=self.__po_path) + src_files) self.__add_from_json_to_pot() @@ -102,7 +102,7 @@ class LanguageBuilder: def __do_merge(self, lng_dir, lng_code): '''Manages the msgmerge's invokation.''' print('merge', lng_dir) - cmd = 'msgmerge -o {lng_dir}{appname}merge.po ' + \ + cmd = 'msgmerge --no-location -o {lng_dir}{appname}merge.po ' + \ '{tgt_path}{lng_code}.po {tgt_path}{appname}.pot' cmd = cmd.format(lng_dir=lng_dir, lng_code=lng_code, appname=self.__app_name, tgt_path=self.__po_path)