diff options
author | Greta <gretadoci@gmail.com> | 2020-03-09 12:11:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 12:11:05 +0100 |
commit | b311da17dd2afd62407066a6b304705c6a91cc66 (patch) | |
tree | 3c31a815004aa63b5d287c52a1a006d366c71c1d | |
parent | 2b3009bad5b82a5194cca163acad2cec16106e1f (diff) | |
parent | f7913f0b3b3b1414c59f40da50a7f0c07d44d10c (diff) |
Merge pull request #1504 from nextcloud/bugfix/noid/plurals
Correctly use plurals and placeholders
-rw-r--r-- | src/components/ImportScreen.vue | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/components/ImportScreen.vue b/src/components/ImportScreen.vue index e6e665bc..ee58b23b 100644 --- a/src/components/ImportScreen.vue +++ b/src/components/ImportScreen.vue @@ -24,10 +24,10 @@ <div class="emptycontent import-screen"> <p class="icon-upload" /> <h3 v-if="stage === 'done'" class="import-screen__header"> - {{ t('contacts', 'Done importing {total} contacts into', { total }) }} {{ addressbook }} + {{ importedHeader }} </h3> <h3 v-else class="import-screen__header"> - {{ t('contacts', 'Importing {total} contacts into', { total }) }} {{ addressbook }} + {{ importingHeader }} </h3> <progress :max="total" :value="progress" class="import-screen__progress" /> <p class="import-screen__tracker"> @@ -77,6 +77,28 @@ export default { ? 0 : Math.floor(this.progress / this.total * 100) }, + + importingHeader() { + return n('contacts', + 'Importing %n contact into {addressbook}', + 'Importing %n contacts into {addressbook}', + this.total, + { + addressbook: this.addressbook, + } + ) + }, + + importedHeader() { + return n('contacts', + 'Done importing %n contact into {addressbook}', + 'Done importing %n contacts into {addressbook}', + this.total, + { + addressbook: this.addressbook, + } + ) + }, }, } </script> |