Allow to translate master/slave strings too.
This commit is contained in:
@@ -354,19 +354,17 @@ echo sprintf(__('This MySQL server has been running for %s. It started up on %s.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($server_master_status || $server_slave_status)
|
if ($server_master_status || $server_slave_status) {
|
||||||
{
|
echo '<p>';
|
||||||
$replicationOut = "";
|
if ($server_master_status && $server_slave_status) {
|
||||||
foreach ($replication_types as $type)
|
echo __('This MySQL server works as <b>master</b> and <b>slave</b> in <b>replication</b> process.');
|
||||||
{
|
} elseif ($server_master_status) {
|
||||||
if (${"server_{$type}_status"})
|
echo __('This MySQL server works as <b>master</b> in <b>replication</b> process.');
|
||||||
{
|
} elseif ($server_slave_status) {
|
||||||
if ($replicationOut != "")
|
echo __('This MySQL server works as <b>slave</b> in <b>replication</b> process.');
|
||||||
$replicationOut .= __('and') . ' ';
|
|
||||||
$replicationOut .= '<b>' . $type . '</b> ';
|
|
||||||
}
|
}
|
||||||
}
|
echo __('For further information about replication status on the server, please visit the <a href=#replication>replication section</a>.');
|
||||||
echo sprintf('<p>' . __('This MySQL server works as %s in <b>replication</b> process. For further information about replication status on the server, please visit the <a href=#replication>replication section</a>.') . '</p>', $replicationOut);
|
echo '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user