gettext conversion

This commit is contained in:
Marc Delisle
2010-05-06 12:49:07 -04:00
parent 2586524b03
commit f8f475419d
4 changed files with 30 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* this file is register_globals save
* this file is register_globals safe
*
* @todo move JavaScript out of here into .js files
* @uses $cfg['QueryWindowDefTab']
@@ -12,16 +12,15 @@
* @uses $cfg['Confirm']
* @uses $GLOBALS['db']
* @uses $GLOBALS['table']
* @uses $GLOBALS['strSQL']
* @uses $GLOBALS['strImportFiles']
* @uses $GLOBALS['strQuerySQLHistory']
* @uses $GLOBALS['strAll']
* @uses $GLOBALS['strChange']
* @uses $GLOBALS['strFormEmpty']
* @uses $GLOBALS['strNotNumber']
* @uses $GLOBALS['strNoDropDatabases']
* @uses $GLOBALS['strDoYouReally']
* @uses $GLOBALS['strQuerySQLHistory']
* @uses __('SQL')
* @uses __('Import files')
* @uses __('SQL history')
* @uses __('All')
* @uses __('Change')
* @uses __('Missing value in the form!')
* @uses __('This is not a number!')
* @uses __('"DROP DATABASE" statements are disabled.')
* @uses __('Do you really want to ')
* @uses PMA_isSuperuser()
* @uses PMA_outBufferPre()
* @uses PMA_getRelationsParam()
@@ -97,23 +96,23 @@ if ($no_js) {
} else {
$tabs = array();
$tabs['sql']['icon'] = 'b_sql.png';
$tabs['sql']['text'] = $GLOBALS['strSQL'];
$tabs['sql']['text'] = __('SQL');
$tabs['sql']['fragment'] = '#';
$tabs['sql']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'sql\');return false;"';
$tabs['sql']['active'] = (bool) ($querydisplay_tab == 'sql');
$tabs['import']['icon'] = 'b_import.png';
$tabs['import']['text'] = $GLOBALS['strImportFiles'];
$tabs['import']['text'] = __('Import files');
$tabs['import']['fragment'] = '#';
$tabs['import']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'files\');return false;"';
$tabs['import']['active'] = (bool) ($querydisplay_tab == 'files');
$tabs['history']['icon'] = 'b_bookmark.png';
$tabs['history']['text'] = $GLOBALS['strQuerySQLHistory'];
$tabs['history']['text'] = __('SQL history');
$tabs['history']['fragment'] = '#';
$tabs['history']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'history\');return false;"';
$tabs['history']['active'] = (bool) ($querydisplay_tab == 'history');
if ($GLOBALS['cfg']['QueryWindowDefTab'] == 'full') {
$tabs['all']['text'] = $GLOBALS['strAll'];
$tabs['all']['text'] = __('All');
$tabs['all']['fragment'] = '#';
$tabs['all']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'full\');return false;"';
$tabs['all']['active'] = (bool) ($querydisplay_tab == 'full');
@@ -123,14 +122,14 @@ if ($no_js) {
if ($GLOBALS['cfg']['PropertiesIconic']) {
$titles['Change'] =
'<img class="icon" width="16" height="16" src="' . $pmaThemeImage
. 'b_edit.png" alt="' . $GLOBALS['strChange'] . '" title="' . $GLOBALS['strChange']
. 'b_edit.png" alt="' . __('Change') . '" title="' . __('Change')
. '" />';
if ('both' === $GLOBALS['cfg']['PropertiesIconic']) {
$titles['Change'] .= $GLOBALS['strChange'];
$titles['Change'] .= __('Change');
}
} else {
$titles['Change'] = $GLOBALS['strChange'];
$titles['Change'] = __('Change');
}
$url_query = PMA_generate_common_url($db, $table);
@@ -215,8 +214,8 @@ $_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']);
if (! empty($_sql_history)
&& ($querydisplay_tab == 'history' || $querydisplay_tab == 'full')) {
$tab = $querydisplay_tab != 'full' ? 'sql' : 'full';
echo $GLOBALS['strQuerySQLHistory'] . ':<br />' . "\n"
.'<ul>';
echo __('SQL history') . ':<br />'
. '<ul>';
foreach ($_sql_history as $query) {
echo '<li>' . "\n";