Localised strings in js/db_operations.js

This commit is contained in:
ninadsp
2010-06-22 11:32:45 +05:30
parent 51dffa100f
commit a871eba302
63 changed files with 5532 additions and 4092 deletions

View File

@@ -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);

View File

@@ -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');