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:
@@ -16,7 +16,7 @@ var sql_box_locked = false;
|
|||||||
var only_once_elements = new Array();
|
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
|
* notification for PMA_ajaxShowNotification
|
||||||
*/
|
*/
|
||||||
var ajax_message_init = false;
|
var ajax_message_init = false;
|
||||||
@@ -1743,7 +1743,7 @@ function PMA_ajaxInsertResponse(divisions_map) {
|
|||||||
function PMA_ajaxShowMessage(message, timeout) {
|
function PMA_ajaxShowMessage(message, timeout) {
|
||||||
|
|
||||||
if(!message) {
|
if(!message) {
|
||||||
var msg = 'Loading...';
|
var msg = PMA_messages['strLoading'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var msg = message;
|
var msg = message;
|
||||||
@@ -1828,7 +1828,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$(this).PMA_confirm(question, $(this).attr('href') ,function(url) {
|
$(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) {
|
$.get(url, {'is_js_confirmed': '1', 'ajax_request': true}, function(data) {
|
||||||
//Database deleted successfully, refresh both the frames
|
//Database deleted successfully, refresh both the frames
|
||||||
window.parent.refreshNavigation();
|
window.parent.refreshNavigation();
|
||||||
@@ -1847,7 +1847,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
|
$(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) {
|
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
|
||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
@@ -1856,7 +1856,7 @@ $(document).ready(function() {
|
|||||||
$(this).remove();
|
$(this).remove();
|
||||||
}
|
}
|
||||||
else {
|
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) {
|
$(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) {
|
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
|
||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
@@ -1881,7 +1881,7 @@ $(document).ready(function() {
|
|||||||
$(this).remove();
|
$(this).remove();
|
||||||
}
|
}
|
||||||
else {
|
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_table_name = window.parent.table;
|
||||||
var curr_column_name = $(this).parents('tr').children('th').children('label').text();
|
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) {
|
$(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) {
|
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
|
||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
@@ -1905,7 +1905,7 @@ $(document).ready(function() {
|
|||||||
$(this).remove();
|
$(this).remove();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PMA_ajaxShowMessage("Error in processing request : " + data.error);
|
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}); //end of Drop Column Anchor action
|
}); //end of Drop Column Anchor action
|
||||||
@@ -1917,11 +1917,11 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
var curr_table_name = window.parent.table;
|
var curr_table_name = window.parent.table;
|
||||||
var curr_column_name = $(this).parents('tr').children('th').children('label').text();
|
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) {
|
$(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) {
|
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) {
|
||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
@@ -1929,7 +1929,7 @@ $(document).ready(function() {
|
|||||||
$(this).remove();
|
$(this).remove();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PMA_ajaxShowMessage("Error in processing request : " + data.error);
|
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@@ -43,11 +43,23 @@ $js_messages['strHostEmpty'] = __('The host name is empty!');
|
|||||||
$js_messages['strUserEmpty'] = __('The user name is empty!');
|
$js_messages['strUserEmpty'] = __('The user name is empty!');
|
||||||
$js_messages['strPasswordEmpty'] = __('The password is empty!');
|
$js_messages['strPasswordEmpty'] = __('The password is empty!');
|
||||||
$js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
|
$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 */
|
/* For inline query editing */
|
||||||
$js_messages['strGo'] = __('Go');
|
$js_messages['strGo'] = __('Go');
|
||||||
$js_messages['strCancel'] = __('Cancel');
|
$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 */
|
/* Designer */
|
||||||
$js_messages['strModifications'] = __('Modifications have been saved');
|
$js_messages['strModifications'] = __('Modifications have been saved');
|
||||||
$js_messages['strRelationDeleted'] = __('Relation deleted');
|
$js_messages['strRelationDeleted'] = __('Relation deleted');
|
||||||
|
846
po/be@latin.po
846
po/be@latin.po
File diff suppressed because it is too large
Load Diff
843
po/en_GB.po
843
po/en_GB.po
File diff suppressed because it is too large
Load Diff
844
po/pt_BR.po
844
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
844
po/sr@latin.po
844
po/sr@latin.po
File diff suppressed because it is too large
Load Diff
846
po/uz@latin.po
846
po/uz@latin.po
File diff suppressed because it is too large
Load Diff
843
po/zh_CN.po
843
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
844
po/zh_TW.po
844
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user