Make Actions string translatable

Remove hardcoded strings 'Actions ' and substitute them by strings from
translatable strings.

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Pavel Vomacka 2016-06-20 20:43:26 +02:00 committed by Martin Basti
parent 702ab0008b
commit 13e0d2e4d1
2 changed files with 4 additions and 3 deletions

View File

@ -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'
});

View File

@ -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'
});