From c38f34393fe477870a1bb97a9c40444bb18fa4f2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 12 May 2010 12:30:00 -0400 Subject: [PATCH] gettext conversion --- db_export.php | 2 +- pmd_pdf.php | 4 ++-- tbl_replace.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/db_export.php b/db_export.php index 887e551f1..718a489d8 100644 --- a/db_export.php +++ b/db_export.php @@ -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 diff --git a/pmd_pdf.php b/pmd_pdf.php index 03e45406f..3c921f59c 100644 --- a/pmd_pdf.php +++ b/pmd_pdf.php @@ -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')); } } diff --git a/tbl_replace.php b/tbl_replace.php index ffa1574c3..b508342ca 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -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; }