gettext conversion

This commit is contained in:
Marc Delisle
2010-05-09 08:03:11 -04:00
parent 78bb9c71c0
commit 2b4a5e68ee
3 changed files with 17 additions and 18 deletions

View File

@@ -2342,7 +2342,7 @@ function PMA_userDir($dir)
* *
* @uses $cfg['DefaultTabDatabase'] * @uses $cfg['DefaultTabDatabase']
* @uses $GLOBALS['db'] * @uses $GLOBALS['db']
* @uses $GLOBALS['strJumpToDB'] * @uses __('Jump to database "%s".')
* @uses PMA_generate_common_url() * @uses PMA_generate_common_url()
* @uses PMA_unescape_mysql_wildcards() * @uses PMA_unescape_mysql_wildcards()
* @uses strlen() * @uses strlen()
@@ -2363,7 +2363,7 @@ function PMA_getDbLink($database = null)
} }
return '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($database) . '"' return '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($database) . '"'
.' title="' . sprintf($GLOBALS['strJumpToDB'], htmlspecialchars($database)) . '">' .' title="' . sprintf(__('Jump to database &quot;%s&quot;.'), htmlspecialchars($database)) . '">'
.htmlspecialchars($database) . '</a>'; .htmlspecialchars($database) . '</a>';
} }

View File

@@ -131,7 +131,7 @@ function PMA_importRunQuery($sql = '', $full = '', $controluser = false)
$my_die[] = array('sql' => $import_run_buffer['full'], 'error' => PMA_DBI_getError()); $my_die[] = array('sql' => $import_run_buffer['full'], 'error' => PMA_DBI_getError());
if ($cfg['VerboseMultiSubmit']) { if ($cfg['VerboseMultiSubmit']) {
$msg .= $GLOBALS['strError']; $msg .= __('Error');
} }
if (!$cfg['IgnoreMultiSubmitErrors']) { if (!$cfg['IgnoreMultiSubmitErrors']) {
@@ -142,12 +142,12 @@ function PMA_importRunQuery($sql = '', $full = '', $controluser = false)
$a_num_rows = (int)@PMA_DBI_num_rows($result); $a_num_rows = (int)@PMA_DBI_num_rows($result);
$a_aff_rows = (int)@PMA_DBI_affected_rows(); $a_aff_rows = (int)@PMA_DBI_affected_rows();
if ($a_num_rows > 0) { if ($a_num_rows > 0) {
$msg .= $GLOBALS['strRows'] . ': ' . $a_num_rows; $msg .= __('Rows'). ': ' . $a_num_rows;
} elseif ($a_aff_rows > 0) { } elseif ($a_aff_rows > 0) {
$message = PMA_Message::affected_rows($a_aff_rows); $message = PMA_Message::affected_rows($a_aff_rows);
$msg .= $message->getMessage(); $msg .= $message->getMessage();
} else { } else {
$msg .= $GLOBALS['strEmptyResultSet']; $msg .= __('MySQL returned an empty result set (i.e. zero rows).');
} }
} }
if (!$sql_query_disabled) { if (!$sql_query_disabled) {
@@ -1075,16 +1075,16 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = NULL, &$additional_sql =
$db_ops_url = 'db_operations.php' . PMA_generate_common_url($params); $db_ops_url = 'db_operations.php' . PMA_generate_common_url($params);
$message = '<br /><br />'; $message = '<br /><br />';
$message .= '<strong>' . $GLOBALS['strImportNoticePt1'] . '</strong><br />'; $message .= '<strong>' . __('The following structures have either been created or altered. Here you can:') . '</strong><br />';
$message .= '<ul><li>' . $GLOBALS['strImportNoticePt2'] . '</li>'; $message .= '<ul><li>' . __('View a structure`s contents by clicking on its name') . '</li>';
$message .= '<li>' . $GLOBALS['strImportNoticePt3'] . '</li>'; $message .= '<li>' . __('Change any of its settings by clicking the corresponding "Options" link') . '</li>';
$message .= '<li>' . $GLOBALS['strImportNoticePt4'] . '</li>'; $message .= '<li>' . __('Edit its structure by following the "Structure" link') . '</li>';
$message .= sprintf('<br /><li><a href="%s" title="%s">%s</a> (<a href="%s" title="%s">' . $GLOBALS['strOptions'] . '</a>)</li>', $message .= sprintf('<br /><li><a href="%s" title="%s">%s</a> (<a href="%s" title="%s">' . __('Options') . '</a>)</li>',
$db_url, $db_url,
$GLOBALS['strGoToDatabase'] . ': ' . PMA_backquote($db_name), __('Go to database') . ': ' . PMA_backquote($db_name),
$db_name, $db_name,
$db_ops_url, $db_ops_url,
$GLOBALS['strEdit'] . ' ' . PMA_backquote($db_name) . ' ' . $GLOBALS['strSettings']); __('Edit') . ' ' . PMA_backquote($db_name) . ' ' . __('settings'));
$message .= '<ul>'; $message .= '<ul>';
@@ -1101,18 +1101,18 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = NULL, &$additional_sql =
unset($params); unset($params);
if (! PMA_isView($db_name, $tables[$i][TBL_NAME])) { if (! PMA_isView($db_name, $tables[$i][TBL_NAME])) {
$message .= sprintf('<li><a href="%s" title="%s">%s</a> (<a href="%s" title="%s">' . $GLOBALS['strStructure'] . '</a>) (<a href="%s" title="%s">' . $GLOBALS['strOptions'] . '</a>)</li>', $message .= sprintf('<li><a href="%s" title="%s">%s</a> (<a href="%s" title="%s">' . __('Structure') . '</a>) (<a href="%s" title="%s">' . __('Options') . '</a>)</li>',
$tbl_url, $tbl_url,
$GLOBALS['strGoToTable'] . ': ' . PMA_backquote($tables[$i][TBL_NAME]), __('Go to table') . ': ' . PMA_backquote($tables[$i][TBL_NAME]),
$tables[$i][TBL_NAME], $tables[$i][TBL_NAME],
$tbl_struct_url, $tbl_struct_url,
PMA_backquote($tables[$i][TBL_NAME]) . ' ' . $GLOBALS['strStructureLC'], PMA_backquote($tables[$i][TBL_NAME]) . ' ' . __('structure'),
$tbl_ops_url, $tbl_ops_url,
$GLOBALS['strEdit'] . ' ' . PMA_backquote($tables[$i][TBL_NAME]) . ' ' . $GLOBALS['strSettings']); __('Edit') . ' ' . PMA_backquote($tables[$i][TBL_NAME]) . ' ' . __('settings'));
} else { } else {
$message .= sprintf('<li><a href="%s" title="%s">%s</a></li>', $message .= sprintf('<li><a href="%s" title="%s">%s</a></li>',
$tbl_url, $tbl_url,
$GLOBALS['strGoToView'] . ': ' . PMA_backquote($tables[$i][TBL_NAME]), __('Go to view') . ': ' . PMA_backquote($tables[$i][TBL_NAME]),
$tables[$i][TBL_NAME]); $tables[$i][TBL_NAME]);
} }
} }

View File

@@ -184,7 +184,6 @@ function PMA_getServerCollation() {
* @uses is_array() * @uses is_array()
* @uses explode() * @uses explode()
* @uses count() * @uses count()
* @uses $GLOBALS['str[Languages|Sorting]']
* *
* @param string $collation MySQL collation string * @param string $collation MySQL collation string
* @return string collation description * @return string collation description