From 38c9a94a9cd37a9271fbcf10f0765f5460e36ee4 Mon Sep 17 00:00:00 2001 From: McMatts Date: Fri, 4 Mar 2022 13:28:36 -0500 Subject: [PATCH] i18n strings --- gui/app/pods/profile/template.hbs | 10 ++++------ gui/app/pods/search/route.js | 4 +++- gui/app/pods/search/template.hbs | 16 ++++++++-------- gui/app/pods/setup/route.js | 7 +++++-- gui/app/pods/updates/route.js | 5 ++++- gui/app/pods/updates/template.hbs | 17 +++++++---------- gui/public/i18n/en-US.json | 14 ++++++++++++++ 7 files changed, 45 insertions(+), 28 deletions(-) diff --git a/gui/app/pods/profile/template.hbs b/gui/app/pods/profile/template.hbs index bec7fbd5..e2afc06a 100644 --- a/gui/app/pods/profile/template.hbs +++ b/gui/app/pods/profile/template.hbs @@ -5,12 +5,10 @@ @@ -18,7 +16,7 @@ {{layout/logo-heading title=session.user.fullname - desc="Manage your profile and password" + desc=(localize 'profile_explain') icon=constants.Icon.Person}} {{user/user-profile model=model save=(action "save")}} diff --git a/gui/app/pods/search/route.js b/gui/app/pods/search/route.js index 9b1fb580..85fb76a7 100644 --- a/gui/app/pods/search/route.js +++ b/gui/app/pods/search/route.js @@ -11,8 +11,10 @@ import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; import Route from '@ember/routing/route'; +import { inject as service } from '@ember/service'; export default Route.extend(AuthenticatedRouteMixin, { + i18n: service(), matchFilter: null, beforeModel(transition) { @@ -35,6 +37,6 @@ export default Route.extend(AuthenticatedRouteMixin, { }, activate() { - this.get('browser').setTitle('Search'); + this.get('browser').setTitle(this.i18n.localize('search')); } }); diff --git a/gui/app/pods/search/template.hbs b/gui/app/pods/search/template.hbs index bfe95089..61ce4c82 100644 --- a/gui/app/pods/search/template.hbs +++ b/gui/app/pods/search/template.hbs @@ -5,29 +5,29 @@