diff --git a/locales/ca_CA/LC_MESSAGES/unobot.po b/locales/ca_CA/LC_MESSAGES/unobot.po index 55c7cc0..c21b23f 100644 --- a/locales/ca_CA/LC_MESSAGES/unobot.po +++ b/locales/ca_CA/LC_MESSAGES/unobot.po @@ -430,10 +430,10 @@ msgstr[0] "{number} partida jugada." msgstr[1] "{number} partides jugades." #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} primer lloc." -msgstr[1] "{number} primers llocs." +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} primer lloc ({percent}%)." +msgstr[1] "{number} primers llocs ({percent}%)." #: simple_commands.py msgid "{number} card played" diff --git a/locales/de_DE/LC_MESSAGES/unobot.po b/locales/de_DE/LC_MESSAGES/unobot.po index 84964f7..ba7a5fe 100644 --- a/locales/de_DE/LC_MESSAGES/unobot.po +++ b/locales/de_DE/LC_MESSAGES/unobot.po @@ -441,10 +441,10 @@ msgstr[0] "{number} gespieltes Spiel" msgstr[1] "{number} gespielte Spiele" #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} mal 1. Platz" -msgstr[1] "{number} mal 1. Platz" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} mal 1. Platz ({percent}%)" +msgstr[1] "{number} mal 1. Platz ({percent}%)" #: simple_commands.py msgid "{number} card played" diff --git a/locales/es_ES/LC_MESSAGES/unobot.po b/locales/es_ES/LC_MESSAGES/unobot.po index e5573fa..5f23197 100644 --- a/locales/es_ES/LC_MESSAGES/unobot.po +++ b/locales/es_ES/LC_MESSAGES/unobot.po @@ -432,10 +432,10 @@ msgstr[0] "{number} partida jugada." msgstr[1] "{number} partidas jugadas." #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} primer lugar." -msgstr[1] "{number} primeros lugares." +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} primer lugar ({percent}%)." +msgstr[1] "{number} primeros lugares ({percent}%)." #: simple_commands.py msgid "{number} card played" diff --git a/locales/id_ID/LC_MESSAGES/unobot.po b/locales/id_ID/LC_MESSAGES/unobot.po index 0cb389f..b23a448 100644 --- a/locales/id_ID/LC_MESSAGES/unobot.po +++ b/locales/id_ID/LC_MESSAGES/unobot.po @@ -430,8 +430,8 @@ msgid "{number} games played" msgstr "{number} permainan dimainkan" #: simple_commands.py -msgid "{number} first places" -msgstr "{number} diletakkan pertama" +msgid "{number} first places ({percent}%)" +msgstr "{number} diletakkan pertama ({percent}%)" #: simple_commands.py msgid "{number} cards played" diff --git a/locales/it_IT/LC_MESSAGES/unobot.po b/locales/it_IT/LC_MESSAGES/unobot.po index 3c9ff87..8b40926 100644 --- a/locales/it_IT/LC_MESSAGES/unobot.po +++ b/locales/it_IT/LC_MESSAGES/unobot.po @@ -434,10 +434,10 @@ msgstr[0] "{number} partite giocate" msgstr[1] "{number} partite giocate" #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} vittorie" -msgstr[1] "{number} vittorie" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} vittorie ({percent}%)" +msgstr[1] "{number} vittorie ({percent}%)" #: simple_commands.py msgid "{number} card played" diff --git a/locales/ml_IN/LC_MESSAGES/unobot.po b/locales/ml_IN/LC_MESSAGES/unobot.po index 9ec6999..4fcf744 100644 --- a/locales/ml_IN/LC_MESSAGES/unobot.po +++ b/locales/ml_IN/LC_MESSAGES/unobot.po @@ -436,10 +436,10 @@ msgstr[0] "{number} ഗെയിം കളിച്ചു. " msgstr[1] "{number} ഗെയിം കളിച്ചു " #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} ഒന്നാം സ്ഥാനം." -msgstr[1] "{number} ഒന്നാം സ്ഥാനങ്ങൾ ." +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} ഒന്നാം സ്ഥാനം ({percent}%)." +msgstr[1] "{number} ഒന്നാം സ്ഥാനങ്ങൾ ({percent}%)." #: simple_commands.py msgid "{number} card played" diff --git a/locales/pt_BR/LC_MESSAGES/unobot.po b/locales/pt_BR/LC_MESSAGES/unobot.po index dfaa6a7..4b0fa59 100644 --- a/locales/pt_BR/LC_MESSAGES/unobot.po +++ b/locales/pt_BR/LC_MESSAGES/unobot.po @@ -426,10 +426,10 @@ msgstr[0] "{number} partida jogada" msgstr[1] "{number} partidas jogadas" #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} vez em primeiro lugar" -msgstr[1] "{number} vezes em primeiro lugar" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} vez em primeiro lugar ({percent}%)" +msgstr[1] "{number} vezes em primeiro lugar ({percent}%)" #: simple_commands.py msgid "{number} card played" diff --git a/locales/ru_RU/LC_MESSAGES/unobot.po b/locales/ru_RU/LC_MESSAGES/unobot.po index 610d836..9890aff 100644 --- a/locales/ru_RU/LC_MESSAGES/unobot.po +++ b/locales/ru_RU/LC_MESSAGES/unobot.po @@ -436,10 +436,10 @@ msgstr[0] "{number} игры сыграно" msgstr[1] "{number} игр сыграно" #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} первое место" -msgstr[1] "{number} первых мест" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} первое место ({percent}%)" +msgstr[1] "{number} первых мест ({percent}%)" #: simple_commands.py msgid "{number} card played" diff --git a/locales/tr_TR/LC_MESSAGES/unobot.po b/locales/tr_TR/LC_MESSAGES/unobot.po index 545bff0..cf0f4c8 100644 --- a/locales/tr_TR/LC_MESSAGES/unobot.po +++ b/locales/tr_TR/LC_MESSAGES/unobot.po @@ -515,10 +515,10 @@ msgstr[1] "{number} Oyun oynandı" #: simple_commands.py:129 #, python-brace-format -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "{number} Defa birincilik" -msgstr[1] "{number} Defa birincilik" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "{number} Defa birincilik ({percent}%)" +msgstr[1] "{number} Defa birincilik ({percent}%)" #: simple_commands.py:136 #, python-brace-format diff --git a/locales/unobot.pot b/locales/unobot.pot index 92e3bd6..6abe301 100644 --- a/locales/unobot.pot +++ b/locales/unobot.pot @@ -464,8 +464,8 @@ msgstr[1] "" #: simple_commands.py:129 #, python-brace-format -msgid "{number} first place" -msgid_plural "{number} first places" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" msgstr[0] "" msgstr[1] "" diff --git a/locales/zh_CN/LC_MESSAGES/unobot.po b/locales/zh_CN/LC_MESSAGES/unobot.po index b10cf0d..705625b 100644 --- a/locales/zh_CN/LC_MESSAGES/unobot.po +++ b/locales/zh_CN/LC_MESSAGES/unobot.po @@ -521,9 +521,9 @@ msgstr[0] "玩了 {number} 盘" #: simple_commands.py:129 #, python-brace-format -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "赢了 {number} 盘" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "赢了 {number} 盘 ({percent}%)" #: simple_commands.py:136 #, python-brace-format diff --git a/locales/zh_HK/LC_MESSAGES/unobot.po b/locales/zh_HK/LC_MESSAGES/unobot.po index f312ef2..5943ed4 100644 --- a/locales/zh_HK/LC_MESSAGES/unobot.po +++ b/locales/zh_HK/LC_MESSAGES/unobot.po @@ -402,9 +402,9 @@ msgid_plural "{number} games played" msgstr[0] "玩咗{number}盤" #: simple_commands.py -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "贏咗{number}次" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "贏咗{number}次 ({percent}%)" #: simple_commands.py msgid "{number} card played" diff --git a/locales/zh_TW/LC_MESSAGES/unobot.po b/locales/zh_TW/LC_MESSAGES/unobot.po index 961e9ce..8da340c 100644 --- a/locales/zh_TW/LC_MESSAGES/unobot.po +++ b/locales/zh_TW/LC_MESSAGES/unobot.po @@ -528,9 +528,9 @@ msgstr[0] "已遊玩 {number} 場遊戲" #: simple_commands.py:129 #, python-brace-format -msgid "{number} first place" -msgid_plural "{number} first places" -msgstr[0] "拿了 {number} 次第一名" +msgid "{number} first place ({percent}%)" +msgid_plural "{number} first places ({percent}%)" +msgstr[0] "拿了 {number} 次第一名 ({percent}%)" #: simple_commands.py:136 #, python-brace-format diff --git a/simple_commands.py b/simple_commands.py index ca46d60..7569584 100644 --- a/simple_commands.py +++ b/simple_commands.py @@ -126,10 +126,11 @@ def stats(bot, update): ) n = us.first_places + m = round((us.games_played / us.first_places) * 100) if us.first_places else 0 stats_text.append( - _("{number} first place", - "{number} first places", - n).format(number=n) + _("{number} first place ({percent}%)", + "{number} first places ({percent}%)", + n).format(number=n, percent=m) ) n = us.cards_played