Skip to content

Commit

Permalink
i18n: Update po file and add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mhthies committed May 12, 2020
1 parent 018f18a commit 070d02a
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 89 deletions.
6 changes: 3 additions & 3 deletions qaqa_bot/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ def join_game(self, session: Session, chat_id: int, user_id: int) -> List[Transl
.one_or_none()
if game is None:
return self._get_translations(
[Message(chat_id, GetText("There is currently no pending game in this group. 🙃 Use /{command} to start "
"one.").format(command=COMMAND_NEW_GAME))],
[Message(chat_id, GetText("There is currently no pending game in this group. 🙃 Use /{command} to "
"create one.").format(command=COMMAND_NEW_GAME))],
session)
user = session.query(model.User).filter(model.User.api_id == user_id).one_or_none()
if user is None:
Expand Down Expand Up @@ -607,7 +607,7 @@ def edit_submitted_message(self, session: Session, chat_id: int, message_id: int
return []

if entry.sheet.game.finished is not None:
return self._get_translations([Message(chat_id, GetText("Changing message “{old_text}” is not accepted,"
return self._get_translations([Message(chat_id, GetText("Changing message “{old_text}” is not accepted, "
"because the relevant game is already finished.")
.format(old_text=truncate_string(entry.text)))], session)

Expand Down
Loading

0 comments on commit 070d02a

Please sign in to comment.