Skip to content

Commit

Permalink
keys format placeholder updated
Browse files Browse the repository at this point in the history
  • Loading branch information
padawin committed Mar 8, 2014
1 parent 9b0799f commit e6141fc
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 23 deletions.
4 changes: 2 additions & 2 deletions command.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def run(self):
self._player.addItemsToInventory(i)
area.area.removeItems(self._player.getAreaId(), i)

print(_('TAKE_CONFIRMATION_%(quantity)_%(name)s') % {'quantity': quantity, 'name': name})
print(_('TAKE_CONFIRMATION_%(quantity)s_%(name)s') % {'quantity': quantity, 'name': name})


class drop(command):
Expand Down Expand Up @@ -433,7 +433,7 @@ def run(self):
self._player.removeItemsFromInventory(i)
area.area.addItems(self._player.getAreaId(), i)

print(_('DROP_CONFIRMATION_%(quantity)_%(name)s') % {'quantity': quantity, 'name': name})
print(_('DROP_CONFIRMATION_%(quantity)s_%(name)s') % {'quantity': quantity, 'name': name})


class inventory(command):
Expand Down
12 changes: 7 additions & 5 deletions locales/dist/LC_MESSAGES/message.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-07 23:05+0000\n"
"POT-Creation-Date: 2014-03-08 23:02+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -269,7 +269,8 @@ msgid "ERROR_TAKE_QUANTITY_TOO_HIGH"
msgstr ""

#: command.py:396
msgid "TAKE_CONFIRMATION_%(quantity)_%(name)s"
#, python-format
msgid "TAKE_CONFIRMATION_%(quantity)s_%(name)s"
msgstr ""

#: command.py:409
Expand All @@ -290,14 +291,15 @@ msgid "ERROR_DROP_QUANTITY_TOO_HIGH_%s"
msgstr ""

#: command.py:436
msgid "DROP_CONFIRMATION_%(quantity)_%(name)s"
#, python-format
msgid "DROP_CONFIRMATION_%(quantity)s_%(name)s"
msgstr ""

#: place.py:14 place.py:28 place.py:38 place.py:48 place.py:142
#: place.py:14 place.py:28 place.py:38 place.py:48
msgid "PLACE_TYPE_CAVE"
msgstr ""

#: place.py:14 place.py:26 place.py:36 place.py:46 place.py:138
#: place.py:14 place.py:26 place.py:36 place.py:46
msgid "PLACE_TYPE_DUNGEON"
msgstr ""

Expand Down
21 changes: 13 additions & 8 deletions locales/en_GB/LC_MESSAGES/message.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-07 23:05+0000\n"
"POT-Creation-Date: 2014-03-08 23:02+0000\n"
"PO-Revision-Date: 2014-03-07 22:38+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -139,15 +139,18 @@ msgstr "Go to the indicated direction"

#: command.py:169
msgid "ENTER_COMMAND_DESCRIPTION"
msgstr "Enter in the selected place (if the place is available in the current cell)"
msgstr ""
"Enter in the selected place (if the place is available in the current cell)"

#: command.py:171
msgid "EXIT_COMMAND_DESCRIPTION"
msgstr "Exit from the selected place (if the current cell is the place exit)"

#: command.py:173
msgid "LOOK_COMMAND_DESCRIPTION"
msgstr "List everything which is in the current area (characters, items, neighbour areas...)"
msgstr ""
"List everything which is in the current area (characters, items, neighbour "
"areas...)"

#: command.py:175
msgid "INVENTORY_COMMAND_DESCRIPTION"
Expand Down Expand Up @@ -269,7 +272,8 @@ msgid "ERROR_TAKE_QUANTITY_TOO_HIGH"
msgstr "There are not enough items of this kind"

#: command.py:396
msgid "TAKE_CONFIRMATION_%(quantity)_%(name)s"
#, python-format
msgid "TAKE_CONFIRMATION_%(quantity)s_%(name)s"
msgstr "You take %(quantity)s %(name)s"

#: command.py:409
Expand All @@ -290,14 +294,15 @@ msgid "ERROR_DROP_QUANTITY_TOO_HIGH_%s"
msgstr "I don't have enough %s to drop"

#: command.py:436
msgid "DROP_CONFIRMATION_%(quantity)_%(name)s"
msgstr "You drop %(quantity) %(name)s"
#, python-format
msgid "DROP_CONFIRMATION_%(quantity)s_%(name)s"
msgstr "You drop %(quantity)s %(name)s"

#: place.py:14 place.py:28 place.py:38 place.py:48 place.py:142
#: place.py:14 place.py:28 place.py:38 place.py:48
msgid "PLACE_TYPE_CAVE"
msgstr "cave"

#: place.py:14 place.py:26 place.py:36 place.py:46 place.py:138
#: place.py:14 place.py:26 place.py:36 place.py:46
msgid "PLACE_TYPE_DUNGEON"
msgstr "dungeon"

Expand Down
19 changes: 11 additions & 8 deletions locales/fr_FR/LC_MESSAGES/message.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-07 23:05+0000\n"
"POT-Creation-Date: 2014-03-08 23:02+0000\n"
"PO-Revision-Date: 2014-03-07 22:38+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -144,7 +144,8 @@ msgstr "Entrer dans un lieu"

#: command.py:171
msgid "EXIT_COMMAND_DESCRIPTION"
msgstr "Sortir d'un lieu (la sortie doit se trouver sur la même case que le joueur)"
msgstr ""
"Sortir d'un lieu (la sortie doit se trouver sur la même case que le joueur)"

#: command.py:173
msgid "LOOK_COMMAND_DESCRIPTION"
Expand Down Expand Up @@ -270,8 +271,9 @@ msgid "ERROR_TAKE_QUANTITY_TOO_HIGH"
msgstr "Vous ne pouvez pas en prendre autant"

#: command.py:396
msgid "TAKE_CONFIRMATION_%(quantity)_%(name)s"
msgstr "Vous ramassez %(quantity) %(name)s"
#, python-format
msgid "TAKE_CONFIRMATION_%(quantity)s_%(name)s"
msgstr "Vous ramassez %(quantity)s %(name)s"

#: command.py:409
msgid "ERROR_DROP_NO_ITEM_GIVEN"
Expand All @@ -291,14 +293,15 @@ msgid "ERROR_DROP_QUANTITY_TOO_HIGH_%s"
msgstr "Vous n'en possédez pas autant"

#: command.py:436
msgid "DROP_CONFIRMATION_%(quantity)_%(name)s"
msgstr "Vous déposez %(quantity) %(name)s"
#, python-format
msgid "DROP_CONFIRMATION_%(quantity)s_%(name)s"
msgstr "Vous déposez %(quantity)s %(name)s"

#: place.py:14 place.py:28 place.py:38 place.py:48 place.py:142
#: place.py:14 place.py:28 place.py:38 place.py:48
msgid "PLACE_TYPE_CAVE"
msgstr "cave"

#: place.py:14 place.py:26 place.py:36 place.py:46 place.py:138
#: place.py:14 place.py:26 place.py:36 place.py:46
msgid "PLACE_TYPE_DUNGEON"
msgstr "donjon"

Expand Down

0 comments on commit e6141fc

Please sign in to comment.