Fixed entity labels.

The entity labels in the following locations have been fixed:
 - search facet title: plural
 - details facet title: singular
 - association facet title: singular
 - breadcrumb: plural
 - adder dialog title: singular
 - deleter dialog title: plural

Some entity labels have been changed into the correct plural form.
Unused file install/ui/test/data/i18n_messages.json has been removed.

Ticket #1249
Ticket #1387
This commit is contained in:
Endi S. Dewata
2011-06-24 11:39:48 -05:00
committed by Adam Young
parent 8d9575605d
commit 7452b6d3cb
18 changed files with 65 additions and 427 deletions

View File

@@ -56,7 +56,7 @@ IPA.search_facet = function(spec) {
that.table = IPA.table_widget({
'class': 'content-table',
name: 'search',
label: IPA.metadata.objects[entity.name].label,
label: entity.metadata.label,
entity_name: entity.name,
search_all: that.search_all,
scrollable: true,
@@ -188,17 +188,18 @@ IPA.search_facet = function(spec) {
that.remove_instances = function(entity) {
var values = that.get_values();
var label = entity.metadata.label;
var title;
if (!values.length) {
title = IPA.messages.dialogs.remove_empty;
title = title.replace('${entity}', that.label);
title = title.replace('${entity}', label);
alert(title);
return;
}
title = IPA.messages.dialogs.remove_title;
title = title.replace('${entity}', that.label);
title = title.replace('${entity}', label);
var dialog = IPA.deleter_dialog({
'title': title,