diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-04 23:20:36 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-04 23:20:36 +0100 |
commit | 4ae7b5d52154bfe369144b183a40fb650e0bd589 (patch) | |
tree | fc9c1a0b5a49a7bd9833a38c37872754526f9465 | |
parent | c587e801d6354136f71f8a76229aa8cd5b55b0e4 (diff) |
Better translation string
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | src/components/ImportScreen.vue | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/components/ImportScreen.vue b/src/components/ImportScreen.vue index c18f7d68..711e6836 100644 --- a/src/components/ImportScreen.vue +++ b/src/components/ImportScreen.vue @@ -29,8 +29,16 @@ <progress :max="total" :value="progress" class="import-screen__progress" /> <p class="import-screen__tracker"> <span>{{ percentage }} %</span> - <span v-tooltip.auto="t('contacts', 'Open your browser console for more details')"> - {{ t('contacts', '{failedCount} failed', { failedCount }) }} + <span v-if="failed === 0"> + {{ t('contacts', 'No errors') }} + </span> + <span v-else v-tooltip.auto="t('contacts', 'Open your browser console for more details')"> + {{ n('contacts', + '{failedCount} faulty contact', + '{failedCount} faulty contacts', + failed, + { failedCount: failed } + ) }} </span> </p> </div> @@ -52,11 +60,11 @@ export default { accepted() { return this.importState.accepted }, - failedCount() { + failed() { return this.importState.denied }, progress() { - return this.accepted + this.failedCount + return this.accepted + this.failed }, percentage() { return this.total <= 0 |