diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 14:13:34 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:22 +0200 |
commit | d5c0945890a4f2d360465ac2201ed2928f64dd23 (patch) | |
tree | f1fb80432266839bf50c08d054cc18d7ce13c2a7 /install/ui/src/freeipa/facet.js | |
parent | 8ee752c284241bd7ca87de31125716329a110eb5 (diff) | |
download | freeipa.git-d5c0945890a4f2d360465ac2201ed2928f64dd23.tar.gz freeipa.git-d5c0945890a4f2d360465ac2201ed2928f64dd23.tar.xz freeipa.git-d5c0945890a4f2d360465ac2201ed2928f64dd23.zip |
Replace remaining IPA.messages with text.get calls
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r-- | install/ui/src/freeipa/facet.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js index 1f5f21a9..7f10dae2 100644 --- a/install/ui/src/freeipa/facet.js +++ b/install/ui/src/freeipa/facet.js @@ -544,7 +544,7 @@ IPA.facet = function(spec, no_init) { }).appendTo(li); }; - var title = IPA.messages.error_report.title; + var title = text.get('@i18n:error_report.title'); title = title.replace('${error}', error_thrown.name); that.error_container.empty(); @@ -556,14 +556,14 @@ IPA.facet = function(spec, no_init) { details.append('<p>'+error_thrown.message+'</p>'); $('<div/>', { - text: IPA.messages.error_report.options + text: text.get('@i18n:error_report.options') }).appendTo(that.error_container); var options_list = $('<ul/>').appendTo(that.error_container); add_option( options_list, - IPA.messages.error_report.refresh, + text.get('@i18n:error_report.refresh'), function() { that.refresh(); } @@ -571,7 +571,7 @@ IPA.facet = function(spec, no_init) { add_option( options_list, - IPA.messages.error_report.main_page, + text.get('@i18n:error_report.main_page'), function() { navigation.show_default(); } @@ -579,13 +579,13 @@ IPA.facet = function(spec, no_init) { add_option( options_list, - IPA.messages.error_report.reload, + text.get('@i18n:error_report.reload'), function() { window.location.reload(false); } ); - that.error_container.append('<p>'+IPA.messages.error_report.problem_persists+'</p>'); + that.error_container.append('<p>'+text.get('@i18n:error_report.problem_persists')+'</p>'); that.show_error(); }; @@ -1168,7 +1168,7 @@ IPA.table_facet = function(spec, no_init) { that.load_records(records); if (data.result.truncated) { - var message = IPA.messages.search.truncated; + var message = text.get('@i18n:search.truncated'); message = message.replace('${counter}', data.result.count); that.table.summary.text(message); } else { @@ -1214,7 +1214,7 @@ IPA.table_facet = function(spec, no_init) { that.table.current_page = page; if (!total) { - that.table.summary.text(IPA.messages.association.no_entries); + that.table.summary.text(text.get('@i18n:association.no_entries')); that.load_records([]); return; } @@ -1224,7 +1224,7 @@ IPA.table_facet = function(spec, no_init) { var end = that.table.current_page * that.table.page_length; end = end > total ? total : end; - var summary = IPA.messages.association.paging; + var summary = text.get('@i18n:association.paging'); summary = summary.replace('${start}', start); summary = summary.replace('${end}', end); summary = summary.replace('${total}', total); |