summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/facet.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-04 13:39:20 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:21 +0200
commit12f5f4cfdd38c2a29c8e6eeac17557f4e7731307 (patch)
treeb9b9239bdb839d1df30230499f8d1cb64a405f0c /install/ui/src/freeipa/facet.js
parentf492e61f46abb0899d26d03f1599dd9f0f01a6f3 (diff)
downloadfreeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.gz
freeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.xz
freeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.zip
Replace IPA.messages with @i18n definition in spec objects
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r--install/ui/src/freeipa/facet.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js
index 3b908b20e..0145020bb 100644
--- a/install/ui/src/freeipa/facet.js
+++ b/install/ui/src/freeipa/facet.js
@@ -1515,7 +1515,7 @@ IPA.facet_builder = function(entity) {
spec.title = spec.title || entity.metadata.label;
spec.label = spec.label || entity.metadata.label;
- spec.tab_label = spec.tab_label || IPA.messages.facets.search;
+ spec.tab_label = spec.tab_label || '@i18n:facets.search';
spec.factory = spec.factory || IPA.search_facet;
add_redirect_info();
@@ -1526,7 +1526,7 @@ IPA.facet_builder = function(entity) {
spec.title = spec.title || entity.metadata.label_singular;
spec.label = spec.label || entity.metadata.label;
- spec.tab_label = spec.tab_label || IPA.messages.facets.search;
+ spec.tab_label = spec.tab_label || '@i18n:facets.search';
spec.factory = spec.factory || IPA.nested_search_facet;
return spec;
@@ -1535,7 +1535,7 @@ IPA.facet_builder = function(entity) {
that.prepare_details_spec = function(spec) {
spec.title = spec.title || entity.metadata.label_singular;
spec.label = spec.label || entity.metadata.label_singular;
- spec.tab_label = spec.tab_label || IPA.messages.facets.details;
+ spec.tab_label = spec.tab_label || '@i18n:facets.details';
spec.factory = spec.factory || IPA.details_facet;
return spec;
@@ -1568,8 +1568,8 @@ IPA.facet_builder = function(entity) {
spec.other_entity = spec.other_entity ||
spec.name.substring(index+1);
- spec.add_title = IPA.messages.association.add[spec.attribute_member];
- spec.remove_title = IPA.messages.association.remove[spec.attribute_member];
+ spec.add_title = '@i18n:association.add.'+spec.attribute_member;
+ spec.remove_title = '@i18n:association.remove.'+spec.attribute_member;
spec.facet_group = spec.facet_group || spec.attribute_member;