fix zero plural localisation issue

fix zero case for :t/members-active key
This commit is contained in:
Chad 2018-09-14 11:26:15 +02:00 committed by Roman Volosovskyi
parent 448e84a0e9
commit 40c23cc166
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 7 additions and 5 deletions

View File

@ -62,7 +62,9 @@
(if public?
(i18n/label :t/public-group-status)
(let [cnt (inc (count contacts))]
(i18n/label-pluralize cnt :t/members-active)))]])))
(if (zero? cnt)
(i18n/label :members-active-none)
(i18n/label-pluralize cnt :t/members-active))))]])))
(defview toolbar-content-view []
(letsubs [{:keys [group-chat color online contacts

View File

@ -21,9 +21,9 @@
"currency-display-name-sos": "Somalia Shilling",
"members-active": {
"one": "1 member",
"other": "{{count}} members",
"zero": "no members"
"other": "{{count}} members"
},
"members-active-none": "no members",
"chat-name": "Chat name",
"currency-display-name-zar": "South Africa Rand",
"phew-here-is-your-passphrase": "Phew, that was hard. Here is your passphrase, *write this down and keep it safe!* You will need it to recover your account.",
@ -561,9 +561,9 @@
"transactions-unsigned": "Unsigned",
"members": {
"one": "1 member",
"other": "{{count}} members",
"zero": "no members"
"other": "{{count}} members"
},
"members-none": "no members",
"delete-mailserver-title": "Delete mailserver",
"intro-message1": "Welcome to Status!\nTap this message to set your password and get started.",
"public-chat-user-count": "{{count}} people",