From 8f85093eb8b0796859be289ad23eb999c0591a25 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 27 Nov 2020 22:21:16 +0100 Subject: [PATCH] One string was missing --- locale/en/LC_MESSAGES/squirrelbattle.po | 9 +++++++-- locale/fr/LC_MESSAGES/squirrelbattle.po | 9 +++++++-- squirrelbattle/game.py | 2 +- squirrelbattle/interfaces.py | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/locale/en/LC_MESSAGES/squirrelbattle.po b/locale/en/LC_MESSAGES/squirrelbattle.po index 9ca5419..a027782 100644 --- a/locale/en/LC_MESSAGES/squirrelbattle.po +++ b/locale/en/LC_MESSAGES/squirrelbattle.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-11-27 22:05+0100\n" +"POT-Creation-Date: 2020-11-27 22:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -79,7 +79,7 @@ msgstr "" #: squirrelbattle/game.py:175 squirrelbattle/game.py:176 msgid "" "The JSON file is not correct.\n" -"Your save seems corrupted.It got deleted." +"Your save seems corrupted. It got deleted." msgstr "" #: squirrelbattle/settings.py:21 squirrelbattle/tests/translations_test.py:21 @@ -125,3 +125,8 @@ msgstr "" #: squirrelbattle/settings.py:32 squirrelbattle/tests/translations_test.py:40 msgid "Language" msgstr "" + +#: squirrelbattle/interfaces.py:407 +#, python-brace-format +msgid "{name} dies." +msgstr "" diff --git a/locale/fr/LC_MESSAGES/squirrelbattle.po b/locale/fr/LC_MESSAGES/squirrelbattle.po index 9dac712..c47f2ca 100644 --- a/locale/fr/LC_MESSAGES/squirrelbattle.po +++ b/locale/fr/LC_MESSAGES/squirrelbattle.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-11-27 22:05+0100\n" +"POT-Creation-Date: 2020-11-27 22:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -83,7 +83,7 @@ msgstr "" #: squirrelbattle/game.py:175 squirrelbattle/game.py:176 msgid "" "The JSON file is not correct.\n" -"Your save seems corrupted.It got deleted." +"Your save seems corrupted. It got deleted." msgstr "" "Le fichier JSON de sauvegarde est incorrect.\n" "Votre sauvegarde semble corrompue. Elle a été supprimée." @@ -131,3 +131,8 @@ msgstr "Pack de textures" #: squirrelbattle/settings.py:32 squirrelbattle/tests/translations_test.py:40 msgid "Language" msgstr "Langue" + +#: squirrelbattle/interfaces.py:407 +#, python-brace-format +msgid "{name} dies." +msgstr "{name} meurt." diff --git a/squirrelbattle/game.py b/squirrelbattle/game.py index 7851aee..09f1328 100644 --- a/squirrelbattle/game.py +++ b/squirrelbattle/game.py @@ -174,7 +174,7 @@ class Game: self.load_state(state) except JSONDecodeError: self.message = _("The JSON file is not correct.\n" - "Your save seems corrupted." + "Your save seems corrupted. " "It got deleted.") os.unlink(file_path) self.display_actions(DisplayActions.UPDATE) diff --git a/squirrelbattle/interfaces.py b/squirrelbattle/interfaces.py index 845e3bd..78c1a15 100644 --- a/squirrelbattle/interfaces.py +++ b/squirrelbattle/interfaces.py @@ -404,7 +404,7 @@ class FightingEntity(Entity): self.die() return _("{name} takes {amount} damage.")\ .format(name=self.name, amount=str(amount)) \ - + (" " + "{name} dies.".format(name=self.name) + + (" " + _("{name} dies.").format(name=self.name) if self.health <= 0 else "") def die(self) -> None: