diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-07-13 21:10:47 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-07-14 11:44:48 -0400 |
commit | 4bd85ceb90d6b8639c14e68691f2c9f447980c2d (patch) | |
tree | 0d114ff0faea534d6f3e2b81e35d25196ef5f2e7 /install/ui/association.js | |
parent | a746c613a4fb3d0eed5c73455ebb2e674ed7793d (diff) | |
download | freeipa-4bd85ceb90d6b8639c14e68691f2c9f447980c2d.tar.gz freeipa-4bd85ceb90d6b8639c14e68691f2c9f447980c2d.tar.xz freeipa-4bd85ceb90d6b8639c14e68691f2c9f447980c2d.zip |
Fixed label capitalization
The CSS text-transform sometimes produces incorrect capitalization,
so the code has been modified to use translated labels that already
contain the correct capitalization.
Ticket #1424
Diffstat (limited to 'install/ui/association.js')
-rw-r--r-- | install/ui/association.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/install/ui/association.js b/install/ui/association.js index b78e1e36b..32b4c3697 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -507,7 +507,7 @@ IPA.association_table_widget = function (spec) { var label = IPA.metadata.objects[that.other_entity].label; var title = IPA.messages.association.add; - title = title.replace('${entity}', that.entity_name); + title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label_singular); title = title.replace('${primary_key}', pkey); title = title.replace('${other_entity}', label); @@ -571,7 +571,6 @@ IPA.association_table_widget = function (spec) { if (!selected_values.length) { var message = IPA.messages.dialogs.remove_empty; - message = message.replace('${entity}', that.label); alert(message); return; } @@ -580,7 +579,7 @@ IPA.association_table_widget = function (spec) { var label = IPA.metadata.objects[that.other_entity].label; var title = IPA.messages.association.remove; - title = title.replace('${entity}', that.entity_name); + title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label_singular); title = title.replace('${primary_key}', pkey); title = title.replace('${other_entity}', label); @@ -896,7 +895,7 @@ IPA.association_facet = function (spec) { var label = IPA.metadata.objects[that.other_entity] ? IPA.metadata.objects[that.other_entity].label : that.other_entity; var title = IPA.messages.association.add; - title = title.replace('${entity}', that.entity_name); + title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label_singular); title = title.replace('${primary_key}', pkey); title = title.replace('${other_entity}', label); @@ -948,7 +947,6 @@ IPA.association_facet = function (spec) { if (!values.length) { var message = IPA.messages.dialogs.remove_empty; - message = message.replace('${entity}', label); alert(message); return; } @@ -956,7 +954,7 @@ IPA.association_facet = function (spec) { var pkey = IPA.nav.get_state(that.entity_name+'-pkey'); var title = IPA.messages.association.remove; - title = title.replace('${entity}', that.entity_name); + title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label_singular); title = title.replace('${primary_key}', pkey); title = title.replace('${other_entity}', label); |