From 6940bed8fa6c5eb477ea3f8369dee97c04d96673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 4 May 2010 10:37:01 +0200 Subject: [PATCH] Allow to translate master/slave strings too. --- server_status.php | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/server_status.php b/server_status.php index a4796dad3..3ab8a49a2 100644 --- a/server_status.php +++ b/server_status.php @@ -283,7 +283,7 @@ if ($server_master_status) { if ($server_slave_status) { $links['repl'][__('Show slave status')] = '#replication_slave'; } - + $links['repl']['doc'] = 'replication'; $links['qcache'][__('Flush query cache')] @@ -354,19 +354,17 @@ echo sprintf(__('This MySQL server has been running for %s. It started up on %s.

' . $type . ' '; - } +if ($server_master_status || $server_slave_status) { + echo '

'; + if ($server_master_status && $server_slave_status) { + echo __('This MySQL server works as master and slave in replication process.'); + } elseif ($server_master_status) { + echo __('This MySQL server works as master in replication process.'); + } elseif ($server_slave_status) { + echo __('This MySQL server works as slave in replication process.'); } - echo sprintf('

' . __('This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.') . '

', $replicationOut); + echo __('For further information about replication status on the server, please visit the replication section.'); + echo '

'; } ?> @@ -712,7 +710,7 @@ if (! empty($section['title'])) { } unset($section_name, $section, $sections, $server_status, $odd_row, $alerts); ?> - +

-