From 6cf0590586e034a864c146a9503c72b248135f62 Mon Sep 17 00:00:00 2001 From: eichhornchen Date: Sun, 10 Jan 2021 21:38:21 +0100 Subject: [PATCH] even more translations. --- squirrelbattle/entities/items.py | 4 +- .../locale/de/LC_MESSAGES/squirrelbattle.po | 44 ++++++++++++++---- .../locale/es/LC_MESSAGES/squirrelbattle.po | 46 +++++++++++++++---- .../locale/fr/LC_MESSAGES/squirrelbattle.po | 34 ++++++++++++-- squirrelbattle/tests/translations_test.py | 5 ++ 5 files changed, 111 insertions(+), 22 deletions(-) diff --git a/squirrelbattle/entities/items.py b/squirrelbattle/entities/items.py index ac5f74d..f4587f3 100644 --- a/squirrelbattle/entities/items.py +++ b/squirrelbattle/entities/items.py @@ -597,7 +597,7 @@ class Bow(LongRangeWeapon): @property def string(self) -> str: - return " is shot by an arrow." + return _(" is shot by an arrow.") class FireBallStaff(LongRangeWeapon): @@ -619,7 +619,7 @@ class FireBallStaff(LongRangeWeapon): @property def string(self) -> str: - return " is shot by a fire ball." + return _(" is shot by a fire ball.") def throw(self, direction: int) -> Any: """ diff --git a/squirrelbattle/locale/de/LC_MESSAGES/squirrelbattle.po b/squirrelbattle/locale/de/LC_MESSAGES/squirrelbattle.po index 3d9595a..f4e3cf8 100644 --- a/squirrelbattle/locale/de/LC_MESSAGES/squirrelbattle.po +++ b/squirrelbattle/locale/de/LC_MESSAGES/squirrelbattle.po @@ -1,12 +1,12 @@ -#, python-brace-format -msgid "{name} takes {amount} damage." -msgstr "{name} nimmt {amount} Schadenspunkte." +msgid "ring_of_critical_damage" +msgstr "" msgid "ring_of_more_experience" msgstr "" -msgid "ring_of_critical_damage" -msgstr "" +#, python-brace-format +msgid "{name} takes {amount} damage." +msgstr "{name} nimmt {amount} Schadenspunkte." # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR ÿnérant, eichhornchen, nicomarg, charlse, ifugao @@ -18,7 +18,7 @@ msgid "" msgstr "" "Project-Id-Version: squirrelbattle 3.14.1\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" -"POT-Creation-Date: 2021-01-10 21:20+0100\n" +"POT-Creation-Date: 2021-01-10 21:30+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -142,6 +142,14 @@ msgstr "" msgid "{name}" msgstr "{name}" +#: squirrelbattle/entities/items.py:600 +msgid " is shot by an arrow." +msgstr " wird von einem Pfeil erschossen." + +#: squirrelbattle/entities/items.py:622 +msgid " is shot by a fire ball." +msgstr " wird von eine Feuerball erschossen." + #: squirrelbattle/entities/player.py:83 msgid "It worked! Nearby ennemies will be confused for 3 turns." msgstr "" @@ -398,13 +406,33 @@ msgid "shield" msgstr "Schild" #: squirrelbattle/tests/translations_test.py:84 +msgid "ruler" +msgstr "Lineal" + +#: squirrelbattle/tests/translations_test.py:85 +msgid "scroll of damage" +msgstr "Schriftrolle des Schadens" + +#: squirrelbattle/tests/translations_test.py:86 +msgid "scroll of weakness" +msgstr "Schriftrolle der Schwäche" + +#: squirrelbattle/tests/translations_test.py:87 +msgid "bow" +msgstr "Bogen" + +#: squirrelbattle/tests/translations_test.py:88 +msgid "fire ball staff" +msgstr "Feuerball Stab" + +#: squirrelbattle/tests/translations_test.py:89 msgid "ring of critical damage" msgstr "Ring des kritischen Schadens" -#: squirrelbattle/tests/translations_test.py:86 +#: squirrelbattle/tests/translations_test.py:91 msgid "ring of more experience" msgstr "Ring der mehr Erfahrung" -#: squirrelbattle/tests/translations_test.py:88 +#: squirrelbattle/tests/translations_test.py:93 msgid "monocle" msgstr "Monokel" diff --git a/squirrelbattle/locale/es/LC_MESSAGES/squirrelbattle.po b/squirrelbattle/locale/es/LC_MESSAGES/squirrelbattle.po index e77f059..2d8ee64 100644 --- a/squirrelbattle/locale/es/LC_MESSAGES/squirrelbattle.po +++ b/squirrelbattle/locale/es/LC_MESSAGES/squirrelbattle.po @@ -1,12 +1,12 @@ -#, python-brace-format -msgid "{name} takes {amount} damage." -msgstr "{name} recibe {amount} daño." +msgid "ring_of_critical_damage" +msgstr "ring_of_critical_damage" msgid "ring_of_more_experience" msgstr "ring_of_more_experience" -msgid "ring_of_critical_damage" -msgstr "ring_of_critical_damage" +#, python-brace-format +msgid "{name} takes {amount} damage." +msgstr "{name} recibe {amount} daño." # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR ÿnérant, eichhornchen, nicomarg, charlse, ifugao @@ -18,7 +18,7 @@ msgid "" msgstr "" "Project-Id-Version: squirrelbattle 3.14.1\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" -"POT-Creation-Date: 2021-01-10 21:20+0100\n" +"POT-Creation-Date: 2021-01-10 21:30+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -69,7 +69,7 @@ msgstr "Usa {key} y luego muévete para hablar con la entidad" #: squirrelbattle/display/menudisplay.py:149 #: squirrelbattle/display/menudisplay.py:304 msgid "Credits" -msgstr "" +msgstr "Creditos" #: squirrelbattle/display/menudisplay.py:173 msgid "INVENTORY" @@ -140,6 +140,14 @@ msgstr "" msgid "{name}" msgstr "{name}" +#: squirrelbattle/entities/items.py:600 +msgid " is shot by an arrow." +msgstr " es disparado por una flecha." + +#: squirrelbattle/entities/items.py:622 +msgid " is shot by a fire ball." +msgstr " es disparado por una bola de fuego." + #: squirrelbattle/entities/player.py:83 msgid "It worked! Nearby ennemies will be confused for 3 turns." msgstr "¡Funcionó! Los enemigos cercanos se confundirán durante 3 turnos." @@ -394,13 +402,33 @@ msgid "shield" msgstr "escudo" #: squirrelbattle/tests/translations_test.py:84 +msgid "ruler" +msgstr "Regla" + +#: squirrelbattle/tests/translations_test.py:85 +msgid "scroll of damage" +msgstr "rollo de daño" + +#: squirrelbattle/tests/translations_test.py:86 +msgid "scroll of weakness" +msgstr "rollo de debilidad" + +#: squirrelbattle/tests/translations_test.py:87 +msgid "bow" +msgstr "arco" + +#: squirrelbattle/tests/translations_test.py:88 +msgid "fire ball staff" +msgstr "bastón de bola de fuego" + +#: squirrelbattle/tests/translations_test.py:89 msgid "ring of critical damage" msgstr "anillo de daño crítico" -#: squirrelbattle/tests/translations_test.py:86 +#: squirrelbattle/tests/translations_test.py:91 msgid "ring of more experience" msgstr "anillo de más experiencia" -#: squirrelbattle/tests/translations_test.py:88 +#: squirrelbattle/tests/translations_test.py:93 msgid "monocle" msgstr "monóculo" diff --git a/squirrelbattle/locale/fr/LC_MESSAGES/squirrelbattle.po b/squirrelbattle/locale/fr/LC_MESSAGES/squirrelbattle.po index 91c1731..93b524d 100644 --- a/squirrelbattle/locale/fr/LC_MESSAGES/squirrelbattle.po +++ b/squirrelbattle/locale/fr/LC_MESSAGES/squirrelbattle.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: squirrelbattle 3.14.1\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" -"POT-Creation-Date: 2021-01-10 21:20+0100\n" +"POT-Creation-Date: 2021-01-10 21:30+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -135,6 +135,14 @@ msgstr "" msgid "{name}" msgstr "{name}" +#: squirrelbattle/entities/items.py:600 +msgid " is shot by an arrow." +msgstr " est frappé par une flèche." + +#: squirrelbattle/entities/items.py:622 +msgid " is shot by a fire ball." +msgstr " est frappé par une boule de feu." + #: squirrelbattle/entities/player.py:83 msgid "It worked! Nearby ennemies will be confused for 3 turns." msgstr "Ça a marché ! Les ennemis proches seront confus pendant 3 tours" @@ -389,13 +397,33 @@ msgid "shield" msgstr "bouclier" #: squirrelbattle/tests/translations_test.py:84 +msgid "ruler" +msgstr "règle" + +#: squirrelbattle/tests/translations_test.py:85 +msgid "scroll of damage" +msgstr "parchemin de dégâts" + +#: squirrelbattle/tests/translations_test.py:86 +msgid "scroll of weakness" +msgstr "parchemin de faiblesse" + +#: squirrelbattle/tests/translations_test.py:87 +msgid "bow" +msgstr "arc" + +#: squirrelbattle/tests/translations_test.py:88 +msgid "fire ball staff" +msgstr "baton de boule de feu" + +#: squirrelbattle/tests/translations_test.py:89 msgid "ring of critical damage" msgstr "anneau de coup critique" -#: squirrelbattle/tests/translations_test.py:86 +#: squirrelbattle/tests/translations_test.py:91 msgid "ring of more experience" msgstr "anneau de plus d'expérience" -#: squirrelbattle/tests/translations_test.py:88 +#: squirrelbattle/tests/translations_test.py:93 msgid "monocle" msgstr "monocle" diff --git a/squirrelbattle/tests/translations_test.py b/squirrelbattle/tests/translations_test.py index c0ad3c0..2db869a 100644 --- a/squirrelbattle/tests/translations_test.py +++ b/squirrelbattle/tests/translations_test.py @@ -81,6 +81,11 @@ class TestTranslations(unittest.TestCase): self.assertEqual(_("helmet"), "casque") self.assertEqual(_("chestplate"), "plastron") self.assertEqual(_("shield"), "bouclier") + self.assertEqual(_("ruler"), "règle") + self.assertEqual(_("scroll of damage"), "parchemin de dégâts") + self.assertEqual(_("scroll of weakness"), "parchemin de faiblesse") + self.assertEqual(_("bow"), "arc") + self.assertEqual(_("fire ball staff"), "baton de boule de feu") self.assertEqual(_("ring of critical damage"), "anneau de coup critique") self.assertEqual(_("ring of more experience"),