From d5c0945890a4f2d360465ac2201ed2928f64dd23 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 4 Apr 2013 14:13:34 +0200 Subject: Replace remaining IPA.messages with text.get calls https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/aci.js | 2 +- install/ui/src/freeipa/add.js | 4 +- install/ui/src/freeipa/association.js | 12 ++-- install/ui/src/freeipa/automember.js | 4 +- install/ui/src/freeipa/certificate.js | 106 +++++++++++++++++----------------- install/ui/src/freeipa/details.js | 8 +-- install/ui/src/freeipa/dialog.js | 6 +- install/ui/src/freeipa/dns.js | 34 +++++------ install/ui/src/freeipa/entitle.js | 8 +-- install/ui/src/freeipa/entity.js | 4 +- install/ui/src/freeipa/facet.js | 18 +++--- install/ui/src/freeipa/field.js | 8 +-- install/ui/src/freeipa/hbactest.js | 18 +++--- install/ui/src/freeipa/host.js | 22 +++---- install/ui/src/freeipa/ipa.js | 16 ++--- install/ui/src/freeipa/search.js | 4 +- install/ui/src/freeipa/service.js | 6 +- install/ui/src/freeipa/sudo.js | 6 +- install/ui/src/freeipa/user.js | 2 +- install/ui/src/freeipa/widget.js | 42 +++++++------- 20 files changed, 165 insertions(+), 165 deletions(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index 0213d93c0..3165cdddf 100644 --- a/install/ui/src/freeipa/aci.js +++ b/install/ui/src/freeipa/aci.js @@ -498,7 +498,7 @@ IPA.attributes_widget = function(spec) { }) })).append($('', { 'class': 'aci-attribute-column', - html: IPA.messages.objects.aci.attribute + html: text.get('@i18n:objects.aci.attribute') })); if (that.undo) { diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js index f371ce1db..eb7ce38dc 100644 --- a/install/ui/src/freeipa/add.js +++ b/install/ui/src/freeipa/add.js @@ -111,7 +111,7 @@ IPA.entity_adder_dialog = function(spec) { }; that.get_success_message = function(data) { - var message = IPA.messages.dialogs.add_confirmation; + var message = text.get('@i18n:dialogs.add_confirmation'); return message.replace('${entity}', that.subject); }; @@ -191,7 +191,7 @@ IPA.entity_adder_dialog = function(spec) { div.append(' '); $('', { - text: IPA.messages.widget.validation.required + text: text.get('@i18n:widget.validation.required') }).appendTo(div); }; diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js index 4c4f3ef8f..8e70b68ef 100644 --- a/install/ui/src/freeipa/association.js +++ b/install/ui/src/freeipa/association.js @@ -619,7 +619,7 @@ IPA.association_table_widget = function (spec) { var selected_values = that.get_selected_values(); if (!selected_values.length) { - var message = IPA.messages.dialogs.remove_empty; + var message = text.get('@i18n:dialogs.remove_empty'); alert(message); return; } @@ -910,7 +910,7 @@ IPA.association_facet = function (spec, no_init) { 'class': 'right-aligned-facet-controls' }).appendTo(that.controls); - div.append(IPA.messages.association.show_results); + div.append(text.get('@i18n:association.show_results')); div.append(' '); var name = that.entity.name+'-'+that.attribute_member+'-'+that.other_entity.name+'-type-radio'; @@ -929,7 +929,7 @@ IPA.association_facet = function (spec, no_init) { }).appendTo(div); $('