diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 14:32:47 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:21 +0200 |
commit | 09296fc0b302d9a105aacad960c295991fa88a1d (patch) | |
tree | 54a4aef171dc65c250b8d01f0d79714d364a84df /install/ui/src/freeipa/ipa.js | |
parent | e3ea5e8d5050890a8e7f17271d04954f71dad325 (diff) | |
download | freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.tar.gz freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.tar.xz freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.zip |
Use text.get for transforming values supplied by spec
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/ipa.js')
-rw-r--r-- | install/ui/src/freeipa/ipa.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js index 9cc12475b..526504755 100644 --- a/install/ui/src/freeipa/ipa.js +++ b/install/ui/src/freeipa/ipa.js @@ -22,7 +22,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -define(['./jquery', './json2','./_base/i18n', './_base/metadata_provider'], function($, JSON, i18n, metadata_provider) { +define(['./jquery', './json2','./_base/i18n', './_base/metadata_provider', './text'], + function($, JSON, i18n, metadata_provider, text) { var IPA = function() { @@ -612,7 +613,7 @@ IPA.command = function(spec) { that.retry = typeof spec.retry == 'undefined' ? true : spec.retry; - that.error_message = spec.error_message || IPA.get_message('dialogs.batch_error_message', 'Some operations failed.'); + that.error_message = text.get(spec.error_message || '@i18n:dialogs.batch_error_message', 'Some operations failed.'); that.error_messages = $.ordered_map({ 911: 'Missing HTTP referer. <br/> You have to configure your browser to send HTTP referer header.' }); @@ -1322,7 +1323,7 @@ IPA.dirty_dialog = function(spec) { var that = IPA.dialog(spec); that.facet = spec.facet; - that.message = spec.message || IPA.messages.dialogs.dirty_message; + that.message = text.get(spec.message || '@i18n:dialogs.dirty_message'); that.create = function() { that.container.append(that.message); |