From cc88876c69e50a85291442135c7eca74c64da3ed Mon Sep 17 00:00:00 2001 From: imlonghao Date: Wed, 25 May 2016 22:44:51 +0800 Subject: [PATCH] make zh_CN compatible with plurals --- locales/zh_CN/LC_MESSAGES/unobot.po | 47 +++++++++++++++++------------ 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/locales/zh_CN/LC_MESSAGES/unobot.po b/locales/zh_CN/LC_MESSAGES/unobot.po index 7dc2aa2..d85eef0 100644 --- a/locales/zh_CN/LC_MESSAGES/unobot.po +++ b/locales/zh_CN/LC_MESSAGES/unobot.po @@ -217,15 +217,17 @@ msgstr "您并不在游戏中" #: bot.py:400 #, python-format -msgid "Please wait {time} seconds" -msgstr "请等待 {time} 秒" +msgid "Please wait {time} second" +msgid_plural "Please wait {time} seconds" +msgstr[0] "请等待 {time} 秒" #: bot.py:413 #, python-format -msgid "" -"Waiting time to skip this player has been reduced to {time} seconds.\n" +msgid "Waiting time to skip this player has been reduced to {time} second.\n" "Next player: {name}" -msgstr "" +msgid_plural "Waiting time to skip this player has been reduced to {time} seconds.\n" +"Next player: {name}" +msgstr[0] "" "该玩家的等待时间已降至 {time} 秒。\n" "轮到: {name}" @@ -298,8 +300,9 @@ msgid "Choose Color" msgstr "选择颜色" #: results.py:56 -msgid "Cards (tap for game state):" -msgstr "手牌 (点击查看游戏状况):" +msgid "Last card (tap for game state):" +msgid_plural "Cards (tap for game state):" +msgstr[0] "手牌 (点击查看游戏状况):" #: results.py:60 results.py:123 results.py:165 msgid "Current player: {name}" @@ -310,13 +313,15 @@ msgid "Last card: {card}" msgstr "上一张牌: {card}" #: results.py:62 results.py:125 results.py:168 -msgid "Players: {player_list}" -msgstr "玩家: {player_list}" +msgid "Player: {player_list}" +msgid_plural "Players: {player_list}" +msgstr[0] "玩家: {player_list}" #: results.py:72 #, python-format -msgid "{name} ({number} cards)" -msgstr "{name} ({number} 张牌)" +msgid "{name} ({number} card)" +msgid_plural "{name} ({number} cards)" +msgstr[0] "{name} ({number} 张牌)" #: results.py:81 msgid "You are not playing" @@ -338,8 +343,9 @@ msgstr "请先通过 /start 开始游戏" #: results.py:108 #, python-format -msgid "Drawing 1 card" -msgstr "抽取 1 张牌" +msgid "Drawing {number} card" +msgid_plural "Drawing {number} cards" +msgstr[0] "抽取 1 张牌" msgid "Drawing {number} cards" msgstr "抽取 {number} 张牌" @@ -395,16 +401,19 @@ msgid "" msgstr "您并没有启用数据统计。请给我私聊发送 /settings 进行设置" #: simple_commands.py -msgid "{number} games played" -msgstr "玩了 {number} 盘" +msgid "{number} game played" +msgid_plural "{number} games played" +msgstr[0] "玩了 {number} 盘" #: simple_commands.py -msgid "{number} first places" -msgstr "赢了 {number} 盘" +msgid "{number} first place" +msgid_plural "{number} first places" +msgstr[0] "赢了 {number} 盘" #: simple_commands.py -msgid "{number} cards played" -msgstr "总共出过 {number} 张牌" +msgid "{number} card played" +msgid_plural "{number} cards played" +msgstr[0] "总共出过 {number} 张牌" #: utils.py msgid "{emoji} Green"