From 4a8c43aa324beff5bebfa9a699b1dc4b29020731 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Feb 2011 12:46:59 -0600 Subject: I18n update. Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages. --- install/ui/policy.js | 62 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 25 deletions(-) (limited to 'install/ui/policy.js') diff --git a/install/ui/policy.js b/install/ui/policy.js index 8e627412..9b8115f8 100644 --- a/install/ui/policy.js +++ b/install/ui/policy.js @@ -35,14 +35,14 @@ IPA.entity_factories.dnszone = function() { that.facet( IPA.search_facet({ name: 'search', - label: 'Search', + label: IPA.messages.facets.search, entity_name: that.name }). column({name:'idnsname'}). dialog( IPA.add_dialog({ name: 'add', - title: 'Add DNS Zone' + title: IPA.messages.objects.dnszone.add }). field(IPA.text_widget({ name: 'idnsname', undo: false})). field(IPA.text_widget({ name: 'idnssoamname', undo: false})). @@ -51,7 +51,10 @@ IPA.entity_factories.dnszone = function() { that.facet( IPA.details_facet({name:'details'}). section( - IPA.stanza({name:'identity', label:'DNS Zone Settings'}). + IPA.stanza({ + name: 'identity', + label: IPA.messages.objects.dnszone.identity + }). input({name:'idnsname'}). input({name:'idnszoneactive'}). input({name:'idnssoamname'}). @@ -69,7 +72,7 @@ IPA.entity_factories.dnszone = function() { that.facet( IPA.records_facet({ 'name': 'records', - 'label': IPA.metadata.dnsrecord.label + 'label': IPA.metadata.objects.dnsrecord.label })); that.create_association_facets(); @@ -123,15 +126,15 @@ IPA.records_facet = function (spec){ var add_dialog = $('
',{ id: 'add_dns_resource_record', - title: 'Add DNS Resource Record' + title: IPA.messages.objects.dnsrecord.add }); var dl = $('
').appendTo(add_dialog); - dl.append('
Resource
'); + dl.append('
'+IPA.messages.objects.dnsrecord.resource+'
'); dl.append( $('
'). append($(''))); - dl.append('
Type
'); + dl.append('
'+IPA.messages.objects.dnsrecord.type+'
'); dl.append( $('
').append(create_type_select('dns-record-type'))); - dl.append('
Data
'); + dl.append('
'+IPA.messages.objects.dnsrecord.data+'
'); dl.append($('
').append($('