gettext conversion

This commit is contained in:
Marc Delisle
2010-05-12 12:30:00 -04:00
parent 9b367aaa52
commit c38f34393f
3 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ $export_page_title = __('View dump (schema) of database');
// exit if no tables in db found
if ($num_tables < 1) {
PMA_Message::error('strNoTablesFound')->display();
PMA_Message::error(__('No tables found in database.'))->display();
require './libraries/footer.inc.php';
exit;
} // end if

View File

@@ -60,9 +60,9 @@ if (isset($createpage)) {
$pdf_page_number = PMA_REL_create_page($newpage, $cfgRelation, $db, $query_default_option);
if ($pdf_page_number > 0) {
$message = PMA_Message::success('strPDFPageCreated');
$message = PMA_Message::success(__('Page has been created'));
} else {
$message = PMA_Message::error('strPDFPageCreateFailed');
$message = PMA_Message::error(__('Page creation failed'));
}
}

View File

@@ -328,7 +328,7 @@ if ($is_insert && count($value_sets) > 0) {
unset($query_fields);
} elseif (empty($query)) {
// No change -> move back to the calling script
$message = PMA_Message::success('strNoModification');
$message = PMA_Message::success(__('No change'));
$GLOBALS['js_include'][] = 'functions.js';
$active_page = $goto_include;
require_once './libraries/header.inc.php';
@@ -357,7 +357,7 @@ $error_messages = array();
foreach ($query as $single_query) {
if ($_REQUEST['submit_type'] == 'showinsert') {
$last_messages[] = PMA_Message::notice('strShowingSQL');
$last_messages[] = PMA_Message::notice(__('Showing SQL query'));
continue;
}
if ($GLOBALS['cfg']['IgnoreMultiSubmitErrors']) {
@@ -383,7 +383,7 @@ foreach ($query as $single_query) {
if ($total_affected_rows > 0) {
$insert_id = $insert_id + $total_affected_rows - 1;
}
$last_message = PMA_Message::notice('strInsertedRowId');
$last_message = PMA_Message::notice(__('Inserted row id: %1$d'));
$last_message->addParam($insert_id);
$last_messages[] = $last_message;
}