From 13e0d2e4d1c0da055644d87f1b8a9465b2ef6dfa Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Mon, 20 Jun 2016 20:43:26 +0200 Subject: [PATCH] Make Actions string translatable Remove hardcoded strings 'Actions ' and substitute them by strings from translatable strings. Reviewed-By: Martin Basti Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/facet.js | 2 +- install/ui/src/freeipa/facets/HeaderMixin.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js index cc51a1531..4553c5c65 100644 --- a/install/ui/src/freeipa/facet.js +++ b/install/ui/src/freeipa/facet.js @@ -1112,7 +1112,7 @@ exp.facet = IPA.facet = function(spec, no_init) { name: 'facet_actions', 'class': 'dropdown facet-actions', right_aligned: true, - toggle_text: 'Actions ', + toggle_text: text.get('@i18n:actions.title') + ' ', toggle_class: 'btn btn-default', toggle_icon: 'fa fa-angle-down' }); diff --git a/install/ui/src/freeipa/facets/HeaderMixin.js b/install/ui/src/freeipa/facets/HeaderMixin.js index 012731291..d5dbe924a 100644 --- a/install/ui/src/freeipa/facets/HeaderMixin.js +++ b/install/ui/src/freeipa/facets/HeaderMixin.js @@ -9,10 +9,11 @@ define(['dojo/_base/declare', 'dojo/dom-class', '../builder', '../facet', + '../text', '../widgets/ActionDropdownWidget' ], function(declare, lang, on, construct, dom_class, - builder, mod_facet, ActionDropdownWidget) { + builder, mod_facet, text, ActionDropdownWidget) { /** @@ -247,7 +248,7 @@ var HeaderMixin = declare([], { name: 'facet_actions', 'class': 'dropdown facet-actions', right_aligned: true, - toggle_text: 'Actions ', + toggle_text: text.get('@i18n:actions.title') + ' ', toggle_class: 'btn btn-default', toggle_icon: 'fa fa-angle-down' });