From 09296fc0b302d9a105aacad960c295991fa88a1d Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 4 Apr 2013 14:32:47 +0200 Subject: Use text.get for transforming values supplied by spec https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/ipa.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'install/ui/src/freeipa/ipa.js') 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 . */ -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.
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); -- cgit