summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/search.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/search.js
parentf492e61f46abb0899d26d03f1599dd9f0f01a6f3 (diff)
downloadfreeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.gz
freeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.xz
freeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.zip
Replace IPA.messages with @i18n definition in spec objects
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/search.js')
-rw-r--r--install/ui/src/freeipa/search.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js
index 5fbb8409c..0ea5c2b1e 100644
--- a/install/ui/src/freeipa/search.js
+++ b/install/ui/src/freeipa/search.js
@@ -385,7 +385,7 @@ IPA.batch_remove_action = function(spec) {
spec = spec || {};
spec.name = spec.name || 'remove';
- spec.label = spec.label || IPA.messages.buttons.remove;
+ spec.label = spec.label || '@i18n:buttons.remove';
spec.enable_cond = spec.enable_cond || ['item-selected'];
spec.hide_cond = spec.hide_cond || ['self-service'];
@@ -402,7 +402,7 @@ IPA.add_action = function(spec) {
spec = spec || {};
spec.name = spec.name || 'add';
- spec.label = spec.label || IPA.messages.buttons.add;
+ spec.label = spec.label || '@i18n:buttons.add';
spec.hide_cond = spec.hide_cond || ['self-service'];
var that = IPA.action(spec);
@@ -482,8 +482,8 @@ IPA.batch_disable_action = function(spec) {
spec.method = spec.method || 'disable';
spec.needs_confirm = spec.needs_confirm === undefined ? true : spec.needs_confirm;
spec.enable_cond = spec.enable_cond || ['item-selected'];
- spec.success_msg = spec.success_msg || IPA.messages.search.disabled;
- spec.confirm_msg = spec.confirm_msg || IPA.messages.search.disable_confirm;
+ spec.success_msg = spec.success_msg || '@i18n:search.disabled';
+ spec.confirm_msg = spec.confirm_msg || '@i18n:search.disable_confirm';
return IPA.batch_items_action(spec);
};
@@ -496,8 +496,8 @@ IPA.batch_enable_action = function(spec) {
spec.method = spec.method || 'enable';
spec.needs_confirm = spec.needs_confirm === undefined ? true : spec.needs_confirm;
spec.enable_cond = spec.enable_cond || ['item-selected'];
- spec.success_msg = spec.success_msg || IPA.messages.search.enabled;
- spec.confirm_msg = spec.confirm_msg || IPA.messages.search.enable_confirm;
+ spec.success_msg = spec.success_msg || '@i18n:search.enabled';
+ spec.confirm_msg = spec.confirm_msg || '@i18n:search.enable_confirm';
return IPA.batch_items_action(spec);
};