diff --git a/apps/updatenotification/js-src/app.js b/apps/updatenotification/js-src/app.js index 8527942343..bf96a2ff32 100644 --- a/apps/updatenotification/js-src/app.js +++ b/apps/updatenotification/js-src/app.js @@ -25,6 +25,16 @@ define(function (require) { var Vue = require('vue'); var vSelect = require('vue-select'); Vue.component('v-select', vSelect.VueSelect); + Vue.mixin({ + methods: { + t: function(app, text, vars, count, options) { + return OC.L10N.translate(app, text, vars, count, options); + }, + n: function(app, textSingular, textPlural, count, vars, options) { + return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options); + } + } + }); this.vm = new Vue(require('./components/root.vue')); this.vm.newVersionString = data.newVersionString; diff --git a/apps/updatenotification/js-src/components/root.vue b/apps/updatenotification/js-src/components/root.vue index d6dcd37e2f..a6c78d9cdf 100644 --- a/apps/updatenotification/js-src/components/root.vue +++ b/apps/updatenotification/js-src/components/root.vue @@ -3,37 +3,37 @@
{{newVersionAvailableString}}
-
- {{l_download_now}}
+
+ {{ t('updatenotification', 'Download now') }}
- {{l_check_in_progress}}
+ {{ t('updatenotification', 'The update check is not yet finished. Please refresh the page.') }}
- {{l_up_to_date}}
+ {{ t('updatenotification', 'Your version is up to date.') }}
- {{l_non_default_updater}} {{updateServerURL}}
+ {{ t('updatenotification', 'A non-default update server is in use to be checked for updates:') }} {{updateServerURL}}
-
+
- {{l_update_channel_newer}}
- {{l_update_channel_delay}}
+ {{ t('updatenotification', 'You can always update to a newer version / experimental channel. But you can never downgrade to a more stable channel.') }}
+ {{ t('updatenotification', 'Note that after a new release it can take some time before it shows up here. We roll out new versions spread out over time to our users and sometimes skip a version when issues are found.') }}
- {{l_notify_groups}}
+ {{ t('updatenotification', 'Notify members of the following groups about available updates:') }}
- {{l_only_app_updates}}
- {{l_update_channel_daily}}
- {{l_update_channel_git}}
+ {{ t('updatenotification', 'Only notification for app updates are available.') }}
+ {{ t('updatenotification', 'The selected update channel makes dedicated notifications for the server obsolete.') }}
+ {{ t('updatenotification', 'The selected update channel does not support updates of the server.') }}