diff --git a/js/messages.php b/js/messages.php index fc28b2ed0..9da01ca05 100644 --- a/js/messages.php +++ b/js/messages.php @@ -86,6 +86,8 @@ $js_messages['strSearching'] = __('Searching'); $js_messages['strHideQueryBox'] = __('Hide query box'); $js_messages['strShowQueryBox'] = __('Show query box'); $js_messages['strInlineEdit'] = __('Inline Edit'); +$js_messages['strSave'] = __('Save'); +$js_messages['strHide'] = __('Hide'); /* For tbl_select.js */ $js_messages['strHideSearchCriteria'] = __('Hide search criteria'); diff --git a/js/sql.js b/js/sql.js index 78d7649d2..3e0388ee9 100644 --- a/js/sql.js +++ b/js/sql.js @@ -418,19 +418,20 @@ $(document).ready(function() { var $this_children = $(this).children('span.nowrap').children('a').children('span.nowrap'); if (disp_mode != 'vertical'){ $this_children.empty(); - $this_children.text("submit"); + $this_children.text(PMA_messages['strSave']); } else { // vertical data_vt = $this_children.html(); - $this_children.text("submit"); + $this_children.text(PMA_messages['strSave']); } + var hide_link = '

' + PMA_messages['strHide'] + ''; if (disp_mode != 'vertical'){ - $(this).append('

hide'); + $(this).append(hide_link); $('#table_results tbody tr td a#hide').click(function(){ $this_children = $(this).siblings('span.nowrap').children('a').children('span.nowrap'); $this_children.empty(); - $this_children.text("Inline Edit"); + $this_children.text(PMA_messages['strInlineEdit']); var $this_hide = $(this).parent(); $this_hide.removeClass("inline_edit_active hover").addClass("inline_edit_anchor"); var last_column = $this_hide.siblings().length; @@ -450,7 +451,7 @@ $(document).ready(function() { var txt=[]; var rows=$(this).parent().siblings().length;; - $(this).append('

hide'); + $(this).append(hide_link); $('#table_results tbody tr td a#hide').click(function(){ var pos=$(this).parent().index(); @@ -877,7 +878,7 @@ $(document).ready(function() { for ( var i=0;i<=2;i++) { $del_hide.next().remove(); } if(disp_mode!='vertical'){ $chg_submit.empty(); - $chg_submit.text("Inline Edit"); + $chg_submit.text(PMA_messages['strInlineEdit']); } else { $chg_submit.children('span.nowrap').empty();