Localised strings in js/db_operations.js
This commit is contained in:
@@ -25,12 +25,13 @@ $(document).ready(function() {
|
||||
|
||||
var question = 'CREATE DATABASE ... and then DROP DATABASE ' + window.parent.db;
|
||||
$(this).PMA_confirm(question, $(this).attr('action'), function(url) {
|
||||
PMA_ajaxShowMessage("Renaming Database");
|
||||
PMA_ajaxShowMessage(PMA_messages['strRenamingDatabases']);
|
||||
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
|
||||
$.get(url, $("#rename_db_form").serialize() + '&is_js_confirmed=1&ajax_request=true', function(data) {
|
||||
$.get(url, $("#rename_db_form").serialize() + '&is_js_confirmed=1', function(data) {
|
||||
if(data.success == true) {
|
||||
PMA_ajaxShowMessage(data.message);
|
||||
$("<span>Reload Database?</span>").dialog({
|
||||
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
||||
buttons: {"Yes": function() {
|
||||
refreshMain("main.php");
|
||||
},
|
||||
@@ -51,7 +52,7 @@ $(document).ready(function() {
|
||||
$("#copy_db_form").live('submit', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
PMA_ajaxShowMessage("Copying Database");
|
||||
PMA_ajaxShowMessage(PMA_messages['strCopyingDatabase']);
|
||||
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
|
||||
$.get($(this).attr('action'), $(this).serialize(), function(data) {
|
||||
@@ -73,7 +74,7 @@ $(document).ready(function() {
|
||||
|
||||
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
|
||||
PMA_ajaxShowMessage("Changing charset");
|
||||
PMA_ajaxShowMessage(PMA_messages['strChangingCharset']);
|
||||
$.get($(this).attr('action'), $(this).serialize() + "&submitcollation=" + $(this).find("input[name=submitcollation]").attr('value'), function(data) {
|
||||
if(data.success == true) {
|
||||
PMA_ajaxShowMessage(data.message);
|
||||
|
@@ -60,6 +60,12 @@ $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
|
||||
$js_messages['strDroppingColumn'] = __('Dropping Column');
|
||||
$js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
|
||||
|
||||
/* For db_operations.js */
|
||||
$js_messages['strRenamingDatabases'] = __('Renaming Databases');
|
||||
$js_messages['strReloadDatabase'] = __('Reload Database');
|
||||
$js_messages['strCopyingDatabase'] = __('Copying Database');
|
||||
$js_messages['strChangingCharset'] = __('Changing Charset');
|
||||
|
||||
/* Designer */
|
||||
$js_messages['strModifications'] = __('Modifications have been saved');
|
||||
$js_messages['strRelationDeleted'] = __('Relation deleted');
|
||||
|
Reference in New Issue
Block a user