diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 13:39:20 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:21 +0200 |
commit | 12f5f4cfdd38c2a29c8e6eeac17557f4e7731307 (patch) | |
tree | b9b9239bdb839d1df30230499f8d1cb64a405f0c /install/ui/src/freeipa/dialog.js | |
parent | f492e61f46abb0899d26d03f1599dd9f0f01a6f3 (diff) | |
download | freeipa-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/dialog.js')
-rw-r--r-- | install/ui/src/freeipa/dialog.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js index 103f3b92f..bf9e12a7a 100644 --- a/install/ui/src/freeipa/dialog.js +++ b/install/ui/src/freeipa/dialog.js @@ -641,10 +641,10 @@ IPA.deleter_dialog = function (spec) { spec = spec || {}; - spec.title = spec.title || IPA.messages.buttons.remove; + spec.title = spec.title || '@i18n:buttons.remove'; spec.name = spec.name || 'deleter_dialog'; - spec.message = spec.message || IPA.messages.search.delete_confirm; - spec.ok_label = spec.ok_label || IPA.messages.buttons.remove; + spec.message = spec.message || '@i18n:search.delete_confirm'; + spec.ok_label = spec.ok_label || '@i18n:buttons.remove'; var that = IPA.confirm_dialog(spec); that.values = spec.values || []; @@ -726,16 +726,16 @@ IPA.confirm_dialog = function(spec) { spec = spec || {}; spec.name = spec.name || 'confirm_dialog'; - spec.title = spec.title || IPA.messages.dialogs.confirmation; + spec.title = spec.title || '@i18n:dialogs.confirmation'; var that = IPA.dialog(spec); IPA.confirm_mixin().apply(that); - that.message = spec.message || ''; + that.message = text.get(spec.message); that.on_ok = spec.on_ok; that.on_cancel = spec.on_cancel; - that.ok_label = spec.ok_label || IPA.messages.buttons.ok; - that.cancel_label = spec.cancel_label || IPA.messages.buttons.cancel; + that.ok_label = text.get(spec.ok_label || '@i18n:buttons.ok'); + that.cancel_label = text.get(spec.cancel_label || '@i18n:buttons.cancel'); that.confirmed = false; that.confirm_on_enter = spec.confirm_on_enter !== undefined ? spec.confirm_on_enter : true; |