Merge pull request #395 from YunoHost/fix-i18n-pluralize

[fix] An i18n pluralize string
This commit is contained in:
Alexandre Aubin 2021-09-19 23:48:45 +02:00 committed by GitHub
commit ff0f5b2fe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@
<b-alert v-if="items === null || filteredItems === null" variant="warning">
<slot name="alert-message">
<icon iname="exclamation-triangle" />
{{ $t(items === null ? 'items_verbose_count' : 'search.not_found', { items: $tc('items.' + itemsName, 0) }) }}
{{ $tc(items === null ? 'items_verbose_count': 'search.not_found', 0, { items: $tc('items.' + itemsName, 0) }) }}
</slot>
</b-alert>

View file

@ -274,7 +274,7 @@
"services": "no services | service | {c} services",
"users": "no users | user | {c} users"
},
"items_verbose_count": "There are {items}.",
"items_verbose_count": "There are {items}. | There is {items}. | There are {items}.",
"items_verbose_items_left": "There are {items} left.",
"label": "Label",
"label_for_manifestname": "Label for {name}",

View file

@ -6,7 +6,7 @@
<b-alert v-if="!archives" variant="warning">
<icon iname="exclamation-triangle" />
{{ $t('items_verbose_count', { items: $tc('items.backups', 0) }) }}
{{ $tc('items_verbose_count', 0, { items: $tc('items.backups', 0) }) }}
</b-alert>
<b-list-group v-else>