diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-05-20 23:29:38 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-24 12:41:11 -0400 |
commit | 2a4edbda4d4843980bce5a203135d4895c688211 (patch) | |
tree | 1090e6f9c664830d2993283799b091f053d715c4 /install | |
parent | 006959ff85033a74e6a1f9ddfaa003a264e74746 (diff) | |
download | freeipa-2a4edbda4d4843980bce5a203135d4895c688211.tar.gz freeipa-2a4edbda4d4843980bce5a203135d4895c688211.tar.xz freeipa-2a4edbda4d4843980bce5a203135d4895c688211.zip |
Fixed adder dialog title.
The IPA.entity_builder has been fixed to use the correct title
for the entity's adder dialog.
Ticket #1239
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/entity.js | 9 | ||||
-rw-r--r-- | install/ui/test/data/i18n_messages.json | 22 | ||||
-rw-r--r-- | install/ui/test/data/ipa_init.json | 22 |
3 files changed, 30 insertions, 23 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index 026e66f7..8af4af96 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -809,7 +809,14 @@ IPA.entity_builder = function(){ that.adder_dialog = function(spec) { spec.factory = spec.factory || IPA.add_dialog; spec.name = spec.name || 'add'; - spec.title = spec.title || IPA.messages.objects.user.add; + + if (!spec.title) { + var messages = IPA.messages.objects[entity.name]; + if (messages) { + spec.title = messages.add; + } + } + return that.dialog(spec); }; diff --git a/install/ui/test/data/i18n_messages.json b/install/ui/test/data/i18n_messages.json index 7a1d498e..004b3fde 100644 --- a/install/ui/test/data/i18n_messages.json +++ b/install/ui/test/data/i18n_messages.json @@ -120,13 +120,13 @@ "identity": "DNS Zone Settings" }, "group": { - "add": "Add New Group", + "add": "Add Group", "details": "Group Settings", "posix": "Is this a POSIX group?" }, "hbacrule": { "active": "Active", - "add": "Add New Rule", + "add": "Add HBAC Rule", "allow": "Allow", "any_host": "Any Host", "any_service": "Any Service", @@ -143,14 +143,14 @@ "user": "Who" }, "hbacsvc": { - "add": "Add New HBAC Service" + "add": "Add HBAC Service" }, "hbacsvcgroup": { - "add": "Add New HBAC Service Group", + "add": "Add HBAC Service Group", "services": "Services" }, "host": { - "add": "Add New Host", + "add": "Add Host", "certificate": "Host Certificate", "cn": "Host Name", "delete_key_unprovision": "Delete Key, Unprovision", @@ -170,8 +170,8 @@ "valid": "Kerberos Key Present, Host Provisioned" }, "hostgroup": { - "add": "Add Hostgroup", - "identity": "Hostgroup Settings" + "add": "Add Host Group", + "identity": "Host Group Settings" }, "krbtpolicy": { "identity": "Kerberos ticket policy" @@ -207,7 +207,7 @@ "add": "Add Self Service Definition" }, "service": { - "add": "Add New Service", + "add": "Add Service", "certificate": "Service Certificate", "delete_key_unprovision": "Delete Key, Unprovision", "details": "Service Settings", @@ -222,16 +222,16 @@ "valid": "Kerberos Key Present, Service Provisioned" }, "sudocmd": { - "add": "Add New Sudo Command", + "add": "Add Sudo Command", "groups": "Groups" }, "sudocmdgroup": { - "add": "Add New Sudo Command Group", + "add": "Add Sudo Command Group", "commands": "Commands" }, "sudorule": { "active": "Active", - "add": "Add New Rule", + "add": "Add Sudo Rule", "allow": "Allow", "any_command": "Any Command", "any_group": "Any Group", diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 84eecba7..538b36e0 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -10082,13 +10082,13 @@ "identity": "DNS Zone Settings" }, "group": { - "add": "Add New Group", + "add": "Add Group", "details": "Group Settings", "posix": "Is this a POSIX group?" }, "hbacrule": { "active": "Active", - "add": "Add New Rule", + "add": "Add HBAC Rule", "allow": "Allow", "any_host": "Any Host", "any_service": "Any Service", @@ -10105,14 +10105,14 @@ "user": "Who" }, "hbacsvc": { - "add": "Add New HBAC Service" + "add": "Add HBAC Service" }, "hbacsvcgroup": { - "add": "Add New HBAC Service Group", + "add": "Add HBAC Service Group", "services": "Services" }, "host": { - "add": "Add New Host", + "add": "Add Host", "certificate": "Host Certificate", "cn": "Host Name", "delete_key_unprovision": "Delete Key, Unprovision", @@ -10132,8 +10132,8 @@ "valid": "Kerberos Key Present, Host Provisioned" }, "hostgroup": { - "add": "Add Hostgroup", - "identity": "Hostgroup Settings" + "add": "Add Host Group", + "identity": "Host Group Settings" }, "krbtpolicy": { "identity": "Kerberos ticket policy" @@ -10169,7 +10169,7 @@ "add": "Add Self Service Definition" }, "service": { - "add": "Add New Service", + "add": "Add Service", "certificate": "Service Certificate", "delete_key_unprovision": "Delete Key, Unprovision", "details": "Service Settings", @@ -10184,16 +10184,16 @@ "valid": "Kerberos Key Present, Service Provisioned" }, "sudocmd": { - "add": "Add New Sudo Command", + "add": "Add Sudo Command", "groups": "Groups" }, "sudocmdgroup": { - "add": "Add New Sudo Command Group", + "add": "Add Sudo Command Group", "commands": "Commands" }, "sudorule": { "active": "Active", - "add": "Add New Rule", + "add": "Add Sudo Rule", "allow": "Allow", "any_command": "Any Command", "any_group": "Any Group", |