Try to relocate locale

This commit is contained in:
jimchen5209 2018-09-05 22:42:44 +08:00
parent 94ea61e941
commit 4bab99987d
No known key found for this signature in database
GPG key ID: 2FCCF05F156BEE05
3 changed files with 197 additions and 103 deletions

View file

@ -32,174 +32,225 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: bot.py:60
#: simple_commands.py:28
#, fuzzy
msgid "Follow these steps:\n"
"\n"
msgid "Follow these steps:\n\n"
"1. Add this bot to a group\n"
"2. In the group, start a new game with /new or join an already running game "
"with /join\n"
"3. After at least two players have joined, start the game with /start\n"
"4. Type <code>@unobot</code> into your chat box and hit <b>space</b>, "
"or click the <code>via @unobot</code> text next to messages. You will "
"see your cards (some greyed out), any extra options like drawing, and a <b>?"
"</b> to see the current game state. The <b>greyed out cards</b> are those "
"you <b>can not play</b> at the moment. Tap an option to execute the selected "
"action.\n"
"Players can join the game at any time. To leave a game, use /leave. If a "
"player takes more than 90 seconds to play, you can use /skip to skip that "
"player. "
"Use /notify_me to receive a private message when a new game is started.\n"
"\n"
"2. In the group, start a new game with /new or join an already"
" running game with /join\n"
"3. After at least two players have joined, start the game with"
" /start\n"
"4. Type <code>@unobot</code> into your chat box and hit "
"<b>space</b>, or click the <code>via @unobot</code> text "
"next to messages. You will see your cards (some greyed out), "
"any extra options like drawing, and a <b>?</b> to see the "
"current game state. The <b>greyed out cards</b> are those you "
"<b>can not play</b> at the moment. Tap an option to execute "
"the selected action.\n"
"Players can join the game at any time. To leave a game, "
"use /leave. If a player takes more than 90 seconds to play, "
"you can use /skip to skip that player. Use /notify_me to "
"receive a private message when a new game is started.\n\n"
"<b>Language</b> and other settings: /settings\n"
"Other commands (only game creator):\n"
"/close - Close lobby\n"
"/open - Open lobby\n"
"/kill - Terminate the game\n"
"/kick - Select a player to kick "
"by replying to him or her\n"
"/enable_translations - Translate relevant texts into all "
"languages spoken in a game\n"
"/disable_translations - Use English for those texts\n\n"
"<b>Experimental:</b> Play in multiple groups at the same time. Press the "
"<code>Current game: ...</code> button and select the group you want to play "
"a card in.\n"
"If you enjoy this bot, <a href=\"https://telegram.me/storebot?"
"start=mau_mau_bot\">rate me</a>, join the <a href=\"https://telegram.me/"
"unobotupdates\">update channel</a> and buy an UNO card game."
"<b>Experimental:</b> Play in multiple groups at the same time. "
"Press the <code>Current game: ...</code> button and select the "
"group you want to play a card in.\n"
"If you enjoy this bot, "
"<a href=\"https://telegram.me/storebot?start=mau_mau_bot\">"
"rate me</a>, join the "
"<a href=\"https://telegram.me/unobotupdates\">update channel</a>"
" and buy an UNO card game."
msgstr ""
#: bot.py:88
#: simple_commands.py:64
msgid "This bot is Free Software and licensed under the AGPL. The code is available "
"here: \n"
"https://github.com/jh0ker/mau_mau_bot"
msgstr ""
#: bot.py:133
#: simple_commands.py:67
msgid "Attributions:\n"
"Draw icon by "
"<a href='http://www.faithtoken.com/'>Faithtoken</a>\n"
"Pass icon by "
"<a href='http://delapouite.com/'>Delapouite</a>\n"
"Originals available on http://game-icons.net\n"
"Icons edited by ɳick"
msgstr ""
#: simple_commands.py:75
msgid "This UNO bot has three game modes: Classic, Sanic and Wild.\n\n"
" 🎻 The Classic mode uses the conventional UNO deck and there is no auto skip.\n"
" 🚀 The Sanic mode uses the conventional UNO deck and the bot automatically skips a player if he/she takes too long to play its turn\n"
" 🐉 The Wild mode uses a deck with more special cards, less number variety and no auto skip.\n\n"
"To change the game mode, the GAME CREATOR has to type the bot nickname and a space, just like when playing a card, and all gamemode options should appear."
msgstr ""
#: bot.py:93
msgid "Created a new game! Join the game with /join and start the game with /start"
msgstr ""
#: bot.py
#: bot.py:60
msgid "Send this command in a group to be notified when a new game is started there."
msgstr ""
#: bot.py
#: bot.py:83
msgid "A new game has been started in {title}"
msgstr ""
#: bot.py:152
#: bot.py:146
msgid "The lobby is closed"
msgstr ""
#: bot.py:156
#: bot.py:150 bot.py:232
msgid "No game is running at the moment. Create a new game with /new"
msgstr ""
#: bot.py:162
#: bot.py:123 bot.py:239
msgid "The game is not started yet. "
"Join the game with /join and start the game with /start"
msgstr ""
#: bot.py:156
msgid "You already joined the game. Start the game with /start"
msgstr ""
#: bot.py:167
#: bot.py:162
msgid "There are not enough cards left in the deck for "
"new players to join."
msgstr ""
#: bot.py:168
msgid "Joined the game"
msgstr ""
#: bot.py:179 bot.py:191
#: bot.py:181 bot.py:193
msgid "You are not playing in a game in this group."
msgstr ""
#: bot.py:197 bot.py:258 bot.py:595
#: bot.py:119 bot.py:199 bot.py:261 bot.py:340 actions.py:123
msgid "Game ended!"
msgstr ""
#: bot.py:201
#: bot.py:204 bot.py:274
msgid "Okay. Next Player: {name}"
msgstr ""
#: bot.py:219
#: bot.py:210
msgid "{name} left the game before it started."
msgstr ""
#: bot.py:253
msgid "Player {name} is not found in the current game."
msgstr ""
#: bot.py:260 bot.py:265
msgid "{0} was kicked by {1}"
msgstr ""
#: bot.py:269
msgid "Please reply to the person you want to kick and type /kick again."
msgstr ""
#: bot.py:299
msgid "Game not found."
msgstr ""
#: bot.py:223
#: bot.py:304
msgid "Back to last group"
msgstr ""
#: bot.py:227
#: bot.py:307
msgid "Please switch to the group you selected!"
msgstr ""
#: bot.py:233
#: bot.py:313
#, python-format
msgid "Selected group: {group}\n"
"<b>Make sure that you switch to the correct group!</b>"
msgstr ""
#: bot.py:260
#: bot.py:343
#, python-format
msgid "Removing {name} from the game"
msgstr ""
#: bot.py:273
#: bot.py:360
msgid "There is no game running in this chat. Create a new one with /new"
msgstr ""
#: bot.py:278
#: bot.py:365
msgid "The game has already started"
msgstr ""
#: bot.py:281
msgid "At least two players must /join the game before you can start it"
#: bot.py:369
#, python-format
msgid "At least {minplayers} players must /join the game "
"before you can start it"
msgstr ""
#: bot.py:297
#: bot.py:380
#, python-format, fuzzy
msgid "First player: {name}\n"
"Use /close to stop people from joining the game.\n"
"Enable multi-translations with /enable_translations"
msgstr ""
#: bot.py:321
#: bot.py:417
msgid "Please select the group you want to play in."
msgstr ""
#: bot.py:335 bot.py:361
#: bot.py:110 bot.py:433 bot.py:461 bot.py:488 bot.py:516
msgid "There is no running game in this chat."
msgstr ""
#: bot.py:342
#: bot.py:440
msgid "Closed the lobby. No more players can join this game."
msgstr ""
#: bot.py:348 bot.py:373
#: bot.py:129 bot.py:281 bot.py:446 bot.py:473 bot.py:501 bot.py:530
#, python-format
msgid "Only the game creator ({name}) can do that."
msgid "Only the game creator ({name}) and admin can do that."
msgstr ""
#: bot.py:349
#: bot.py:495
#, python-format
msgid "Enabled multi-translations. Disable with /disable_translations"
msgstr ""
#: bot.py:377
#: bot.py:523
#, python-format
msgid "Disabled multi-translations. Enable them again with /enable_translations"
msgstr ""
#: bot.py:368
#: bot.py:468
msgid "Opened the lobby. New players may /join the game."
msgstr ""
#: bot.py:386
#: bot.py:546
msgid "You are not playing in a game in this chat."
msgstr ""
#: bot.py:400
#: bot.py:561
#, python-format
msgid "Please wait {time} second"
msgid_plural "Please wait {time} seconds"
msgstr[0] ""
msgstr[1] ""
#: bot.py:413
#: actions.py:48
#, python-format
msgid "Waiting time to skip this player has been reduced to {time} second.\n"
"Next player: {name}"
@ -208,6 +259,20 @@ msgid_plural "Waiting time to skip this player has been reduced to {time} second
msgstr[0] ""
msgstr[1] ""
#: actions.py:64
#, python-format
msgid "{name1} ran out of time "
"and has been removed from the game!\n"
"Next player: {name2}"
msgstr ""
#: actions.py:76
#, python-format
msgid "{name} ran out of time "
"and has been removed from the game!\n"
"The game ended."
msgstr ""
#: bot.py:424
#, python-format
msgid "{name1} was skipped four times in a row and has been removed from the game.\n"
@ -220,188 +285,217 @@ msgid "{name} was skipped four times in a row and has been removed from the game
"The game ended."
msgstr ""
#: bot.py:455
#: simple_commands.py:108
msgid "All news here: https://telegram.me/unobotupdates"
msgstr ""
#: bot.py:513
#: bot.py:637
#, python-format
msgid "Current game: {group}"
msgstr ""
#: bot.py:545
#: bot.py:672
#, python-format
msgid "Gamemode changed to {mode}"
msgstr ""
#: bot.py:678
#, python-format
msgid "Cheat attempt by {name}"
msgstr ""
#: bot.py:562
#: bot.py:697
msgid "Next player: {name}"
msgstr ""
#: bot.py:572
#: bot.py:709
#, python-format
msgid "Waiting time for {name} has been reset to 90 seconds"
msgstr ""
#: bot.py:585
#: actions.py:101
msgid "Please choose a color"
msgstr ""
#: bot.py:591
#: actions.py:104
#, python-format
msgid "{name} won!"
msgstr ""
#: bot.py:613 bot.py:635 bot.py:647
#: bot.py:613 bot.py:635 bot.py:647 actions.py:141 actions.py:165 actions.py:179
msgid "There are no more cards in the deck."
msgstr ""
#: bot.py:627
#: actions.py:157
#, python-format
msgid "Bluff called! Giving 4 cards to {name}"
msgstr ""
#: bot.py:639
#: actions.py:171
#, python-format
msgid "{name1} didn't bluff! Giving 6 cards to {name2}"
msgstr ""
#: results.py:38
#: results.py:39
msgid "Choose Color"
msgstr ""
#: results.py:56
msgid "Last card (tap for game state):"
#: results.py:53
msgid "Card (tap for game state):"
msgid_plural "Cards (tap for game state):"
msgstr[0] ""
msgstr[1] ""
#: results.py:60 results.py:123 results.py:165
#: results.py:203
msgid "Current player: {name}"
msgstr ""
#: results.py:61 results.py:124 results.py:167
#: results.py:206
msgid "Last card: {card}"
msgstr ""
#: results.py:62 results.py:125 results.py:168
#: results.py:208
msgid "Player: {player_list}"
msgid_plural "Players: {player_list}"
msgstr[0] ""
msgstr[1] ""
#: results.py:72
#: results.py:64
#, python-format
msgid "{name} ({number} card)"
msgid_plural "{name} ({number} cards)"
msgstr[0] ""
msgstr[1] ""
#: results.py:81
#: results.py:76
msgid "You are not playing"
msgstr ""
#: results.py:83
#: results.py:78
msgid "Not playing right now. Use /new to start a game or /join to join the current "
"game in this group"
msgstr ""
#: results.py:95
#: results.py:90
msgid "The game wasn't started yet"
msgstr ""
#: results.py:97
#: results.py:92
msgid "Start the game with /start"
msgstr ""
#: results.py:108
#: results.py:102
msgid "🎻 Classic mode"
msgstr ""
#: results.py:94
msgid "Classic 🎻"
msgstr ""
#: results.py:114
msgid "🚀 Sanic mode"
msgstr ""
#: results.py:116
msgid "Gotta go fast! 🚀"
msgstr ""
#: results.py:126
msgid "🐉 Wild mode"
msgstr ""
#: results.py:128
msgid "Into the Wild~ 🐉"
msgstr ""
#: results.py:141
#, python-format
msgid "Drawing {number} card"
msgid_plural "Drawing {number} cards"
msgstr[0] ""
msgstr[1] ""
#: results.py:136
#: results.py:167
msgid "Pass"
msgstr ""
#: results.py:148
#: results.py:180
msgid "I'm calling your bluff!"
msgstr ""
#: settings.py:39
#: settings.py:37
msgid "Please edit your settings in a private chat with the bot."
msgstr ""
#: settings.py:49
#: settings.py:47
msgid "Enable statistics"
msgstr ""
#: settings.py:51
#: settings.py:49
msgid "Delete all statistics"
msgstr ""
#: settings.py:53
#: settings.py:51
msgid "Language"
msgstr ""
#: settings.py:54
#: settings.py:52
msgid "Settings"
msgstr ""
#: settings.py:68
#: settings.py:66
msgid "Enabled statistics!"
msgstr ""
#: settings.py:70
#: settings.py:72
msgid "Select locale"
msgstr ""
#: settings.py:81
#: settings.py:82
msgid "Deleted and disabled statistics!"
msgstr ""
#: settings.py:94
#: settings.py:95
msgid "Set locale!"
msgstr ""
#: simple_commands.py
#: simple_commands.py:118
msgid "You did not enable statistics. Use /settings in "
"a private chat with the bot to enable them."
msgstr ""
#: simple_commands.py
#: simple_commands.py:125
msgid "{number} game played"
msgid_plural "{number} games played"
msgstr[0] ""
msgstr[1] ""
#: simple_commands.py
#: simple_commands.py:131
msgid "{number} first place"
msgid_plural "{number} first places"
msgstr[0] ""
msgstr[1] ""
#: simple_commands.py
#: simple_commands.py:139
msgid "{number} card played"
msgid_plural "{number} cards played"
msgstr[0] ""
msgstr[1] ""
#: utils.py
#: utils.py:67
msgid "{emoji} Green"
msgstr ""
#: utils.py
#: utils.py:70
msgid "{emoji} Red"
msgstr ""
#: utils.py
#: utils.py:73
msgid "{emoji} Blue"
msgstr ""
#: utils.py
#: utils.py:76
msgid "{emoji} Yellow"
msgstr ""

View file

@ -101,7 +101,7 @@ def add_mode_classic(results):
"mode_classic",
title=_("🎻 Classic mode"),
input_message_content=
InputTextMessageContent(_('Classic 🎻'))
InputTextMessageContent(_("Classic 🎻"))
)
)
@ -113,7 +113,7 @@ def add_mode_fast(results):
"mode_fast",
title=_("🚀 Sanic mode"),
input_message_content=
InputTextMessageContent(_('Gotta go fast! 🚀'))
InputTextMessageContent(_("Gotta go fast! 🚀"))
)
)
@ -125,7 +125,7 @@ def add_mode_wild(results):
"mode_wild",
title=_("🐉 Wild mode"),
input_message_content=
InputTextMessageContent(_('Into the Wild~ 🐉'))
InputTextMessageContent(_("Into the Wild~ 🐉"))
)
)

View file

@ -65,10 +65,10 @@ source_text = ("This bot is Free Software and licensed under the AGPL. "
"The code is available here: \n"
"https://github.com/jh0ker/mau_mau_bot")
attributions = ("Attributions:\n"
'Draw icon by '
'<a href="http://www.faithtoken.com/">Faithtoken</a>\n'
'Pass icon by '
'<a href="http://delapouite.com/">Delapouite</a>\n'
"Draw icon by "
"<a href='http://www.faithtoken.com/'>Faithtoken</a>\n"
"Pass icon by "
"<a href='http://delapouite.com/'>Delapouite</a>\n"
"Originals available on http://game-icons.net\n"
"Icons edited by ɳick")