Merge pull request #19313 from nextcloud/rakekniven-patch-1

l10n: Added plural form to string
This commit is contained in:
Christoph Wurst 2020-02-24 14:41:38 +01:00 committed by GitHub
commit b6a9cf21a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -25,7 +25,7 @@
<div id="apps-list" class="apps-list" :class="{installed: (useBundleView || useListView), store: useAppStoreView}">
<template v-if="useListView">
<div v-if="showUpdateAll" class="counter">
{{ t('settings', '{counter} apps have an update available', {counter}) }}
{{ n('settings', '%n app has an update available', '%n apps have an update available', counter) }}
<button v-if="showUpdateAll"
id="app-list-update-all"
class="primary"

View file

@ -44,6 +44,7 @@ __webpack_public_path__ = OC.linkTo('settings', 'js/')
// bind to window
Vue.prototype.t = t
Vue.prototype.n = n
Vue.prototype.OC = OC
Vue.prototype.OCA = OCA
// eslint-disable-next-line camelcase