Inventory title

This commit is contained in:
Yohann D'ANELLO 2020-12-04 16:02:03 +01:00
parent cdd527a7fd
commit fbfcd5dae0
4 changed files with 51 additions and 47 deletions

View File

@ -1,6 +1,6 @@
# Copyright (C) 2020 by ÿnérant, eichhornchen, nicomarg, charlse # Copyright (C) 2020 by ÿnérant, eichhornchen, nicomarg, charlse
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import curses
from typing import List from typing import List
from squirrelbattle.menus import Menu, MainMenu from squirrelbattle.menus import Menu, MainMenu
@ -104,4 +104,6 @@ class MainMenuDisplay(Display):
class InventoryDisplay(MenuDisplay): class InventoryDisplay(MenuDisplay):
def update_pad(self) -> None: def update_pad(self) -> None:
pass message = _("== INVENTORY ==")
self.addstr(self.pad, 0, (self.width - len(message)) // 2, message,
curses.A_BOLD | curses.A_ITALIC)

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: squirrelbattle 3.14.1\n" "Project-Id-Version: squirrelbattle 3.14.1\n"
"Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n"
"POT-Creation-Date: 2020-12-04 14:18+0100\n" "POT-Creation-Date: 2020-12-04 15:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,7 +18,8 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: squirrelbattle/tests/translations_test.py:16 #: squirrelbattle/tests/translations_test.py:16
#: squirrelbattle/tests/game_test.py:290 #: squirrelbattle/tests/game_test.py:290 squirrelbattle/tests/game_test.py:285
#: squirrelbattle/tests/game_test.py:288 squirrelbattle/tests/game_test.py:291
msgid "New game" msgid "New game"
msgstr "Neu Spiel" msgstr "Neu Spiel"
@ -145,7 +146,7 @@ msgstr "{name} stirbt."
msgid "Back" msgid "Back"
msgstr "Zurück" msgstr "Zurück"
#: squirrelbattle/game.py:148 #: squirrelbattle/game.py:148 squirrelbattle/game.py:160
msgid "" msgid ""
"Some keys are missing in your save file.\n" "Some keys are missing in your save file.\n"
"Your save seems to be corrupt. It got deleted." "Your save seems to be corrupt. It got deleted."
@ -153,7 +154,7 @@ msgstr ""
"In Ihrer Speicherdatei fehlen einige Schlüssel.\n" "In Ihrer Speicherdatei fehlen einige Schlüssel.\n"
"Ihre Speicherung scheint korrupt zu sein. Es wird gelöscht." "Ihre Speicherung scheint korrupt zu sein. Es wird gelöscht."
#: squirrelbattle/game.py:156 #: squirrelbattle/game.py:156 squirrelbattle/game.py:168
msgid "" msgid ""
"No player was found on this map!\n" "No player was found on this map!\n"
"Maybe you died?" "Maybe you died?"
@ -161,10 +162,14 @@ msgstr ""
"Auf dieser Karte wurde kein Spieler gefunden!\n" "Auf dieser Karte wurde kein Spieler gefunden!\n"
"Vielleicht sind Sie gestorben?" "Vielleicht sind Sie gestorben?"
#: squirrelbattle/game.py:176 #: squirrelbattle/game.py:176 squirrelbattle/game.py:188
msgid "" msgid ""
"The JSON file is not correct.\n" "The JSON file is not correct.\n"
"Your save seems corrupted. It got deleted." "Your save seems corrupted. It got deleted."
msgstr "" msgstr ""
"Die JSON-Datei ist nicht korrekt.\n" "Die JSON-Datei ist nicht korrekt.\n"
"Ihre Speicherung scheint korrumpiert. Sie wurde gelöscht." "Ihre Speicherung scheint korrumpiert. Sie wurde gelöscht."
#: squirrelbattle/display/menudisplay.py:107
msgid "== INVENTORY =="
msgstr "== BESTAND =="

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: squirrelbattle 3.14.1\n" "Project-Id-Version: squirrelbattle 3.14.1\n"
"Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n"
"POT-Creation-Date: 2020-12-04 14:18+0100\n" "POT-Creation-Date: 2020-12-04 15:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -38,7 +38,8 @@ msgstr ""
#: squirrelbattle/menus.py:45 squirrelbattle/tests/translations_test.py:14 #: squirrelbattle/menus.py:45 squirrelbattle/tests/translations_test.py:14
#: squirrelbattle/tests/game_test.py:284 squirrelbattle/tests/game_test.py:287 #: squirrelbattle/tests/game_test.py:284 squirrelbattle/tests/game_test.py:287
#: squirrelbattle/tests/translations_test.py:16 #: squirrelbattle/tests/translations_test.py:16
#: squirrelbattle/tests/game_test.py:290 #: squirrelbattle/tests/game_test.py:290 squirrelbattle/tests/game_test.py:285
#: squirrelbattle/tests/game_test.py:288 squirrelbattle/tests/game_test.py:291
msgid "New game" msgid "New game"
msgstr "" msgstr ""
@ -72,18 +73,21 @@ msgid "Back"
msgstr "" msgstr ""
#: squirrelbattle/game.py:147 squirrelbattle/game.py:148 #: squirrelbattle/game.py:147 squirrelbattle/game.py:148
#: squirrelbattle/game.py:160
msgid "" msgid ""
"Some keys are missing in your save file.\n" "Some keys are missing in your save file.\n"
"Your save seems to be corrupt. It got deleted." "Your save seems to be corrupt. It got deleted."
msgstr "" msgstr ""
#: squirrelbattle/game.py:155 squirrelbattle/game.py:156 #: squirrelbattle/game.py:155 squirrelbattle/game.py:156
#: squirrelbattle/game.py:168
msgid "" msgid ""
"No player was found on this map!\n" "No player was found on this map!\n"
"Maybe you died?" "Maybe you died?"
msgstr "" msgstr ""
#: squirrelbattle/game.py:175 squirrelbattle/game.py:176 #: squirrelbattle/game.py:175 squirrelbattle/game.py:176
#: squirrelbattle/game.py:188
msgid "" msgid ""
"The JSON file is not correct.\n" "The JSON file is not correct.\n"
"Your save seems corrupted. It got deleted." "Your save seems corrupted. It got deleted."
@ -207,3 +211,7 @@ msgstr ""
#: squirrelbattle/tests/translations_test.py:45 #: squirrelbattle/tests/translations_test.py:45
msgid "Key used to open the inventory" msgid "Key used to open the inventory"
msgstr "" msgstr ""
#: squirrelbattle/display/menudisplay.py:107
msgid "== INVENTORY =="
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: squirrelbattle 3.14.1\n" "Project-Id-Version: squirrelbattle 3.14.1\n"
"Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n"
"POT-Creation-Date: 2020-12-04 14:18+0100\n" "POT-Creation-Date: 2020-12-04 15:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -35,34 +35,29 @@ msgstr "{name} frappe {opponent}."
msgid "{name} takes {amount} damage." msgid "{name} takes {amount} damage."
msgstr "{name} prend {amount} points de dégât." msgstr "{name} prend {amount} points de dégât."
#: squirrelbattle/menus.py:45 #: squirrelbattle/menus.py:45 squirrelbattle/tests/translations_test.py:16
#: squirrelbattle/tests/translations_test.py:16 #: squirrelbattle/tests/game_test.py:290 squirrelbattle/tests/game_test.py:285
#: squirrelbattle/tests/game_test.py:290 #: squirrelbattle/tests/game_test.py:288 squirrelbattle/tests/game_test.py:291
msgid "New game" msgid "New game"
msgstr "Nouvelle partie" msgstr "Nouvelle partie"
#: squirrelbattle/menus.py:46 #: squirrelbattle/menus.py:46 squirrelbattle/tests/translations_test.py:17
#: squirrelbattle/tests/translations_test.py:17
msgid "Resume" msgid "Resume"
msgstr "Continuer" msgstr "Continuer"
#: squirrelbattle/menus.py:47 #: squirrelbattle/menus.py:47 squirrelbattle/tests/translations_test.py:19
#: squirrelbattle/tests/translations_test.py:19
msgid "Save" msgid "Save"
msgstr "Sauvegarder" msgstr "Sauvegarder"
#: squirrelbattle/menus.py:48 #: squirrelbattle/menus.py:48 squirrelbattle/tests/translations_test.py:18
#: squirrelbattle/tests/translations_test.py:18
msgid "Load" msgid "Load"
msgstr "Charger" msgstr "Charger"
#: squirrelbattle/menus.py:49 #: squirrelbattle/menus.py:49 squirrelbattle/tests/translations_test.py:20
#: squirrelbattle/tests/translations_test.py:20
msgid "Settings" msgid "Settings"
msgstr "Paramètres" msgstr "Paramètres"
#: squirrelbattle/menus.py:50 #: squirrelbattle/menus.py:50 squirrelbattle/tests/translations_test.py:21
#: squirrelbattle/tests/translations_test.py:21
msgid "Exit" msgid "Exit"
msgstr "Quitter" msgstr "Quitter"
@ -71,6 +66,7 @@ msgid "Back"
msgstr "Retour" msgstr "Retour"
#: squirrelbattle/game.py:147 squirrelbattle/game.py:148 #: squirrelbattle/game.py:147 squirrelbattle/game.py:148
#: squirrelbattle/game.py:160
msgid "" msgid ""
"Some keys are missing in your save file.\n" "Some keys are missing in your save file.\n"
"Your save seems to be corrupt. It got deleted." "Your save seems to be corrupt. It got deleted."
@ -78,7 +74,7 @@ msgstr ""
"Certaines clés de votre ficher de sauvegarde sont manquantes.\n" "Certaines clés de votre ficher de sauvegarde sont manquantes.\n"
"Votre sauvegarde semble corrompue. Elle a été supprimée." "Votre sauvegarde semble corrompue. Elle a été supprimée."
#: squirrelbattle/game.py:156 #: squirrelbattle/game.py:156 squirrelbattle/game.py:168
msgid "" msgid ""
"No player was found on this map!\n" "No player was found on this map!\n"
"Maybe you died?" "Maybe you died?"
@ -86,7 +82,7 @@ msgstr ""
"Aucun joueur n'a été trouvé sur la carte !\n" "Aucun joueur n'a été trouvé sur la carte !\n"
"Peut-être êtes-vous mort ?" "Peut-être êtes-vous mort ?"
#: squirrelbattle/game.py:176 #: squirrelbattle/game.py:176 squirrelbattle/game.py:188
msgid "" msgid ""
"The JSON file is not correct.\n" "The JSON file is not correct.\n"
"Your save seems corrupted. It got deleted." "Your save seems corrupted. It got deleted."
@ -94,48 +90,39 @@ msgstr ""
"Le fichier JSON de sauvegarde est incorrect.\n" "Le fichier JSON de sauvegarde est incorrect.\n"
"Votre sauvegarde semble corrompue. Elle a été supprimée." "Votre sauvegarde semble corrompue. Elle a été supprimée."
#: squirrelbattle/settings.py:21 #: squirrelbattle/settings.py:21 squirrelbattle/tests/translations_test.py:27
#: squirrelbattle/tests/translations_test.py:27
msgid "Main key to move up" msgid "Main key to move up"
msgstr "Touche principale pour aller vers le haut" msgstr "Touche principale pour aller vers le haut"
#: squirrelbattle/settings.py:22 #: squirrelbattle/settings.py:22 squirrelbattle/tests/translations_test.py:29
#: squirrelbattle/tests/translations_test.py:29
msgid "Secondary key to move up" msgid "Secondary key to move up"
msgstr "Touche secondaire pour aller vers le haut" msgstr "Touche secondaire pour aller vers le haut"
#: squirrelbattle/settings.py:23 #: squirrelbattle/settings.py:23 squirrelbattle/tests/translations_test.py:31
#: squirrelbattle/tests/translations_test.py:31
msgid "Main key to move down" msgid "Main key to move down"
msgstr "Touche principale pour aller vers le bas" msgstr "Touche principale pour aller vers le bas"
#: squirrelbattle/settings.py:24 #: squirrelbattle/settings.py:24 squirrelbattle/tests/translations_test.py:33
#: squirrelbattle/tests/translations_test.py:33
msgid "Secondary key to move down" msgid "Secondary key to move down"
msgstr "Touche secondaire pour aller vers le bas" msgstr "Touche secondaire pour aller vers le bas"
#: squirrelbattle/settings.py:25 #: squirrelbattle/settings.py:25 squirrelbattle/tests/translations_test.py:35
#: squirrelbattle/tests/translations_test.py:35
msgid "Main key to move left" msgid "Main key to move left"
msgstr "Touche principale pour aller vers la gauche" msgstr "Touche principale pour aller vers la gauche"
#: squirrelbattle/settings.py:26 #: squirrelbattle/settings.py:26 squirrelbattle/tests/translations_test.py:37
#: squirrelbattle/tests/translations_test.py:37
msgid "Secondary key to move left" msgid "Secondary key to move left"
msgstr "Touche secondaire pour aller vers la gauche" msgstr "Touche secondaire pour aller vers la gauche"
#: squirrelbattle/settings.py:27 #: squirrelbattle/settings.py:27 squirrelbattle/tests/translations_test.py:39
#: squirrelbattle/tests/translations_test.py:39
msgid "Main key to move right" msgid "Main key to move right"
msgstr "Touche principale pour aller vers la droite" msgstr "Touche principale pour aller vers la droite"
#: squirrelbattle/settings.py:29 #: squirrelbattle/settings.py:29 squirrelbattle/tests/translations_test.py:41
#: squirrelbattle/tests/translations_test.py:41
msgid "Secondary key to move right" msgid "Secondary key to move right"
msgstr "Touche secondaire pour aller vers la droite" msgstr "Touche secondaire pour aller vers la droite"
#: squirrelbattle/settings.py:30 #: squirrelbattle/settings.py:30 squirrelbattle/tests/translations_test.py:43
#: squirrelbattle/tests/translations_test.py:43
msgid "Key to validate a menu" msgid "Key to validate a menu"
msgstr "Touche pour valider un menu" msgstr "Touche pour valider un menu"
@ -143,13 +130,11 @@ msgstr "Touche pour valider un menu"
msgid "Key used to open the inventory" msgid "Key used to open the inventory"
msgstr "Touche utilisée pour ouvrir l'inventaire" msgstr "Touche utilisée pour ouvrir l'inventaire"
#: squirrelbattle/settings.py:31 #: squirrelbattle/settings.py:31 squirrelbattle/tests/translations_test.py:47
#: squirrelbattle/tests/translations_test.py:47
msgid "Texture pack" msgid "Texture pack"
msgstr "Pack de textures" msgstr "Pack de textures"
#: squirrelbattle/settings.py:32 #: squirrelbattle/settings.py:32 squirrelbattle/tests/translations_test.py:48
#: squirrelbattle/tests/translations_test.py:48
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
@ -185,3 +170,7 @@ msgstr "bombe"
#: squirrelbattle/tests/translations_test.py:59 #: squirrelbattle/tests/translations_test.py:59
msgid "heart" msgid "heart"
msgstr "cœur" msgstr "cœur"
#: squirrelbattle/display/menudisplay.py:107
msgid "== INVENTORY =="
msgstr "== INVENTAIRE =="