diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-02-16 12:46:59 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-02-21 15:36:32 -0500 |
commit | 4a8c43aa324beff5bebfa9a699b1dc4b29020731 (patch) | |
tree | 35d4ed4076e0c8e098946c8d96290f03699657a3 /install/ui/widget.js | |
parent | 2e25b2ed27ebe7a0a612d120bda6a23596e21b64 (diff) | |
download | freeipa-4a8c43aa324beff5bebfa9a699b1dc4b29020731.tar.gz freeipa-4a8c43aa324beff5bebfa9a699b1dc4b29020731.tar.xz freeipa-4a8c43aa324beff5bebfa9a699b1dc4b29020731.zip |
I18n update.
Hard-coded messages through out the code have been replaced by i18n
messages obtained from json_metadata and i18n_messages.
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r-- | install/ui/widget.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js index 1a2a94a0a..3b32d4692 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -99,7 +99,7 @@ IPA.widget = function(spec) { function init() { if (that.entity_name) { - that.param_info = IPA.get_param_info(that.entity_name, that.name); + that.param_info = IPA.get_entity_param(that.entity_name, that.name); if (that.param_info) { @@ -307,7 +307,7 @@ IPA.text_widget = function(spec) { $('<span/>', { name: 'error_link', - html: 'Text does not match field pattern', + html: IPA.messages.widget.validation_error, 'class': 'ui-state-error ui-corner-all', style: 'display:none' }).appendTo(container); @@ -415,8 +415,8 @@ IPA.multivalued_text_widget = function(spec) { $('<a/>', { name: 'remove', href: 'jslink', - title: 'Remove', - html: 'Remove' + title: IPA.messages.buttons.remove, + html: IPA.messages.buttons.remove }).appendTo(div); if (that.undo) { @@ -428,7 +428,7 @@ IPA.multivalued_text_widget = function(spec) { $('<span/>', { name: 'error_link', - html: 'Text does not match field pattern', + html: IPA.messages.widget.validation_error, 'class': 'ui-state-error ui-corner-all', style: 'display:none' }).appendTo(div); @@ -436,8 +436,8 @@ IPA.multivalued_text_widget = function(spec) { $('<a/>', { name: 'add', href: 'jslink', - title: 'Add', - html: 'Add' + title: IPA.messages.buttons.add, + html: IPA.messages.buttons.add }).appendTo(container); container.append(' '); @@ -951,7 +951,7 @@ IPA.textarea_widget = function (spec) { $("<span/>",{ name:'error_link', - html:"Text does not match field pattern", + html: IPA.messages.widget.validation_error, "class":"ui-state-error ui-corner-all", style:"display:none" }).appendTo(container); @@ -1019,7 +1019,7 @@ IPA.column = function (spec) { that.init = function() { if (that.entity_name && !that.label) { - var param_info = IPA.get_param_info(that.entity_name, that.name); + var param_info = IPA.get_entity_param(that.entity_name, that.name); if (param_info) that.label = param_info.label; } }; @@ -1206,11 +1206,11 @@ IPA.table_widget = function (spec) { that.tfoot = $('tfoot', that.table); var select_all_checkbox = $('input[name=select]', that.thead); - select_all_checkbox.attr('title', 'Select All'); + select_all_checkbox.attr('title', IPA.messages.search.select_all); select_all_checkbox.change(function() { var checked = select_all_checkbox.is(':checked'); - select_all_checkbox.attr('title', checked ? 'Unselect All' : 'Select All'); + select_all_checkbox.attr('title', checked ? IPA.messages.search.unselect_all : IPA.messages.search.select_all); var checkboxes = $('input[name=select]', that.tbody).get(); for (var i=0; i<checkboxes.length; i++) { checkboxes[i].checked = checked; |