One string was missing

This commit is contained in:
Yohann D'ANELLO 2020-11-27 22:21:16 +01:00
parent d2d74c97a4
commit 8f85093eb8
4 changed files with 16 additions and 6 deletions

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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."

View File

@ -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)

View File

@ -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: