From 4a8c43aa324beff5bebfa9a699b1dc4b29020731 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Feb 2011 12:46:59 -0600 Subject: I18n update. Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages. --- install/ui/widget.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'install/ui/widget.js') 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) { $('', { 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) { $('', { 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) { $('', { 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) { $('', { 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) { $("",{ 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