From f55823f47fd099cbbc3717fdbf0cfec8135927ed Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 3 May 2010 12:57:46 -0400 Subject: [PATCH] strings to gettext, first batch --- browse_foreigners.php | 26 +- db_datadict.php | 34 +- db_export.php | 6 +- db_operations.php | 78 +- db_printview.php | 24 +- db_qbe.php | 72 +- db_structure.php | 142 +- db_tracking.php | 46 +- import.php | 2 +- libraries/auth/cookie.auth.lib.php | 4 +- libraries/charset_conversion.lib.php | 12 +- libraries/common.inc.php | 12 +- libraries/core.lib.php | 6 +- libraries/db_events.inc.php | 8 +- libraries/db_links.inc.php | 6 +- libraries/db_routines.inc.php | 10 +- libraries/display_change_password.lib.php | 10 +- libraries/display_create_database.lib.php | 8 +- libraries/display_create_table.lib.php | 8 +- libraries/display_export.lib.php | 32 +- libraries/display_import.lib.php | 34 +- libraries/export/htmlword.php | 8 +- libraries/export/latex.php | 2 +- libraries/export/odt.php | 2 +- libraries/export/texytext.php | 8 +- libraries/header.inc.php | 2 +- libraries/header_printview.inc.php | 16 +- libraries/mult_submits.inc.php | 56 +- libraries/navigation_header.inc.php | 22 +- libraries/server_links.inc.php | 26 +- libraries/tbl_links.inc.php | 36 +- libraries/tbl_properties.inc.php | 60 +- libraries/tbl_triggers.lib.php | 8 +- main.php | 58 +- navigation.php | 4 +- pdf_pages.php | 78 +- pdf_schema.php | 18 +- pmd_general.php | 46 +- pmd_pdf.php | 14 +- po/af.po | 2387 +++++++++++--------- po/ar.po | 2367 +++++++++++--------- po/az.po | 2390 +++++++++++--------- po/be.po | 2421 +++++++++++--------- po/be@latin.po | 2401 +++++++++++--------- po/bg.po | 2393 +++++++++++--------- po/bn.po | 2411 +++++++++++--------- po/bs.po | 2391 +++++++++++--------- po/ca.po | 2412 +++++++++++--------- po/cs.po | 2415 +++++++++++--------- po/da.po | 2389 +++++++++++--------- po/de.po | 2408 +++++++++++--------- po/el.po | 2421 +++++++++++--------- po/en_GB.po | 2409 +++++++++++--------- po/es.po | 2423 +++++++++++--------- po/et.po | 2407 +++++++++++--------- po/eu.po | 2396 +++++++++++--------- po/fa.po | 2380 +++++++++++--------- po/fi.po | 2405 +++++++++++--------- po/fr.po | 2417 +++++++++++--------- po/gl.po | 2415 +++++++++++--------- po/he.po | 2372 +++++++++++--------- po/hi.po | 2334 +++++++++++--------- po/hr.po | 2417 +++++++++++--------- po/hu.po | 2425 +++++++++++--------- po/id.po | 2377 +++++++++++--------- po/it.po | 2431 ++++++++++++--------- po/ja.po | 2384 +++++++++++--------- po/ka.po | 2409 +++++++++++--------- po/ko.po | 2377 +++++++++++--------- po/lt.po | 2395 +++++++++++--------- po/lv.po | 2389 +++++++++++--------- po/mk.po | 2388 +++++++++++--------- po/mn.po | 2378 +++++++++++--------- po/ms.po | 2381 +++++++++++--------- po/nb.po | 2400 +++++++++++--------- po/nl.po | 2409 +++++++++++--------- po/phpmyadmin.pot | 2310 +++++++++++--------- po/pl.po | 2415 +++++++++++--------- po/pt.po | 2402 +++++++++++--------- po/pt_BR.po | 2404 +++++++++++--------- po/ro.po | 2409 +++++++++++--------- po/ru.po | 2411 +++++++++++--------- po/si.po | 2409 +++++++++++--------- po/sk.po | 2419 +++++++++++--------- po/sl.po | 2390 +++++++++++--------- po/sq.po | 2391 +++++++++++--------- po/sr.po | 2411 +++++++++++--------- po/sr@latin.po | 2411 +++++++++++--------- po/sv.po | 2423 +++++++++++--------- po/ta.po | 2310 +++++++++++--------- po/te.po | 2343 +++++++++++--------- po/th.po | 2376 +++++++++++--------- po/tr.po | 2417 +++++++++++--------- po/tt.po | 2397 +++++++++++--------- po/uk.po | 2369 +++++++++++--------- po/ur.po | 2310 +++++++++++--------- po/uz.po | 2417 +++++++++++--------- po/uz@latin.po | 2426 +++++++++++--------- po/zh_CN.po | 2382 +++++++++++--------- po/zh_TW.po | 2379 +++++++++++--------- server_collations.php | 10 +- server_databases.php | 56 +- server_engines.php | 10 +- server_export.php | 6 +- server_processlist.php | 24 +- server_replication.php | 2 +- server_status.php | 104 +- server_synchronize.php | 60 +- server_variables.php | 8 +- tbl_change.php | 68 +- tbl_create.php | 12 +- tbl_export.php | 2 +- tbl_get_field.php | 4 +- tbl_indexes.php | 24 +- tbl_operations.php | 82 +- tbl_printview.php | 76 +- tbl_relation.php | 14 +- tbl_row_action.php | 4 +- tbl_structure.php | 182 +- tbl_tracking.php | 148 +- test/theme.php | 20 +- themes.php | 8 +- transformation_overview.php | 12 +- user_password.php | 8 +- view_create.php | 6 +- view_operations.php | 8 +- 126 files changed, 84759 insertions(+), 63298 deletions(-) diff --git a/browse_foreigners.php b/browse_foreigners.php index 69b210efd..16cf7a2f0 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -35,7 +35,7 @@ if (!isset($pos)) { } $foreign_limit = 'LIMIT ' . $pos . ', ' . $per_page . ' '; -if (isset($foreign_navig) && $foreign_navig == $strShowAll) { +if (isset($foreign_navig) && $foreign_navig == __('Show all')) { unset($foreign_limit); } @@ -56,7 +56,7 @@ $showall = ''; if (is_array($foreignData['disp_row'])) { if ($cfg['ShowAll'] && ($foreignData['the_total'] > $per_page)) { - $showall = ''; + $showall = ''; } $session_max_rows = $per_page; @@ -129,7 +129,7 @@ if (is_array($foreignData['disp_row'])) { } } - alert(''); + alert(''); } //]]> @@ -147,10 +147,10 @@ if (is_array($foreignData['disp_row'])) { - + - + @@ -165,11 +165,11 @@ if (is_array($foreignData['disp_row'])) { - ' . $strKeyname . ' - ' . $strDescription . ' + ' . __('Keyname') . ' + ' . __('Description') . ' - ' . $strDescription . ' - ' . $strKeyname . ' + ' . __('Description') . ' + ' . __('Keyname') . ' '; echo '' . $header . '' . "\n" @@ -244,7 +244,7 @@ if (is_array($foreignData['disp_row'])) { ' : '') - .'' @@ -253,7 +253,7 @@ if (is_array($foreignData['disp_row'])) { ' : '') - . '' . $key_ordered_current_val . '' . ($key_ordered_current_equals_data ? '' : ''); @@ -265,7 +265,7 @@ if (is_array($foreignData['disp_row'])) { ' : '') - . '' . $val_ordered_current_val . '' . ($val_ordered_current_equals_data ? '' : ''); @@ -273,7 +273,7 @@ if (is_array($foreignData['disp_row'])) { ' : '') . '' . htmlspecialchars($val_ordered_current_key) . '' . ($val_ordered_current_equals_data ? '' : ''); diff --git a/db_datadict.php b/db_datadict.php index d10477047..a38b35b16 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -46,7 +46,7 @@ if ($cfgRelation['commwork']) { */ if ($comment) { ?> -

+

= 3.23 */ if (!empty($show_comment)) { - echo $strTableComments . ': ' . htmlspecialchars($show_comment) . '

'; + echo __('Table comments') . ': ' . htmlspecialchars($show_comment) . '

'; } /** @@ -171,17 +171,17 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) { ?> - - -*/ ?> - - -*/ ?> + + +*/ ?> + + +*/ ?> ' . $strLinksTo . '' . "\n"; + echo ' ' . "\n"; } - echo ' ' . "\n"; + echo ' ' . "\n"; if ($cfgRelation['mimework']) { echo ' ' . "\n"; } @@ -217,15 +217,15 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) { $type = ' '; } } - $strAttribute = ' '; + $attribute = ' '; if ($binary) { - $strAttribute = 'BINARY'; + $attribute = 'BINARY'; } if ($unsigned) { - $strAttribute = 'UNSIGNED'; + $attribute = 'UNSIGNED'; } if ($zerofill) { - $strAttribute = 'UNSIGNED ZEROFILL'; + $attribute = 'UNSIGNED ZEROFILL'; } if (!isset($row['Default'])) { if ($row['Null'] != 'NO') { @@ -263,8 +263,8 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) { ?> xml:lang="en" dir="ltr"> ->*/ ?> - +>*/ ?> + >*/ ?>
'; +echo '

'; require_once './libraries/footer.inc.php'; ?> diff --git a/db_export.php b/db_export.php index fda601cf6..887e551f1 100644 --- a/db_export.php +++ b/db_export.php @@ -26,7 +26,7 @@ require_once './libraries/db_info.inc.php'; /** * Displays the form */ -$export_page_title = $strViewDumpDB; +$export_page_title = __('View dump (schema) of database'); // exit if no tables in db found if ($num_tables < 1) { @@ -40,9 +40,9 @@ $checkall_url = 'db_export.php?' . '&goto=db_export.php'; $multi_values = '
'; -$multi_values .= '' . $strSelectAll . ' +$multi_values .= '' . __('Select All') . ' / - ' . $strUnselectAll . '
'; + ' . __('Unselect All') . '
'; $multi_values .= ' - + '; } - echo $strDBRename . ':'; + echo __('Rename database to') . ':'; ?> - + @@ -448,16 +448,16 @@ if (!$is_information_schema) { echo ''; } - echo $strDBCopy . ':'; + echo __('Copy database to') . ':'; $drop_clause = 'DROP TABLE / DROP VIEW'; ?>
$strStrucOnly, - 'data' => $strStrucData, - 'dataonly' => $strDataOnly); + 'structure' => __('Structure only'), + 'data' => __('Structure and data'), + 'dataonly' => __('Data only')); PMA_display_html_radio('what', $choices, 'data', true); unset($choices); ?> @@ -465,18 +465,18 @@ if (!$is_information_schema) { id="checkbox_create_database_before_copying" style="vertical-align: middle" checked="checked" />
+
-
+

+

+
style="vertical-align: middle" /> - +
- +
@@ -530,10 +530,10 @@ if (!$is_information_schema) {
- + - : + : - +
- +
- +
- +
- +
- +
'; } - echo ' ' . "\n" + echo ' ' . "\n" . ' ' . "\n" . PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', 'select_db_collation', $db_collation, false, 3) . ' ' . "\n" + . ' value="' . __('Go') . '" style="vertical-align: middle" />' . "\n" . '' . "\n" . '' . "\n"; @@ -642,10 +642,10 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?> echo ''; } - echo $strDisplayPDF; + echo __('Display PDF schema'); ?>: - +
-
+
-
+
-
' . __('Links to') . '' . $strComments . '' . __('Comments') . 'MIME
- - - + + + ' . $strSize . ''; + echo ''; } ?> - + @@ -159,7 +159,7 @@ else { } else { ?> - + - + - +
' . __('Size') . '
- +
- + @@ -263,7 +263,7 @@ function printPage()

+ id="print" value="" onclick="printPage()" /> - + - + ' . $strAscending . '' . "\n"; + echo '' . "\n"; if (isset($Sort[$x]) && $Sort[$x] == 'DESC') { $curSort[$z] = $Sort[$x]; $sel = ' selected="selected"'; @@ -248,7 +248,7 @@ for ($x = 0; $x < $col; $x++) { $sel = ''; } // end if echo ' '; - echo '' . "\n"; + echo '' . "\n"; ?> @@ -261,7 +261,7 @@ for ($x = 0; $x < $col; $x++) { - + - +
::
::
::
::
- : + : - : + : /> @@ -363,11 +363,11 @@ for ($y = 0; $y <= $row; $y++) {
- : + : - : + : /> @@ -432,11 +432,11 @@ for ($y = 0; $y <= $row; $y++) { - + - - +
- : + : - : + : /> @@ -444,11 +444,11 @@ for ($y = 0; $y <= $row; $y++) {
- : + : - : + : /> @@ -504,7 +504,7 @@ for ($y = 0; $y <= $row; $y++) { ?>
:: - : + : /> -   : +   : />
- + -    +   
- : + : /> -   : +   : />
- + -    +   
- : + :  : + :  
@@ -614,30 +614,30 @@ echo PMA_generate_common_hidden_inputs($url_params);
- + $val) { - $strTableListOptions .= ' '; - $strTableListOptions .= '' . "\n"; $numTableListOptions++; } ?>
- +
 
- + %s:'), PMA_getDbLink($db)); ?>