Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gettext conversion

  • Loading branch information...
commit b05a903dc32e99365775b29fa101ce087ba2f64e 1 parent d904da4
@lem9 lem9 authored
Showing with 176 additions and 175 deletions.
  1. +1 −1  import.php
  2. +5 −5 libraries/Message.class.php
  3. +1 −1  libraries/common.inc.php
  4. +2 −2 libraries/export/codegen.php
  5. +9 −9 libraries/export/csv.php
  6. +6 −6 libraries/export/excel.php
  7. +6 −6 libraries/export/htmlword.php
  8. +16 −16 libraries/export/latex.php
  9. +2 −2 libraries/export/mediawiki.php
  10. +4 −4 libraries/export/ods.php
  11. +9 −9 libraries/export/odt.php
  12. +4 −4 libraries/export/pdf.php
  13. +2 −2 libraries/export/php_array.php
  14. +25 −24 libraries/export/sql.php
  15. +6 −6 libraries/export/texytext.php
  16. +4 −4 libraries/export/xls.php
  17. +4 −4 libraries/export/xlsx.php
  18. +9 −9 libraries/export/xml.php
  19. +1 −1  libraries/export/yaml.php
  20. +10 −10 libraries/import/csv.php
  21. +3 −3 libraries/import/docsql.php
  22. +10 −10 libraries/import/ldi.php
  23. +6 −6 libraries/import/ods.php
  24. +4 −4 libraries/import/sql.php
  25. +3 −3 libraries/import/xls.php
  26. +3 −3 libraries/import/xlsx.php
  27. +2 −2 libraries/import/xml.php
  28. +9 −9 libraries/relation.lib.php
  29. +1 −1  libraries/session.inc.php
  30. +1 −1  pmd_display_field.php
  31. +5 −5 pmd_relation_new.php
  32. +1 −1  pmd_relation_upd.php
  33. +1 −1  pmd_save_pos.php
  34. +1 −1  sql.php
View
2  import.php
@@ -423,7 +423,7 @@
if ($timeout_passed) {
$message = PMA_Message::error(__('Script timeout passed, if you want to finish import, please resubmit same file and import will resume.'));
if ($offset == 0 || (isset($original_skip) && $original_skip == $offset)) {
- $message->addString('strTimeoutNothingParsed');
+ $message->addString(__('However on last run no data has been parsed, this usually means phpMyAdmin won't be able to finish this import unless you increase php time limits.'));
}
}
View
10 libraries/Message.class.php
@@ -182,13 +182,13 @@ public function __toString()
* @static
* @uses PMA_Message as returned object
* @uses PMA_Message::SUCCESS
- * @param string $string a localized string e.g. 'strSuccess'
+ * @param string $string a localized string e.g. __('Your SQL query has been executed successfully')
* @return PMA_Message
*/
static public function success($string = '')
{
if (empty($string)) {
- $string = 'strSuccess';
+ $string = __('Your SQL query has been executed successfully');
}
return new PMA_Message($string, PMA_Message::SUCCESS);
@@ -202,13 +202,13 @@ static public function success($string = '')
* @static
* @uses PMA_Message as returned object
* @uses PMA_Message::ERROR
- * @param string $string a localized string e.g. 'strError'
+ * @param string $string a localized string e.g. __('Error')
* @return PMA_Message
*/
static public function error($string = '')
{
if (empty($string)) {
- $string = 'strError';
+ $string = __('Error');
}
return new PMA_Message($string, PMA_Message::ERROR);
@@ -238,7 +238,7 @@ static public function warning($string)
* @static
* @uses PMA_Message as returned object
* @uses PMA_Message::NOTICE
- * @param string $string a localized string e.g. 'strRelationNotWorking'
+ * @param string $string a localized string e.g. __('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.')
* @return PMA_Message
*/
static public function notice($string)
View
2  libraries/common.inc.php
@@ -923,7 +923,7 @@
* - > 5.0.15
*/
if (PMA_MYSQL_INT_VERSION < 50015) {
- PMA_fatalError('strUpgrade', array('MySQL', '5.0.15'));
+ PMA_fatalError(__('You should upgrade to %s %s or later.'), array('MySQL', '5.0.15'));
}
/**
View
4 libraries/export/codegen.php
@@ -34,9 +34,9 @@
'mime_type' => 'text/cs',
'options' => array(
array('type' => 'hidden', 'name' => 'data'),
- array('type' => 'select', 'name' => 'format', 'text' => 'strFormat', 'values' => $CG_FORMATS),
+ array('type' => 'select', 'name' => 'format', 'text' => __('Format'), 'values' => $CG_FORMATS),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
18 libraries/export/csv.php
@@ -14,20 +14,20 @@
if (isset($plugin_list)) {
$plugin_list['csv'] = array(
- 'text' => 'strCSV',
+ 'text' => __('CSV'),
'extension' => 'csv',
'mime_type' => 'text/comma-separated-values',
'options' => array(
- array('type' => 'text', 'name' => 'separator', 'text' => 'strFieldsTerminatedBy'),
- array('type' => 'text', 'name' => 'enclosed', 'text' => 'strFieldsEnclosedBy'),
- array('type' => 'text', 'name' => 'escaped', 'text' => 'strFieldsEscapedBy'),
- array('type' => 'text', 'name' => 'terminated', 'text' => 'strLinesTerminatedBy'),
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
- array('type' => 'bool', 'name' => 'removeCRLF', 'text' => 'strRemoveCRLF'),
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'text', 'name' => 'separator', 'text' => __('Fields terminated by')),
+ array('type' => 'text', 'name' => 'enclosed', 'text' => __('Fields enclosed by')),
+ array('type' => 'text', 'name' => 'escaped', 'text' => __('Fields escaped by')),
+ array('type' => 'text', 'name' => 'terminated', 'text' => __('Lines terminated by')),
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')),
+ array('type' => 'bool', 'name' => 'removeCRLF', 'text' => __('Remove CRLF characters within fields')),
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row')),
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
12 libraries/export/excel.php
@@ -15,13 +15,13 @@
*/
if (isset($plugin_list)) {
$plugin_list['excel'] = array(
- 'text' => 'strStrucExcelCSV',
+ 'text' => __('CSV for MS Excel'),
'extension' => 'csv',
'mime_type' => 'text/comma-separated-values',
'options' => array(
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
- array('type' => 'bool', 'name' => 'removeCRLF', 'text' => 'strRemoveCRLF'),
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')),
+ array('type' => 'bool', 'name' => 'removeCRLF', 'text' => __('Remove CRLF characters within fields')),
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row')),
array(
'type' => 'select',
'name' => 'edition',
@@ -29,10 +29,10 @@
'win' => 'Windows',
'mac_excel2003' => 'Excel 2003 / Macintosh',
'mac_excel2008' => 'Excel 2008 / Macintosh'),
- 'text' => 'strExcelEdition'),
+ 'text' => __('Excel edition')),
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
/* Everything rest is coded in csv plugin */
View
12 libraries/export/htmlword.php
@@ -15,18 +15,18 @@
*/
if (isset($plugin_list)) {
$plugin_list['htmlword'] = array(
- 'text' => 'strHTMLWord',
+ 'text' => __('Microsoft Word 2000'),
'extension' => 'doc',
'mime_type' => 'application/vnd.ms-word',
'force_file' => true,
'options' => array(
- array('type' => 'bool', 'name' => 'structure', 'text' => 'strStructure', 'force' => 'data'),
- array('type' => 'bgroup', 'name' => 'data', 'text' => 'strData', 'force' => 'structure'),
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'bool', 'name' => 'structure', 'text' => __('Structure'), 'force' => 'data'),
+ array('type' => 'bgroup', 'name' => 'data', 'text' => __('Data'), 'force' => 'structure'),
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')),
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row')),
array('type' => 'egroup'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
32 libraries/export/latex.php
@@ -19,50 +19,50 @@
$hide_structure = true;
}
$plugin_list['latex'] = array(
- 'text' => 'strLaTeX',
+ 'text' => __('LaTeX'),
'extension' => 'tex',
'mime_type' => 'application/x-tex',
'options' => array(
- array('type' => 'bool', 'name' => 'caption', 'text' => 'strLatexIncludeCaption'),
+ array('type' => 'bool', 'name' => 'caption', 'text' => __('Include table caption')),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* Structure options */
if (!$hide_structure) {
$plugin_list['latex']['options'][] =
- array('type' => 'bgroup', 'name' => 'structure', 'text' => 'strStructure', 'force' => 'data');
+ array('type' => 'bgroup', 'name' => 'structure', 'text' => __('Structure'), 'force' => 'data');
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'structure_caption', 'text' => 'strLatexCaption');
+ array('type' => 'text', 'name' => 'structure_caption', 'text' => __('Table caption'));
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'structure_continued_caption', 'text' => 'strLatexContinuedCaption');
+ array('type' => 'text', 'name' => 'structure_continued_caption', 'text' => __('Continued table caption'));
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'structure_label', 'text' => 'strLatexLabel');
+ array('type' => 'text', 'name' => 'structure_label', 'text' => __('Label key'));
if (!empty($GLOBALS['cfgRelation']['relation'])) {
$plugin_list['latex']['options'][] =
- array('type' => 'bool', 'name' => 'relation', 'text' => 'strRelations');
+ array('type' => 'bool', 'name' => 'relation', 'text' => __('Relations'));
}
$plugin_list['latex']['options'][] =
- array('type' => 'bool', 'name' => 'comments', 'text' => 'strComments');
+ array('type' => 'bool', 'name' => 'comments', 'text' => __('Comments'));
if (!empty($GLOBALS['cfgRelation']['mimework'])) {
$plugin_list['latex']['options'][] =
- array('type' => 'bool', 'name' => 'mime', 'text' => 'strMIME_MIMEtype');
+ array('type' => 'bool', 'name' => 'mime', 'text' => __('MIME type'));
}
$plugin_list['latex']['options'][] =
array('type' => 'egroup');
}
/* Data */
$plugin_list['latex']['options'][] =
- array('type' => 'bgroup', 'name' => 'data', 'text' => 'strData', 'force' => 'structure');
+ array('type' => 'bgroup', 'name' => 'data', 'text' => __('Data'), 'force' => 'structure');
$plugin_list['latex']['options'][] =
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames');
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row'));
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'data_caption', 'text' => 'strLatexCaption');
+ array('type' => 'text', 'name' => 'data_caption', 'text' => __('Table caption'));
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'data_continued_caption', 'text' => 'strLatexContinuedCaption');
+ array('type' => 'text', 'name' => 'data_continued_caption', 'text' => __('Continued table caption'));
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'data_label', 'text' => 'strLatexLabel');
+ array('type' => 'text', 'name' => 'data_label', 'text' => __('Label key'));
$plugin_list['latex']['options'][] =
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy');
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by'));
$plugin_list['latex']['options'][] =
array('type' => 'egroup');
} else {
View
4 libraries/export/mediawiki.php
@@ -12,13 +12,13 @@
if (isset($plugin_list)) {
$plugin_list['mediawiki'] = array(
- 'text' => 'strMediaWiki',
+ 'text' => __('MediaWiki Table'),
'extension' => 'txt',
'mime_type' => 'text/plain',
'options' => array(
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
8 libraries/export/ods.php
@@ -15,16 +15,16 @@
*/
if (isset($plugin_list)) {
$plugin_list['ods'] = array(
- 'text' => 'strOpenDocumentSpreadsheet',
+ 'text' => __('Open Document Spreadsheet'),
'extension' => 'ods',
'mime_type' => 'application/vnd.oasis.opendocument.spreadsheet',
'force_file' => true,
'options' => array(
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')),
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row')),
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
18 libraries/export/odt.php
@@ -19,37 +19,37 @@
$hide_structure = true;
}
$plugin_list['odt'] = array(
- 'text' => 'strOpenDocumentText',
+ 'text' => __('Open Document Text'),
'extension' => 'odt',
'mime_type' => 'application/vnd.oasis.opendocument.text',
'force_file' => true,
'options' => array(), /* Filled later */
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* Structure options */
if (!$hide_structure) {
$plugin_list['odt']['options'][] =
- array('type' => 'bgroup', 'name' => 'structure', 'text' => 'strStructure', 'force' => 'data');
+ array('type' => 'bgroup', 'name' => 'structure', 'text' => __('Structure'), 'force' => 'data');
if (!empty($GLOBALS['cfgRelation']['relation'])) {
$plugin_list['odt']['options'][] =
- array('type' => 'bool', 'name' => 'relation', 'text' => 'strRelations');
+ array('type' => 'bool', 'name' => 'relation', 'text' => __('Relations'));
}
$plugin_list['odt']['options'][] =
- array('type' => 'bool', 'name' => 'comments', 'text' => 'strComments');
+ array('type' => 'bool', 'name' => 'comments', 'text' => __('Comments'));
if (!empty($GLOBALS['cfgRelation']['mimework'])) {
$plugin_list['odt']['options'][] =
- array('type' => 'bool', 'name' => 'mime', 'text' => 'strMIME_MIMEtype');
+ array('type' => 'bool', 'name' => 'mime', 'text' => __('MIME type'));
}
$plugin_list['odt']['options'][] =
array('type' => 'egroup');
}
/* Data */
$plugin_list['odt']['options'][] =
- array('type' => 'bgroup', 'name' => 'data', 'text' => 'strData', 'force' => 'structure');
+ array('type' => 'bgroup', 'name' => 'data', 'text' => __('Data'), 'force' => 'structure');
$plugin_list['odt']['options'][] =
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames');
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row'));
$plugin_list['odt']['options'][] =
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy');
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by'));
$plugin_list['odt']['options'][] =
array('type' => 'egroup');
} else {
View
8 libraries/export/pdf.php
@@ -15,16 +15,16 @@
*/
if (isset($plugin_list)) {
$plugin_list['pdf'] = array(
- 'text' => 'strPDF',
+ 'text' => __('PDF'),
'extension' => 'pdf',
'mime_type' => 'application/pdf',
'force_file' => true,
'options' => array(
- array('type' => 'message_only', 'name' => 'explanation', 'text' => 'strPDFReportExplanation'),
- array('type' => 'text', 'name' => 'report_title', 'text' => 'strPDFReportTitle'),
+ array('type' => 'message_only', 'name' => 'explanation', 'text' => __('(Generates a report containing the data of a single table)')),
+ array('type' => 'text', 'name' => 'report_title', 'text' => __('Report title')),
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
4 libraries/export/php_array.php
@@ -13,7 +13,7 @@
*/
if (isset($plugin_list)) {
$plugin_list['php_array'] = array(
- 'text' => 'strPhpArray',
+ 'text' => __('PHP array'),
'extension' => 'php',
'mime_type' => 'text/plain',
'options' => array(
@@ -22,7 +22,7 @@
'name' => 'data',
),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
49 libraries/export/sql.php
@@ -22,16 +22,17 @@
}
if (!$hide_sql) {
$plugin_list['sql'] = array(
- 'text' => 'strSQL',
+ 'text' => __('SQL'),
'extension' => 'sql',
'mime_type' => 'text/x-sql',
'options' => array(
- array('type' => 'text', 'name' => 'header_comment', 'text' => 'strAddHeaderComment'),
- array('type' => 'bool', 'name' => 'include_comments', 'text' => 'strComments'),
- array('type' => 'bool', 'name' => 'use_transaction', 'text' => 'strEncloseInTransaction'),
- array('type' => 'bool', 'name' => 'disable_fk', 'text' => 'strDisableForeignChecks'),
+ array('type' => 'text', 'name' => 'header_comment', 'text' => __('Add custom comment into header (
+ splits lines)')),
+ array('type' => 'bool', 'name' => 'include_comments', 'text' => __('Comments')),
+ array('type' => 'bool', 'name' => 'use_transaction', 'text' => __('Enclose export in a transaction')),
+ array('type' => 'bool', 'name' => 'disable_fk', 'text' => __('Disable foreign key checks')),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
$compats = PMA_DBI_getCompatibilities();
if (count($compats) > 0) {
@@ -40,14 +41,14 @@
$values[$val] = $val;
}
$plugin_list['sql']['options'][] =
- array('type' => 'select', 'name' => 'compatibility', 'text' => 'strSQLCompatibility', 'values' => $values, 'doc' => array('manual_MySQL_Database_Administration', 'Server_SQL_mode'));
+ array('type' => 'select', 'name' => 'compatibility', 'text' => __('SQL compatibility mode'), 'values' => $values, 'doc' => array('manual_MySQL_Database_Administration', 'Server_SQL_mode'));
unset($values);
}
/* Server export options */
if ($plugin_param['export_type'] == 'server') {
$plugin_list['sql']['options'][] =
- array('type' => 'bgroup', 'text' => 'strDatabaseExportOptions');
+ array('type' => 'bgroup', 'text' => __('Database export options'));
$plugin_list['sql']['options'][] =
array('type' => 'bool', 'name' => 'drop_database', 'text' => sprintf(__('Add %s'), 'DROP DATABASE'));
$plugin_list['sql']['options'][] =
@@ -57,7 +58,7 @@
/* Structure options */
if (!$hide_structure) {
$plugin_list['sql']['options'][] =
- array('type' => 'bgroup', 'name' => 'structure', 'text' => 'strStructure', 'force' => 'data');
+ array('type' => 'bgroup', 'name' => 'structure', 'text' => __('Structure'), 'force' => 'data');
if ($plugin_param['export_type'] == 'table') {
if (PMA_Table::isView($GLOBALS['db'], $GLOBALS['table'])) {
$drop_clause = 'DROP VIEW';
@@ -75,24 +76,24 @@
$plugin_list['sql']['options'][] =
array('type' => 'bool', 'name' => 'if_not_exists', 'text' => sprintf(__('Add %s'), 'IF NOT EXISTS'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'auto_increment', 'text' => 'strAddAutoIncrement');
+ array('type' => 'bool', 'name' => 'auto_increment', 'text' => __('Add AUTO_INCREMENT value'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'backquotes', 'text' => 'strUseBackquotes');
+ array('type' => 'bool', 'name' => 'backquotes', 'text' => __('Enclose table and field names with backquotes'));
$plugin_list['sql']['options'][] =
array('type' => 'bool', 'name' => 'procedure_function', 'text' => sprintf(__('Add %s'), 'CREATE PROCEDURE / FUNCTION' . (PMA_MYSQL_INT_VERSION > 50100 ? ' / EVENT' : '')));
/* MIME stuff etc. */
$plugin_list['sql']['options'][] =
- array('type' => 'bgroup', 'text' => 'strAddIntoComments');
+ array('type' => 'bgroup', 'text' => __('Add into comments'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'dates', 'text' => 'strCreationDates');
+ array('type' => 'bool', 'name' => 'dates', 'text' => __('Creation/Update/Check dates'));
if (!empty($GLOBALS['cfgRelation']['relation'])) {
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'relation', 'text' => 'strRelations');
+ array('type' => 'bool', 'name' => 'relation', 'text' => __('Relations'));
}
if (!empty($GLOBALS['cfgRelation']['mimework'])) {
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'mime', 'text' => 'strMIME_MIMEtype');
+ array('type' => 'bool', 'name' => 'mime', 'text' => __('MIME type'));
}
$plugin_list['sql']['options'][] =
array('type' => 'egroup');
@@ -103,23 +104,23 @@
/* Data */
$plugin_list['sql']['options'][] =
- array('type' => 'bgroup', 'name' => 'data', 'text' => 'strData', 'force' => 'structure');
+ array('type' => 'bgroup', 'name' => 'data', 'text' => __('Data'), 'force' => 'structure');
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strCompleteInserts', 'doc' => array('programs', 'mysqldump', 'option_mysqldump_complete-insert-option'));
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Complete inserts'), 'doc' => array('programs', 'mysqldump', 'option_mysqldump_complete-insert-option'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'extended', 'text' => 'strExtendedInserts', 'doc' => array('programs', 'mysqldump', 'option_mysqldump_extended-insert-option'));
+ array('type' => 'bool', 'name' => 'extended', 'text' => __('Extended inserts'), 'doc' => array('programs', 'mysqldump', 'option_mysqldump_extended-insert-option'));
$plugin_list['sql']['options'][] =
- array('type' => 'text', 'name' => 'max_query_size', 'text' => 'strMaximalQueryLength');
+ array('type' => 'text', 'name' => 'max_query_size', 'text' => __('Maximal length of created query'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'delayed', 'text' => 'strDelayedInserts');
+ array('type' => 'bool', 'name' => 'delayed', 'text' => __('Use delayed inserts'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'ignore', 'text' => 'strIgnoreInserts');
+ array('type' => 'bool', 'name' => 'ignore', 'text' => __('Use ignore inserts'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'hex_for_blob', 'text' => 'strHexForBLOB');
+ array('type' => 'bool', 'name' => 'hex_for_blob', 'text' => __('Use hexadecimal for BLOB'));
$plugin_list['sql']['options'][] =
- array('type' => 'bool', 'name' => 'utc_time', 'text' => 'strSQLExportUTC');
+ array('type' => 'bool', 'name' => 'utc_time', 'text' => __('Export time in UTC'));
$plugin_list['sql']['options'][] =
- array('type' => 'select', 'name' => 'type', 'text' => 'strSQLExportType', 'values' => array('INSERT' => 'INSERT', 'UPDATE' => 'UPDATE', 'REPLACE' => 'REPLACE'));
+ array('type' => 'select', 'name' => 'type', 'text' => __('Export type'), 'values' => array('INSERT' => 'INSERT', 'UPDATE' => 'UPDATE', 'REPLACE' => 'REPLACE'));
$plugin_list['sql']['options'][] =
array('type' => 'egroup');
}
View
12 libraries/export/texytext.php
@@ -14,27 +14,27 @@
*/
if (isset($plugin_list)) {
$plugin_list['texytext'] = array(
- 'text' => 'strTexyText',
+ 'text' => __('Texy! text'),
'extension' => 'txt',
'mime_type' => 'text/plain',
'options' => array(
array('type' => 'bool',
'name' => 'structure',
- 'text' => 'strStructure',
+ 'text' => __('Structure'),
'force' => 'data'),
array('type' => 'bgroup',
'name' => 'data',
- 'text' => 'strData',
+ 'text' => __('Data'),
'force' => 'structure'),
array('type' => 'text',
'name' => 'null',
- 'text' => 'strReplaceNULLBy'),
+ 'text' => __('Replace NULL by')),
array('type' => 'bool',
'name' => 'columns',
- 'text' => 'strPutColNames'),
+ 'text' => __('Put fields names in the first row')),
array('type' => 'egroup'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
8 libraries/export/xls.php
@@ -15,16 +15,16 @@
*/
if (isset($plugin_list)) {
$plugin_list['xls'] = array(
- 'text' => 'strImportXLS',
+ 'text' => __('Excel 97-2003 XLS Workbook'),
'extension' => 'xls',
'mime_type' => 'application/vnd.ms-excel',
'force_file' => true,
'options' => array(
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')),
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row')),
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
8 libraries/export/xlsx.php
@@ -15,16 +15,16 @@
*/
if (isset($plugin_list)) {
$plugin_list['xlsx'] = array(
- 'text' => 'strImportXLSX',
+ 'text' => __('Excel 2007 XLSX Workbook'),
'extension' => 'xlsx',
'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'force_file' => true,
'options' => array(
- array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
- array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')),
+ array('type' => 'bool', 'name' => 'columns', 'text' => __('Put fields names in the first row')),
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
18 libraries/export/xml.php
@@ -15,34 +15,34 @@
if (isset($plugin_list)) {
$plugin_list['xml'] = array(
- 'text' => 'strXML',
+ 'text' => __('XML'),
'extension' => 'xml',
'mime_type' => 'text/xml',
'options' => array(
array('type' => 'hidden', 'name' => 'data'),
),
- 'options_text' => 'strOptions'
+ 'options_text' => __('Options')
);
/* Export structure */
$plugin_list['xml']['options'][] =
- array('type' => 'bgroup', 'name' => 'export_struc', 'text' => 'strXMLExportStructs');
+ array('type' => 'bgroup', 'name' => 'export_struc', 'text' => __('Export Structure Schemas (recommended)'));
$plugin_list['xml']['options'][] =
- array('type' => 'bool', 'name' => 'export_functions', 'text' => 'strXMLExportFunctions');
+ array('type' => 'bool', 'name' => 'export_functions', 'text' => __('Export functions'));
$plugin_list['xml']['options'][] =
- array('type' => 'bool', 'name' => 'export_procedures', 'text' => 'strXMLExportProcedures');
+ array('type' => 'bool', 'name' => 'export_procedures', 'text' => __('Export procedures'));
$plugin_list['xml']['options'][] =
- array('type' => 'bool', 'name' => 'export_tables', 'text' => 'strXMLExportTables');
+ array('type' => 'bool', 'name' => 'export_tables', 'text' => __('Export tables'));
$plugin_list['xml']['options'][] =
- array('type' => 'bool', 'name' => 'export_triggers', 'text' => 'strXMLExportTriggers');
+ array('type' => 'bool', 'name' => 'export_triggers', 'text' => __('Export triggers'));
$plugin_list['xml']['options'][] =
- array('type' => 'bool', 'name' => 'export_views', 'text' => 'strXMLExportViews');
+ array('type' => 'bool', 'name' => 'export_views', 'text' => __('Export views'));
$plugin_list['xml']['options'][] =
array('type' => 'egroup');
/* Data */
$plugin_list['xml']['options'][] =
- array('type' => 'bool', 'name' => 'export_contents', 'text' => 'strXMLExportContents');
+ array('type' => 'bool', 'name' => 'export_contents', 'text' => __('Export contents'));
} else {
/**
View
2  libraries/export/yaml.php
@@ -25,7 +25,7 @@
'name' => 'data',
),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
} else {
View
20 libraries/import/csv.php
@@ -19,25 +19,25 @@
if (isset($plugin_list)) {
$plugin_list['csv'] = array(
- 'text' => 'strCSV',
+ 'text' => __('CSV'),
'extension' => 'csv',
'options' => array(
- array('type' => 'bool', 'name' => 'replace', 'text' => 'strReplaceTable'),
- array('type' => 'bool', 'name' => 'ignore', 'text' => 'strIgnoreDuplicates'),
- array('type' => 'text', 'name' => 'terminated', 'text' => 'strFieldsTerminatedBy', 'size' => 2, 'len' => 2),
- array('type' => 'text', 'name' => 'enclosed', 'text' => 'strFieldsEnclosedBy', 'size' => 2, 'len' => 2),
- array('type' => 'text', 'name' => 'escaped', 'text' => 'strFieldsEscapedBy', 'size' => 2, 'len' => 2),
- array('type' => 'text', 'name' => 'new_line', 'text' => 'strLinesTerminatedBy', 'size' => 2),
+ array('type' => 'bool', 'name' => 'replace', 'text' => __('Replace table data with file')),
+ array('type' => 'bool', 'name' => 'ignore', 'text' => __('Ignore duplicate rows')),
+ array('type' => 'text', 'name' => 'terminated', 'text' => __('Fields terminated by'), 'size' => 2, 'len' => 2),
+ array('type' => 'text', 'name' => 'enclosed', 'text' => __('Fields enclosed by'), 'size' => 2, 'len' => 2),
+ array('type' => 'text', 'name' => 'escaped', 'text' => __('Fields escaped by'), 'size' => 2, 'len' => 2),
+ array('type' => 'text', 'name' => 'new_line', 'text' => __('Lines terminated by'), 'size' => 2),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
if ($plugin_param !== 'table') {
$plugin_list['csv']['options'][] =
- array('type' => 'bool', 'name' => 'col_names', 'text' => 'strImportColNames');
+ array('type' => 'bool', 'name' => 'col_names', 'text' => __('Column names in first row'));
} else {
$plugin_list['csv']['options'][] =
- array('type' => 'text', 'name' => 'columns', 'text' => 'strColumnNames');
+ array('type' => 'text', 'name' => 'columns', 'text' => __('Column names'));
}
/* We do not define function when plugin is just queried for information above */
View
6 libraries/import/docsql.php
@@ -26,12 +26,12 @@
if (isset($plugin_list)) {
$plugin_list['docsql'] = array( // set name of your plugin
- 'text' => 'strDocSQL', // text to be displayed as choice
+ 'text' => __('DocSQL'), // text to be displayed as choice
'extension' => '', // extension this plugin can handle
'options' => array( // array of options for your plugin (optional)
- array('type' => 'text', 'name' => 'table', 'text' => 'strTableName'),
+ array('type' => 'text', 'name' => 'table', 'text' => __('Table name')),
),
- 'options_text' => 'strOptions', // text to describe plugin options (must be set if options are used)
+ 'options_text' => __('Options'), // text to describe plugin options (must be set if options are used)
);
/* We do not define function when plugin is just queried for information above */
return;
View
20 libraries/import/ldi.php
@@ -32,19 +32,19 @@
unset($result);
}
$plugin_list['ldi'] = array(
- 'text' => 'strLDI',
+ 'text' => __('CSV using LOAD DATA'),
'extension' => 'ldi', // This is nonsense, however we want to default to our parser for csv
'options' => array(
- array('type' => 'bool', 'name' => 'replace', 'text' => 'strReplaceTable'),
- array('type' => 'bool', 'name' => 'ignore', 'text' => 'strIgnoreDuplicates'),
- array('type' => 'text', 'name' => 'terminated', 'text' => 'strFieldsTerminatedBy', 'size' => 2, 'len' => 2),
- array('type' => 'text', 'name' => 'enclosed', 'text' => 'strFieldsEnclosedBy', 'size' => 2, 'len' => 2),
- array('type' => 'text', 'name' => 'escaped', 'text' => 'strFieldsEscapedBy', 'size' => 2, 'len' => 2),
- array('type' => 'text', 'name' => 'new_line', 'text' => 'strLinesTerminatedBy', 'size' => 2),
- array('type' => 'text', 'name' => 'columns', 'text' => 'strColumnNames'),
- array('type' => 'bool', 'name' => 'local_option', 'text' => 'strLDILocal'),
+ array('type' => 'bool', 'name' => 'replace', 'text' => __('Replace table data with file')),
+ array('type' => 'bool', 'name' => 'ignore', 'text' => __('Ignore duplicate rows')),
+ array('type' => 'text', 'name' => 'terminated', 'text' => __('Fields terminated by'), 'size' => 2, 'len' => 2),
+ array('type' => 'text', 'name' => 'enclosed', 'text' => __('Fields enclosed by'), 'size' => 2, 'len' => 2),
+ array('type' => 'text', 'name' => 'escaped', 'text' => __('Fields escaped by'), 'size' => 2, 'len' => 2),
+ array('type' => 'text', 'name' => 'new_line', 'text' => __('Lines terminated by'), 'size' => 2),
+ array('type' => 'text', 'name' => 'columns', 'text' => __('Column names')),
+ array('type' => 'bool', 'name' => 'local_option', 'text' => __('Use LOCAL keyword')),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* We do not define function when plugin is just queried for information above */
return;
View
12 libraries/import/ods.php
@@ -19,15 +19,15 @@
if (isset($plugin_list)) {
$plugin_list['ods'] = array(
- 'text' => 'strImportODS',
+ 'text' => __('Open Document Spreadsheet'),
'extension' => 'ods',
'options' => array(
- array('type' => 'bool', 'name' => 'col_names', 'text' => 'strImportColNames'),
- array('type' => 'bool', 'name' => 'empty_rows', 'text' => 'strImportEmptyRows'),
- array('type' => 'bool', 'name' => 'recognize_percentages', 'text' => 'strImportODSPercents'),
- array('type' => 'bool', 'name' => 'recognize_currency', 'text' => 'strImportODSCurrency'),
+ array('type' => 'bool', 'name' => 'col_names', 'text' => __('Column names in first row')),
+ array('type' => 'bool', 'name' => 'empty_rows', 'text' => __('Do not import empty rows')),
+ array('type' => 'bool', 'name' => 'recognize_percentages', 'text' => __('Import percentages as proper decimals (12.00% to .12)')),
+ array('type' => 'bool', 'name' => 'recognize_currency', 'text' => __('Import currencies (.00 to 5.00)')),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* We do not define function when plugin is just queried for information above */
return;
View
8 libraries/import/sql.php
@@ -15,9 +15,9 @@
*/
if (isset($plugin_list)) {
$plugin_list['sql'] = array(
- 'text' => 'strSQL',
+ 'text' => __('SQL'),
'extension' => 'sql',
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
$compats = PMA_DBI_getCompatibilities();
if (count($compats) > 0) {
@@ -29,7 +29,7 @@
array(
'type' => 'select',
'name' => 'compatibility',
- 'text' => 'strSQLCompatibility',
+ 'text' => __('SQL compatibility mode'),
'values' => $values,
'doc' => array(
'manual_MySQL_Database_Administration',
@@ -39,7 +39,7 @@
array(
'type' => 'bool',
'name' => 'no_auto_value_on_zero',
- 'text' => 'strDoNotAutoIncrementZeroValues',
+ 'text' => __('Do not use AUTO_INCREMENT for zero values'),
'doc' => array(
'manual_MySQL_Database_Administration',
'Server_SQL_mode',
View
6 libraries/import/xls.php
@@ -18,12 +18,12 @@
if (isset($plugin_list)) {
$plugin_list['xls'] = array(
- 'text' => 'strImportXLS',
+ 'text' => __('Excel 97-2003 XLS Workbook'),
'extension' => 'xls',
'options' => array(
- array('type' => 'bool', 'name' => 'col_names', 'text' => 'strImportColNames'),
+ array('type' => 'bool', 'name' => 'col_names', 'text' => __('Column names in first row')),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* We do not define function when plugin is just queried for information above */
return;
View
6 libraries/import/xlsx.php
@@ -18,12 +18,12 @@
if (isset($plugin_list)) {
$plugin_list['xlsx'] = array(
- 'text' => 'strImportXLSX',
+ 'text' => __('Excel 2007 XLSX Workbook'),
'extension' => 'xlsx',
'options' => array(
- array('type' => 'bool', 'name' => 'col_names', 'text' => 'strImportColNames'),
+ array('type' => 'bool', 'name' => 'col_names', 'text' => __('Column names in first row')),
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* We do not define function when plugin is just queried for information above */
return;
View
4 libraries/import/xml.php
@@ -18,11 +18,11 @@
if (isset($plugin_list)) {
$plugin_list['xml'] = array(
- 'text' => 'strXML',
+ 'text' => __('XML'),
'extension' => 'xml',
'options' => array(
),
- 'options_text' => 'strOptions',
+ 'options_text' => __('Options'),
);
/* We do not define function when plugin is just queried for information above */
return;
View
18 libraries/relation.lib.php
@@ -116,23 +116,23 @@ function PMA_printRelationsParamDiagnostic($cfgRelation)
PMA_printDiagMessageForParameter('relation', isset($cfgRelation['relation']), $messages, 'relation');
- PMA_printDiagMessageForFeature('strGeneralRelationFeat', 'relwork', $messages);
+ PMA_printDiagMessageForFeature(__('General relation features'), 'relwork', $messages);
PMA_printDiagMessageForParameter('table_info', isset($cfgRelation['table_info']), $messages, 'table_info');
- PMA_printDiagMessageForFeature('strDisplayFeat', 'displaywork', $messages);
+ PMA_printDiagMessageForFeature(__('Display Features'), 'displaywork', $messages);
PMA_printDiagMessageForParameter('table_coords', isset($cfgRelation['table_coords']), $messages, 'table_coords');
PMA_printDiagMessageForParameter('pdf_pages', isset($cfgRelation['pdf_pages']), $messages, 'table_coords');
- PMA_printDiagMessageForFeature('strCreatePdfFeat', 'pdfwork', $messages);
+ PMA_printDiagMessageForFeature(__('Creation of PDFs'), 'pdfwork', $messages);
PMA_printDiagMessageForParameter('column_info', isset($cfgRelation['column_info']), $messages, 'col_com');
- PMA_printDiagMessageForFeature('strColComFeat', 'commwork', $messages, false);
+ PMA_printDiagMessageForFeature(__('Displaying Column Comments'), 'commwork', $messages, false);
- PMA_printDiagMessageForFeature('strMIME_transformation', 'mimework', $messages);
+ PMA_printDiagMessageForFeature(__('Browser transformation'), 'mimework', $messages);
if ($cfgRelation['commwork'] && ! $cfgRelation['mimework']) {
echo '<tr><td colspan=2 align="left">' . __('Please see the documentation on how to update your column_comments table') . '</td></tr>' . "\n";
@@ -140,19 +140,19 @@ function PMA_printRelationsParamDiagnostic($cfgRelation)
PMA_printDiagMessageForParameter('bookmarktable', isset($cfgRelation['bookmark']), $messages, 'bookmark');
- PMA_printDiagMessageForFeature('strBookmarkQuery', 'bookmarkwork', $messages);
+ PMA_printDiagMessageForFeature(__('Bookmarked SQL query'), 'bookmarkwork', $messages);
PMA_printDiagMessageForParameter('history', isset($cfgRelation['history']), $messages, 'history');
- PMA_printDiagMessageForFeature('strQuerySQLHistory', 'historywork', $messages);
+ PMA_printDiagMessageForFeature(__('SQL history'), 'historywork', $messages);
PMA_printDiagMessageForParameter('designer_coords', isset($cfgRelation['designer_coords']), $messages, 'designer_coords');
- PMA_printDiagMessageForFeature('strDesigner', 'designerwork', $messages);
+ PMA_printDiagMessageForFeature(__('Designer'), 'designerwork', $messages);
PMA_printDiagMessageForParameter('tracking', isset($cfgRelation['tracking']), $messages, 'tracking');
- PMA_printDiagMessageForFeature('strTracking', 'trackingwork', $messages);
+ PMA_printDiagMessageForFeature(__('Tracking'), 'trackingwork', $messages);
echo '</table>' . "\n";
View
2  libraries/session.inc.php
@@ -81,7 +81,7 @@
$r = session_start();
if ($r !== true || $orig_error_count != $GLOBALS['error_handler']->countErrors()) {
setcookie($session_name, '', 1);
- PMA_fatalError('strSessionStartupErrorGeneral');
+ PMA_fatalError(__('Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.'));
}
unset($orig_error_count);
} else {
View
2  pmd_display_field.php
@@ -45,5 +45,5 @@
header("Content-Type: text/xml; charset=utf-8");
header("Cache-Control: no-cache");
-die("<root act='save_pos' return='strModifications'></root>");
+die("<root act='save_pos' return=__('Modifications have been saved')></root>");
?>
View
10 pmd_relation_new.php
@@ -28,7 +28,7 @@
$existrel_foreign = PMA_getForeigners($db, $T2, '', 'foreign');
if (isset($existrel_foreign[$F2])
&& isset($existrel_foreign[$F2]['constraint'])) {
- PMD_return_new(0,'strErrorRelationExists');
+ PMD_return_new(0,__('Error: relation already exists.'));
}
// note: in InnoDB, the index does not requires to be on a PRIMARY
// or UNIQUE key
@@ -60,8 +60,8 @@
if ($on_update != 'nix') {
$upd_query .= ' ON UPDATE ' . $on_update;
}
- PMA_DBI_try_query($upd_query) or PMD_return_new(0,'strErrorRelationAdded');
- PMD_return_new(1,'strForeignKeyRelationAdded');
+ PMA_DBI_try_query($upd_query) or PMD_return_new(0,__('Error: Relation not added.'));
+ PMD_return_new(1,__('FOREIGN KEY relation added'));
}
// internal (pmadb) relation
@@ -83,9 +83,9 @@
. '\'' . PMA_sqlAddslashes($F1) . '\')';
if (PMA_query_as_controluser($q , false, PMA_DBI_QUERY_STORE)) {
- PMD_return_new(1, 'strInternalRelationAdded');
+ PMD_return_new(1, __('Internal relation added'));
} else {
- PMD_return_new(0, 'strErrorRelationAdded');
+ PMD_return_new(0, __('Error: Relation not added.'));
}
}
}
View
2  pmd_relation_upd.php
@@ -46,7 +46,7 @@
. ' AND foreign_field = \'' . PMA_sqlAddslashes($F1) . '\''
, FALSE, PMA_DBI_QUERY_STORE);
}
-PMD_return_upd(1, 'strRelationDeleted');
+PMD_return_upd(1, __('Relation deleted'));
function PMD_return_upd($b,$ret)
{
View
2  pmd_save_pos.php
@@ -51,7 +51,7 @@ function PMD_err_sav() {
header("Content-Type: text/xml; charset=utf-8");
header("Cache-Control: no-cache");
?>
-<root act='save_pos' return='<?php echo 'strModifications'; ?>'></root>
+<root act='save_pos' return='<?php echo __('Modifications have been saved'); ?>'></root>
<?php
}
?>
View
2  sql.php
@@ -623,7 +623,7 @@
}
if (isset($label)) {
- $message = PMA_message::success('strBookmarkCreated');
+ $message = PMA_message::success(__('Bookmark %s created'));
$message->addParam($label);
$message->display();
}
Please sign in to comment.
Something went wrong with that request. Please try again.