fix: Use plural string in translation

This commit is contained in:
Sorunome 2021-08-14 11:30:18 +02:00
parent 1c7f93e54e
commit 0e998c824e
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
19 changed files with 40 additions and 132 deletions

View File

@ -2283,18 +2283,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} dalších událostí", "moreEvents": "{count, plural, =1{1 další událost} other{{count} dalších událostí}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 další událost",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"goToTheNewRoom": "Přejít do nové místnost", "goToTheNewRoom": "Přejít do nové místnost",
"@goToTheNewRoom": { "@goToTheNewRoom": {
"type": "text", "type": "text",

View File

@ -2248,18 +2248,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} weitere Ereignisse", "moreEvents": "{count,plural, =1{1 weiteres Ereignis} other{{count} weitere Ereignisse}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 weiteres Ereignis",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Chat-Backup entsperren", "unlockChatBackup": "Chat-Backup entsperren",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -676,13 +676,8 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"oneMoreEvent": "1 more event", "moreEvents": "{count,plural, =1{1 more event} other{{count} more events}}",
"@oneMoreEvent": { "@moreEvents": {
"type": "text",
"placeholders": {}
},
"xMoreEvents": "{count} more events",
"@xMoreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}

View File

@ -2210,18 +2210,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} pliaj eventoj", "moreEvents": "{count,plural, =1{1 plia evento} other{{count} pliaj eventoj}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 plia evento",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"noEncryptionForPublicRooms": "Vi nur povas aktivigi ĉifradon kiam la ĉambro ne plu estas publike alirebla.", "noEncryptionForPublicRooms": "Vi nur povas aktivigi ĉifradon kiam la ĉambro ne plu estas publike alirebla.",
"@noEncryptionForPublicRooms": { "@noEncryptionForPublicRooms": {
"type": "text", "type": "text",

View File

@ -1836,18 +1836,13 @@
"supportedVersions": {} "supportedVersions": {}
} }
}, },
"xMoreEvents": "{count} más eventos", "moreEvents": "{count,plural, =1{1 evento más} other{{count} más eventos}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 evento más",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"chatBackupDescription": "Tu copia de seguridad del chat está protegida con una clave de seguridad. Por favor, asegúrate de no perderla.", "chatBackupDescription": "Tu copia de seguridad del chat está protegida con una clave de seguridad. Por favor, asegúrate de no perderla.",
"@chatBackupDescription": { "@chatBackupDescription": {
"type": "text", "type": "text",

View File

@ -2248,18 +2248,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "Veel {count} sündmust", "moreEvents": "{count,plural, =1{Veel 1 sündmus}, other{Veel {count} sündmust}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "Veel 1 sündmus",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Krüpti lahti oma vestluste varukoopia", "unlockChatBackup": "Krüpti lahti oma vestluste varukoopia",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -2248,18 +2248,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} évènements en plus", "moreEvents": "{count,plural, =1{1 évènement en plus} other{{count} évènements en plus}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 évènement en plus",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Déverrouiller la sauvegarde de la discussion", "unlockChatBackup": "Déverrouiller la sauvegarde de la discussion",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -2248,18 +2248,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} eventos máis", "moreEvents": "{count,plural, =1{Un evento máis} other{{count} eventos máis}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "Un evento máis",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Desbloquear copia do chat", "unlockChatBackup": "Desbloquear copia do chat",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -2278,18 +2278,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "Još {count} događaja", "moreEvents": "{count,plural, =1{Još jedan događaj} other{Još {count} događaja}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "Još jedan događaj",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"chats": "Chatovi", "chats": "Chatovi",
"@chats": { "@chats": {
"type": "text", "type": "text",

View File

@ -2246,18 +2246,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} altri eventi", "moreEvents": "{count,plural =1{1 altro evento} other{{count} altri eventi}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 altro evento",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Sblocca il backup della discussione", "unlockChatBackup": "Sblocca il backup della discussione",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -2125,10 +2125,12 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"oneMoreEvent": "もう1つのイベント", "moreEvents": "{count,plural, =1{もう1つのイベント} other{{count}個のイベント}}",
"@oneMoreEvent": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {
"count": {}
}
}, },
"chatBackupDescription": "チャットのバックアップは秘密鍵によって保存されます。失くさないように気をつけてください。", "chatBackupDescription": "チャットのバックアップは秘密鍵によって保存されます。失くさないように気をつけてください。",
"@chatBackupDescription": { "@chatBackupDescription": {
@ -2280,13 +2282,6 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count}個のイベント",
"@xMoreEvents": {
"type": "text",
"placeholders": {
"count": {}
}
},
"pleaseEnterSecurityKey": "セキュリティーキーを入力してください:", "pleaseEnterSecurityKey": "セキュリティーキーを入力してください:",
"@pleaseEnterSecurityKey": { "@pleaseEnterSecurityKey": {
"type": "text", "type": "text",

View File

@ -2239,18 +2239,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "Nog {count} gebeurtenissen", "moreEvents": "{count,plural, =1{Nog 1 gebeurtenis} other{Nog {count} gebeurtenissen}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "Nog 1 gebeurtenis",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Chatback-up ontgrendelen", "unlockChatBackup": "Chatback-up ontgrendelen",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -1587,18 +1587,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} więcej wydarzeń", "moreEvents": "{count,plural, =1{1 kolejne wydarzenie} other{{count} więcej wydarzeń}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 kolejne wydarzenie",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"chatBackupDescription": "Twoja kopia zapasowa Rozmów jest zabezpieczona kluczem bezpieczeństwa. Uważaj żeby go nie zgubić.", "chatBackupDescription": "Twoja kopia zapasowa Rozmów jest zabezpieczona kluczem bezpieczeństwa. Uważaj żeby go nie zgubić.",
"@chatBackupDescription": { "@chatBackupDescription": {
"type": "text", "type": "text",

View File

@ -2191,18 +2191,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "Mais {count} eventos", "moreEvents": "{count,plural, =1{Mais 1 evento} other{Mais {count} eventos}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "Mais 1 evento",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"chatBackupDescription": "O backup da sua conversa é protegido com sua chave de segurança. Por favor, evite perdê-la.", "chatBackupDescription": "O backup da sua conversa é protegido com sua chave de segurança. Por favor, evite perdê-la.",
"@chatBackupDescription": { "@chatBackupDescription": {
"type": "text", "type": "text",

View File

@ -2248,18 +2248,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "ещё {count} событий", "moreEvents": "{count,plural, =1{Еще 1 событие} other{ещё {count} событий}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "Еще 1 событие",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Разблокировать резервную копию чата", "unlockChatBackup": "Разблокировать резервную копию чата",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -2248,18 +2248,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} etkinlik daha", "moreEvents": "{count,plural, =1{1 etkinlik daha} other{{count} etkinlik daha}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 etkinlik daha",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"unlockChatBackup": "Sohbet yedeklemesinin kilidini aç", "unlockChatBackup": "Sohbet yedeklemesinin kilidini aç",
"@unlockChatBackup": { "@unlockChatBackup": {
"type": "text", "type": "text",

View File

@ -2475,18 +2475,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "{count} 个更多事件", "moreEvents": "{count,plural, =1{1 个更多事件} other{{count} 个更多事件}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "1 个更多事件",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"commandHintReact": "将回复作为响应发送", "commandHintReact": "将回复作为响应发送",
"@commandHintReact": { "@commandHintReact": {
"type": "text", "type": "text",

View File

@ -263,18 +263,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"xMoreEvents": "還有{count}個事件", "moreEvents": "{count,plural, =1{還有1個事件} other{還有{count}個事件}}",
"@xMoreEvents": { "@moreEvents": {
"type": "text", "type": "text",
"placeholders": { "placeholders": {
"count": {} "count": {}
} }
}, },
"oneMoreEvent": "還有1個事件",
"@oneMoreEvent": {
"type": "text",
"placeholders": {}
},
"hideUnknownEvents": "隱藏未知事件", "hideUnknownEvents": "隱藏未知事件",
"@hideUnknownEvents": { "@hideUnknownEvents": {
"type": "text", "type": "text",

View File

@ -50,9 +50,7 @@ class StateMessage extends StatelessWidget {
), ),
if (counter != 0) if (counter != 0)
Text( Text(
counter == 1 L10n.of(context).moreEvents(counter),
? L10n.of(context).oneMoreEvent
: L10n.of(context).xMoreEvents(counter.toString()),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),