Now using localized strings for all jQuery actions instead of static

English strings.  Added strings to js/messages.php.  Yet to figure out
how to localize buttons on jQueryUI dialogs.
This commit is contained in:
ninadsp
2010-06-22 01:02:47 +05:30
parent 06a7736b88
commit 51dffa100f
63 changed files with 27206 additions and 24638 deletions

View File

@@ -16,7 +16,7 @@ var sql_box_locked = false;
var only_once_elements = new Array();
/**
* @var ajax_notification_visible boolean boolean that stores status of
* @var ajax_message_init boolean boolean that stores status of
* notification for PMA_ajaxShowNotification
*/
var ajax_message_init = false;
@@ -1743,7 +1743,7 @@ function PMA_ajaxInsertResponse(divisions_map) {
function PMA_ajaxShowMessage(message, timeout) {
if(!message) {
var msg = 'Loading...';
var msg = PMA_messages['strLoading'];
}
else {
var msg = message;
@@ -1828,7 +1828,7 @@ $(document).ready(function() {
$(this).PMA_confirm(question, $(this).attr('href') ,function(url) {
PMA_ajaxShowMessage("Processing Request");
PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
$.get(url, {'is_js_confirmed': '1', 'ajax_request': true}, function(data) {
//Database deleted successfully, refresh both the frames
window.parent.refreshNavigation();
@@ -1847,7 +1847,7 @@ $(document).ready(function() {
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
PMA_ajaxShowMessage("Processing Request");
PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
if(data.success == true) {
@@ -1856,7 +1856,7 @@ $(document).ready(function() {
$(this).remove();
}
else {
PMA_ajaxShowMessage("Error in processing request : " + data.error);
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);
}
})
})
@@ -1872,7 +1872,7 @@ $(document).ready(function() {
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
PMA_ajaxShowMessage("Processing Request");
PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
if(data.success == true) {
@@ -1881,7 +1881,7 @@ $(document).ready(function() {
$(this).remove();
}
else {
PMA_ajaxShowMessage("Error in processing request : " + data.error);
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);
}
});
});
@@ -1893,11 +1893,11 @@ $(document).ready(function() {
var curr_table_name = window.parent.table;
var curr_column_name = $(this).parents('tr').children('th').children('label').text();
var question = 'Do you really want to :\n ALTER TABLE `' + curr_table_name + '` DROP `' + curr_column_name + '`';
var question = PMA_message['strDoYouReally'] + ' :\n ALTER TABLE `' + curr_table_name + '` DROP `' + curr_column_name + '`';
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
PMA_ajaxShowMessage("Dropping Column");
PMA_ajaxShowMessage(PMA_messages['strDroppingColumn']);
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
if(data.success == true) {
@@ -1905,7 +1905,7 @@ $(document).ready(function() {
$(this).remove();
}
else {
PMA_ajaxShowMessage("Error in processing request : " + data.error);
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);
}
})
}); //end of Drop Column Anchor action
@@ -1917,11 +1917,11 @@ $(document).ready(function() {
var curr_table_name = window.parent.table;
var curr_column_name = $(this).parents('tr').children('th').children('label').text();
var question = 'Do you really want to :\n ALTER TABLE `' + curr_table_name + '` ADD PRIMARY KEY(`' + curr_column_name + '`)';
var question = PMA_messages['strDoYouReally'] + ' :\n ALTER TABLE `' + curr_table_name + '` ADD PRIMARY KEY(`' + curr_column_name + '`)';
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
PMA_ajaxShowMessage("Adding Primary Key");
PMA_ajaxShowMessage(PMA_messages['strAddingPrimaryKey']);
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
if(data.success == true) {
@@ -1929,7 +1929,7 @@ $(document).ready(function() {
$(this).remove();
}
else {
PMA_ajaxShowMessage("Error in processing request : " + data.error);
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);
}
})
})

View File

@@ -43,11 +43,23 @@ $js_messages['strHostEmpty'] = __('The host name is empty!');
$js_messages['strUserEmpty'] = __('The user name is empty!');
$js_messages['strPasswordEmpty'] = __('The password is empty!');
$js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
$js_messages['strAddNewUser'] = __('Add a New User');
$js_messages['strCancel'] = __('Cancel');
$js_messages['strCreateUser'] = __('Create User');
$js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
$js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
/* For inline query editing */
$js_messages['strGo'] = __('Go');
$js_messages['strCancel'] = __('Cancel');
/* For Ajax Notifications */
$js_messages['strLoading'] = __('Loading');
$js_messages['strProcessingRequest'] = __('Processing Request');
$js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
$js_messages['strDroppingColumn'] = __('Dropping Column');
$js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
/* Designer */
$js_messages['strModifications'] = __('Modifications have been saved');
$js_messages['strRelationDeleted'] = __('Relation deleted');

840
po/af.po

File diff suppressed because it is too large Load Diff

843
po/ar.po

File diff suppressed because it is too large Load Diff

844
po/az.po

File diff suppressed because it is too large Load Diff

844
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

841
po/bg.po

File diff suppressed because it is too large Load Diff

844
po/bn.po

File diff suppressed because it is too large Load Diff

844
po/bs.po

File diff suppressed because it is too large Load Diff

846
po/ca.po

File diff suppressed because it is too large Load Diff

843
po/cs.po

File diff suppressed because it is too large Load Diff

853
po/cy.po

File diff suppressed because it is too large Load Diff

846
po/da.po

File diff suppressed because it is too large Load Diff

843
po/de.po

File diff suppressed because it is too large Load Diff

846
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

845
po/es.po

File diff suppressed because it is too large Load Diff

844
po/et.po

File diff suppressed because it is too large Load Diff

844
po/eu.po

File diff suppressed because it is too large Load Diff

837
po/fa.po

File diff suppressed because it is too large Load Diff

846
po/fi.po

File diff suppressed because it is too large Load Diff

843
po/fr.po

File diff suppressed because it is too large Load Diff

846
po/gl.po

File diff suppressed because it is too large Load Diff

844
po/he.po

File diff suppressed because it is too large Load Diff

839
po/hi.po

File diff suppressed because it is too large Load Diff

844
po/hr.po

File diff suppressed because it is too large Load Diff

845
po/hu.po

File diff suppressed because it is too large Load Diff

850
po/id.po

File diff suppressed because it is too large Load Diff

842
po/it.po

File diff suppressed because it is too large Load Diff

846
po/ja.po

File diff suppressed because it is too large Load Diff

845
po/ka.po

File diff suppressed because it is too large Load Diff

926
po/ko.po

File diff suppressed because it is too large Load Diff

844
po/lt.po

File diff suppressed because it is too large Load Diff

844
po/lv.po

File diff suppressed because it is too large Load Diff

843
po/mk.po

File diff suppressed because it is too large Load Diff

846
po/mn.po

File diff suppressed because it is too large Load Diff

842
po/ms.po

File diff suppressed because it is too large Load Diff

843
po/nb.po

File diff suppressed because it is too large Load Diff

843
po/nl.po

File diff suppressed because it is too large Load Diff

845
po/pl.po

File diff suppressed because it is too large Load Diff

844
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

841
po/ro.po

File diff suppressed because it is too large Load Diff

846
po/ru.po

File diff suppressed because it is too large Load Diff

844
po/si.po

File diff suppressed because it is too large Load Diff

844
po/sk.po

File diff suppressed because it is too large Load Diff

849
po/sl.po

File diff suppressed because it is too large Load Diff

841
po/sq.po

File diff suppressed because it is too large Load Diff

844
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

845
po/sv.po

File diff suppressed because it is too large Load Diff

851
po/ta.po

File diff suppressed because it is too large Load Diff

841
po/te.po

File diff suppressed because it is too large Load Diff

844
po/th.po

File diff suppressed because it is too large Load Diff

1083
po/tr.po

File diff suppressed because it is too large Load Diff

844
po/tt.po

File diff suppressed because it is too large Load Diff

843
po/uk.po

File diff suppressed because it is too large Load Diff

833
po/ur.po

File diff suppressed because it is too large Load Diff

846
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff