From a5eefdc1d081a564033c51553037cef8e8aa0fef Mon Sep 17 00:00:00 2001 From: TiagoDanin Date: Sat, 2 Jul 2016 14:34:06 -0500 Subject: [PATCH] Update and Fix Translation --- bot.py | 4 ++-- credentials.py | 2 +- locales/pt_BR/LC_MESSAGES/unobot.po | 15 +++++++++++++-- locales/unobot.pot | 8 ++++++-- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/bot.py b/bot.py index e27d733..0cc3219 100644 --- a/bot.py +++ b/bot.py @@ -82,8 +82,8 @@ def new_game(bot, update): for user in gm.remind_dict[update.message.chat_id]: send_async(bot, user, - text="A new game has been started in " + - update.message.chat.title) + text=_("A new game has been started in {title}").format( + title=update.message.chat.title)) del gm.remind_dict[update.message.chat_id] diff --git a/credentials.py b/credentials.py index 3b4386d..1cb5d21 100644 --- a/credentials.py +++ b/credentials.py @@ -17,5 +17,5 @@ # along with this program. If not, see . -TOKEN = 'TOKEN' +TOKEN = '' BOTAN_TOKEN = '' # Optional: Add a botan.io token if you want bot statistics diff --git a/locales/pt_BR/LC_MESSAGES/unobot.po b/locales/pt_BR/LC_MESSAGES/unobot.po index 6a83eea..295ff22 100644 --- a/locales/pt_BR/LC_MESSAGES/unobot.po +++ b/locales/pt_BR/LC_MESSAGES/unobot.po @@ -44,7 +44,8 @@ msgid "" "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.\n" +"player." +"Use /notify_me to receive a private message when a new game is started.\n" "\n" "Language and other settings: /settings\n" "Other commands (only game creator):\n" @@ -73,7 +74,9 @@ msgstr "" "Toque em uma das opções para executar a ação desejada.\n" "Jogadores podem entrar no jogo a qualquer momento. Para sair do jogo, use /" "leave. Se um jogador levar mais de 90 segundos para jogar, você pode usar /" -"skip para pular a vez desse jogador.\n" +"skip para pular a vez desse jogador." +"Use o /notify_me para receber uma mensagem no privada quando um novo jogo no " +"grupo for iniciado.\n" "\n" "Idioma e outras configurações: /settings\n" "Outros comandos (somente para o criador do jogo):\n" @@ -105,10 +108,18 @@ msgid "" "Created a new game! Join the game with /join and start the game with /start" msgstr "Novo jogo criado! Entre no jogo com /join e inicie o jogo com /start" +#: bot.py +msgid "Send this command in a group to be notified when a new game is started there." +msgstr "Envie este comando em um grupo para ser notificado quando um novo jogo for iniciado." + #: bot.py:152 msgid "The lobby is closed" msgstr "O lobby está fechado" +#: bot.py +msgid "A new game has been started in {title}" +msgstr "Um novo jogo foi iniciado no grupo: {title}" + #: bot.py:156 msgid "No game is running at the moment. Create a new game with /new" msgstr "Nenhuma partida sendo jogada. Crie um novo jogo com /new" diff --git a/locales/unobot.pot b/locales/unobot.pot index b65293e..cc5bbfb 100644 --- a/locales/unobot.pot +++ b/locales/unobot.pot @@ -48,7 +48,8 @@ msgid "Follow these steps:\n" "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.\n" +"player." +"Use /notify_me to receive a private message when a new game is started.\n" "\n" "Language and other settings: /settings\n" "Other commands (only game creator):\n" @@ -79,6 +80,10 @@ msgstr "" msgid "Send this command in a group to be notified when a new game is started there." msgstr "" +#: bot.py +msgid "A new game has been started in {title}" +msgstr + #: bot.py:152 msgid "The lobby is closed" msgstr "" @@ -400,4 +405,3 @@ msgstr "" #: utils.py msgid "{emoji} Yellow" msgstr "" -