Convert replication to gettext.

This commit is contained in:
Michal Čihař
2010-05-24 11:28:58 +02:00
parent 14c8de547e
commit bb36ae46a1
2 changed files with 10 additions and 18 deletions

View File

@@ -24,14 +24,6 @@ $strLatexContent = __('Content of table __TABLE__');
$strLatexContinued = __('(continued)'); $strLatexContinued = __('(continued)');
$strLatexStructure = __('Structure of table __TABLE__'); $strLatexStructure = __('Structure of table __TABLE__');
$strReplicationMaster = __('Master replication');
$strReplicationSlave = __('Slave replication');
$strShowStatusBinlog_cache_disk_useDescr = __('The number of transactions that used the temporary binary log cache but that exceeded the value of binlog_cache_size and used a temporary file to store statements from the transaction.'); $strShowStatusBinlog_cache_disk_useDescr = __('The number of transactions that used the temporary binary log cache but that exceeded the value of binlog_cache_size and used a temporary file to store statements from the transaction.');
$strShowStatusBinlog_cache_useDescr = __('The number of transactions that used the temporary binary log cache.'); $strShowStatusBinlog_cache_useDescr = __('The number of transactions that used the temporary binary log cache.');
$strShowStatusCreated_tmp_disk_tablesDescr = __('The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based.'); $strShowStatusCreated_tmp_disk_tablesDescr = __('The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based.');

View File

@@ -35,7 +35,7 @@ if (isset($_REQUEST['sort_order'])
$dbstats = empty($_REQUEST['dbstats']) ? 0 : 1; $dbstats = empty($_REQUEST['dbstats']) ? 0 : 1;
$pos = empty($_REQUEST['pos']) ? 0 : (int) $_REQUEST['pos']; $pos = empty($_REQUEST['pos']) ? 0 : (int) $_REQUEST['pos'];
/** /**
* Drops multiple databases * Drops multiple databases
*/ */
@@ -188,17 +188,17 @@ if ($databases_count > 0) {
.' </a></th>' . "\n"; .' </a></th>' . "\n";
} }
} }
foreach ($replication_types as $type) foreach ($replication_types as $type)
{ {
if ($type=="master") if ($type=="master")
$name = "strReplicationMaster"; $name = __('Master replication');
elseif($type == "slave") elseif($type == "slave")
$name = "strReplicationSlave"; $name = __('Slave replication');
if (${"server_{$type}_status"}) if (${"server_{$type}_status"})
echo ' <th>'.$GLOBALS[$name].'</th>' . "\n"; echo ' <th>'.$GLOBALS[$name].'</th>' . "\n";
} }
if ($is_superuser) { if ($is_superuser) {
echo ' <th>' . ($cfg['PropertiesIconic'] ? '' : __('Action')) . "\n" echo ' <th>' . ($cfg['PropertiesIconic'] ? '' : __('Action')) . "\n"
. ' </th>' . "\n"; . ' </th>' . "\n";
@@ -326,10 +326,10 @@ if ($databases_count > 0) {
} }
} }
} }
foreach ($replication_types as $type) foreach ($replication_types as $type)
{ {
if (${"server_{$type}_status"}) if (${"server_{$type}_status"})
echo ' <th></th>' . "\n"; echo ' <th></th>' . "\n";
} }