summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/widget.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-04 13:39:20 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:21 +0200
commit12f5f4cfdd38c2a29c8e6eeac17557f4e7731307 (patch)
treeb9b9239bdb839d1df30230499f8d1cb64a405f0c /install/ui/src/freeipa/widget.js
parentf492e61f46abb0899d26d03f1599dd9f0f01a6f3 (diff)
downloadfreeipa.git-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.gz
freeipa.git-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.xz
freeipa.git-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.zip
Replace IPA.messages with @i18n definition in spec objects
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r--install/ui/src/freeipa/widget.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index 1ac801d9..bc16acc9 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -1270,8 +1270,8 @@ IPA.boolean_formatter = function(spec) {
var that = IPA.formatter(spec);
- that.true_value = text.get(spec.true_value || IPA.messages['true']);
- that.false_value = text.get(spec.false_value || IPA.messages['false']);
+ that.true_value = text.get(spec.true_value || '@i18n:true');
+ that.false_value = text.get(spec.false_value || '@i18n:false');
that.show_false = spec.show_false;
that.invert_value = spec.invert_value;
@@ -1330,8 +1330,8 @@ IPA.boolean_status_formatter = function(spec) {
spec = spec || {};
- spec.true_value = spec.true_value || IPA.messages.status.enabled;
- spec.false_value = spec.false_value || IPA.messages.status.disabled;
+ spec.true_value = spec.true_value || '@i18n:status.enabled';
+ spec.false_value = spec.false_value || '@i18n:status.disabled';
var that = IPA.boolean_formatter(spec);
@@ -3784,7 +3784,7 @@ IPA.sshkey_widget = function(spec) {
IPA.action_panel = function(spec) {
spec = spec || {};
- spec.label = spec.label || IPA.messages.actions.title;
+ spec.label = spec.label || '@i18n:actions.title';
var that = IPA.widget(spec);