diff --git a/install/ui/association.js b/install/ui/association.js index 6f74bf628..92ccb6058 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -844,7 +844,8 @@ IPA.association_facet = function (spec) { 'class': 'right-aligned-facet-controls' }).appendTo(that.controls); - span.append('Show Results '); + span.append(IPA.messages.association.show_results); + span.append(' '); that.direct_radio = $('', { type: 'radio', @@ -857,7 +858,9 @@ IPA.association_facet = function (spec) { } }).appendTo(span); - span.append(' Direct Enrollment '); + span.append(' '); + span.append(IPA.messages.association.direct_enrollment); + span.append(' '); that.indirect_radio = $('', { type: 'radio', @@ -870,7 +873,8 @@ IPA.association_facet = function (spec) { } }).appendTo(span); - span.append(' Indirect Enrollment'); + span.append(' '); + span.append(IPA.messages.association.indirect_enrollment); } }; @@ -1007,7 +1011,7 @@ IPA.association_facet = function (spec) { var pkeys = that.data[that.get_attribute_name()]; if (!pkeys || !pkeys.length) { that.table.empty(); - that.table.summary.text('No entries.'); + that.table.summary.text(IPA.messages.association.no_entries); return; } @@ -1018,7 +1022,10 @@ IPA.association_facet = function (spec) { var end = that.table.current_page * that.table.page_length; end = end > total ? total : end; - var summary = 'Showing '+start+' to '+end+' of '+total+' entries.'; + var summary = IPA.messages.association.paging; + summary = summary.replace('${start}', start); + summary = summary.replace('${end}', end); + summary = summary.replace('${total}', total); that.table.summary.text(summary); var list = pkeys.slice(start-1, end); diff --git a/install/ui/automount.js b/install/ui/automount.js index d4f113d51..56c1fbfaa 100644 --- a/install/ui/automount.js +++ b/install/ui/automount.js @@ -87,21 +87,23 @@ IPA.entity_factories.automountmap = function() { fields:[{factory:IPA.method_radio_widget, name: 'method', undo: false, - label:'Map Type', - options:[{value:'add',label:'Direct'}, - {value:'add_indirect',label:'Indirect'}] + label: IPA.messages.objects.automountmap.map_type, + options: [ + { value: 'add', label: IPA.messages.objects.automountmap.direct }, + { value: 'add_indirect', label: IPA.messages.objects.automountmap.indirect } + ] }, 'automountmapname','description', { - name:'key', - label:'Mount Point', - conditional:true, + name: 'key', + label: IPA.get_method_option('automountmap_add_indirect', 'key').label, + conditional: true, undo: false }, { - name:'parentmap', - label:'Parent Map', - conditional:true, + name: 'parentmap', + label: IPA.get_method_option('automountmap_add_indirect', 'parentmap').label, + conditional: true, undo: false }] }). diff --git a/install/ui/certificate.js b/install/ui/certificate.js index 64d93f9bd..bfecfc5b4 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -33,17 +33,17 @@ IPA.cert.CERTIFICATE_STATUS_VALID = 1; IPA.cert.CERTIFICATE_STATUS_REVOKED = 2; IPA.cert.CRL_REASON = [ - 'Unspecified', - 'Key Compromise', - 'CA Compromise', - 'Affiliation Changed', - 'Superseded', - 'Cessation of Operation', - 'Certificate Hold', + 'unspecified', + 'key_compromise', + 'ca_compromise', + 'affiliation_changed', + 'superseded', + 'cessation_of_operation', + 'certificate_hold', null, - 'Remove from CRL', - 'Privilege Withdrawn', - 'AA Compromise' + 'remove_from_crl', + 'privilege_withdrawn', + 'aa_compromise' ]; IPA.cert.parse_dn = function(dn) { @@ -155,10 +155,11 @@ IPA.cert.revoke_dialog = function(spec) { that.select = $('', { type: 'text', diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 4fa3f4933..b7425e350 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -102,6 +102,9 @@ class i18n_messages(Command): "identity":_("Automount Location Settings") }, "automountmap": { + "map_type":_("Map Type"), + "direct":_("Direct"), + "indirect":_("Indirect"), }, "automountkey": { }, @@ -157,11 +160,31 @@ class i18n_messages(Command): "identity":_("DNS Zone Settings"), }, "dnsrecord": { - "resource":_("Resource"), - "type":_("Type"), + "type":_("Record Type"), "data":_("Data"), "title":_("Records for DNS Zone"), }, + "entitle": { + "account":_("Account"), + "certificate":_("Certificate"), + "certificates":_("Certificates"), + "consume":_("Consume"), + "consume_entitlement":_("Consume Entitlement"), + "consumed":_("Consumed"), + "download":_("Download"), + "download_certificate":_("Download Certificate"), + "end":_("End"), + "import_button":_("Import"), + "import_certificate":_("Import Certificate"), + "import_message":_("Enter the Base64-encoded entitlement certificate below:"), + "loading":_("Loading..."), + "no_certificate":_("No Certificate."), + "product":_("Product"), + "register":_("Register"), + "registration":_("Registration"), + "start":_("Start"), + "status":_("Status"), + }, "group": { "details":_("Group Settings"), "posix":_("Is this a POSIX group?"), @@ -295,7 +318,7 @@ class i18n_messages(Command): "password_must_match":_("Passwords must match"), }, }, - "buttons":{ + "buttons": { "add":_("Add"), "add_and_add_another":_("Add and Add Another"), "add_and_edit":_("Add and Edit"), @@ -316,7 +339,7 @@ class i18n_messages(Command): "update":_("Update"), "view":_("View"), }, - "dialogs":{ + "dialogs": { "add_title":_("Add ${entity}"), "available":_("Available"), "dirty_message":_("This page has unsaved changes. Please save or revert."), @@ -326,7 +349,7 @@ class i18n_messages(Command): "remove_title":_("Remove ${entity}"), "prospective":_("Prospective"), }, - "facet_groups":{ + "facet_groups": { "managedby":_("Managed by"), "member":_("Member"), "memberindirect":_("Indirect Member"), @@ -334,11 +357,11 @@ class i18n_messages(Command): "memberofindirect":_("Indirect Member Of"), "settings": _("Settings"), }, - "facets":{ + "facets": { "search":_("Search"), "details": _("Settings"), }, - "search":{ + "search": { "quick_links":_("Quick Links"), "select_all":_("Select All"), "unselect_all":_("Unselect All"), @@ -346,7 +369,9 @@ class i18n_messages(Command): "truncated":_( "Query returned more results than the configured size limit. Displaying the first ${counter} results."), }, - "details":{ + "details": { + "collapse_all":_("Collapse All"), + "expand_all":_("Expand All"), "general":_("General"), "identity":_("Identity Settings"), "settings":_("${entity} ${primary_key} Settings"), @@ -363,15 +388,29 @@ class i18n_messages(Command): "role":_("Role Based Access Control"), "automount":_("Automount") }, - "association":{ + "association": { "add":_("Add ${other_entity} into ${entity} ${primary_key}"), + "direct_enrollment":_("Direct Enrollment"), + "indirect_enrollment":_("Indirect Enrollment"), + "no_entries":_("No entries."), + "paging":_("Showing ${start} to ${end} of ${total} entries."), "remove":_("Remove ${other_entity} from ${entity} ${primary_key}"), + "show_results":_("Show Results"), }, - "widget":{ + "widget": { + "next":_("Next"), "optional":_("Optional field: click to show"), - "validation_error":_("Text does not match field pattern"), + "page":_("Page"), + "prev":_("Prev"), + "validation": { + "error":_("Text does not match field pattern"), + "integer": _("Must be an integer"), + "max_value": _("Maximum value is ${value}"), + "min_value": _("Minimum value is ${value}"), + "required": _("Required field"), + }, }, - "ajax":{ + "ajax": { "401":_("Your Kerberos ticket is no longer valid. Please run kinit and then click 'Retry'. If this is your first time running the IPA Web UI follow these directions to configure your browser.") }, }