Translate messages.

This commit is contained in:
Michal Čihař
2010-04-01 14:29:35 +02:00
parent c3df5d3044
commit 58559fad07
2 changed files with 4 additions and 1 deletions

View File

@@ -1666,7 +1666,7 @@ $(document).ready(function(){
$table=$("input[name='table']").val(); $table=$("input[name='table']").val();
$token=$("input[name='token']").val(); $token=$("input[name='token']").val();
$sql_query=$("input[name='sql_query']").val(); $sql_query=$("input[name='sql_query']").val();
$(".syntax").replaceWith("<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">"+ $sql_query +"</textarea><input type=\"button\" id=\"btnSave\" value=\"Save\"><input type=\"button\" id=\"btnDiscard\" value=\"Discard\">"); $(".syntax").replaceWith("<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">"+ $sql_query +"</textarea><input type=\"button\" id=\"btnSave\" value=\"" + PMA_messages['strGo'] + "\"><input type=\"button\" id=\"btnDiscard\" value=\"" + PMA_messages['strCancel'] + "\">");
return false; return false;
}); });

View File

@@ -104,6 +104,9 @@ if (in_array('server_privileges.js', $GLOBALS['js_include'])) {
$GLOBALS['js_messages']['strPasswordNotSame'] = $GLOBALS['strPasswordNotSame']; $GLOBALS['js_messages']['strPasswordNotSame'] = $GLOBALS['strPasswordNotSame'];
} }
$GLOBALS['js_messages']['strGo'] = __('Go');
$GLOBALS['js_messages']['strCancel'] = __('Cancel');
$GLOBALS['js_include'][] = 'tooltip.js'; $GLOBALS['js_include'][] = 'tooltip.js';
$GLOBALS['js_events'][] = array( $GLOBALS['js_events'][] = array(