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

@@ -604,7 +604,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
// per SQL query, and at the same time have a default that displays // per SQL query, and at the same time have a default that displays
// the transformations. // the transformations.
echo '<div class="formelement">'; echo '<div class="formelement">';
PMA_display_html_checkbox('hide_transformation', $GLOBALS['strHide'] . ' ' . __('Browser transformation'), ! empty($_SESSION['tmp_user_values']['hide_transformation']), false); PMA_display_html_checkbox('hide_transformation', __('Hide') . ' ' . __('Browser transformation'), ! empty($_SESSION['tmp_user_values']['hide_transformation']), false);
echo '</div>'; echo '</div>';
echo '<div class="clearfloat"></div>'; echo '<div class="clearfloat"></div>';

View File

@@ -24,9 +24,9 @@ require_once 'pmd_common.php';
<body> <body>
<?php <?php
echo '<p>' . $GLOBALS['strToSelectRelation'] . '<br />'; echo '<p>' . __('To select relation, click :') . '<br />';
echo '<img src="pmd/images/help_relation.png" border="1"></p>'; echo '<img src="pmd/images/help_relation.png" border="1"></p>';
echo '<p>' . $GLOBALS['strDesignerHelpDisplayField'] . '</p>'; echo '<p>' . __('The display field is shown in pink. To set/unset a field as the display field, click the "Choose field to display" icon, then click on the appropriate field name.') . '</p>';
?> ?>
</body> </body>
</html> </html>

View File

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

View File

@@ -2000,7 +2000,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
'2' => __('Grant all privileges on wildcard name (username\\_%)')); '2' => __('Grant all privileges on wildcard name (username\\_%)'));
if ( !empty($dbname) ) { if ( !empty($dbname) ) {
$choices['3'] = sprintf($GLOBALS['strCreateUserDatabasePrivileges'], htmlspecialchars($dbname)); $choices['3'] = sprintf( __('Grant all privileges on database &quot;%s&quot;'), htmlspecialchars($dbname));
$default_choice = 3; $default_choice = 3;
echo '<input type="hidden" name="dbname" value="' . htmlspecialchars($dbname) . '" />' . "\n"; echo '<input type="hidden" name="dbname" value="' . htmlspecialchars($dbname) . '" />' . "\n";
} }
@@ -2023,15 +2023,15 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
echo '<table id="tablespecificuserrights" class="data">' . "\n" echo '<table id="tablespecificuserrights" class="data">' . "\n"
. '<caption class="tblHeaders">' . "\n" . '<caption class="tblHeaders">' . "\n"
. PMA_getIcon('b_usrcheck.png') . PMA_getIcon('b_usrcheck.png')
. ' ' . sprintf($GLOBALS['strUsersHavingAccessToDb'], '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($checkprivs) . '">' . htmlspecialchars($checkprivs) . '</a>') . "\n" . ' ' . sprintf(__('Users having access to &quot;%s&quot;'), '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($checkprivs) . '">' . htmlspecialchars($checkprivs) . '</a>') . "\n"
. '</caption>' . "\n" . '</caption>' . "\n"
. '<thead>' . "\n" . '<thead>' . "\n"
. ' <tr><th>' . $GLOBALS['strUser'] . '</th>' . "\n" . ' <tr><th>' . __('User') . '</th>' . "\n"
. ' <th>' . $GLOBALS['strHost'] . '</th>' . "\n" . ' <th>' . __('Host') . '</th>' . "\n"
. ' <th>' . $GLOBALS['strType'] . '</th>' . "\n" . ' <th>' . __('Type') . '</th>' . "\n"
. ' <th>' . $GLOBALS['strPrivileges'] . '</th>' . "\n" . ' <th>' . __('Privileges') . '</th>' . "\n"
. ' <th>' . $GLOBALS['strGrantOption'] . '</th>' . "\n" . ' <th>' . __('Grant') . '</th>' . "\n"
. ' <th>' . $GLOBALS['strAction'] . '</th>' . "\n" . ' <th>' . __('Action') . '</th>' . "\n"
. ' </tr>' . "\n" . ' </tr>' . "\n"
. '</thead>' . "\n" . '</thead>' . "\n"
. '<tbody>' . "\n"; . '<tbody>' . "\n";