From 2df8214afd84f64e9295f08f7464b03cb27cb287 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Thu, 29 Jul 2010 16:58:16 -0300 Subject: Implement gettext() calls on carp_status.php --- usr/local/www/carp_status.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php index 44dee95..b121fa7 100755 --- a/usr/local/www/carp_status.php +++ b/usr/local/www/carp_status.php @@ -62,9 +62,9 @@ if($_POST['disablecarp'] <> "") { mwexec("/sbin/ifconfig $int destroy"); } } - $savemsg = "{$carp_counter} IPs have been disabled."; + $savemsg = sprintf(gettext("%s IPs have been disabled."), $carp_counter); } else { - $savemsg = "CARP has been enabled."; + $savemsg = gettext("CARP has been enabled."); mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_setup(); } @@ -72,7 +72,7 @@ if($_POST['disablecarp'] <> "") { $status = get_carp_status(); -$pgtitle = array("Status","CARP"); +$pgtitle = array(gettext("Status"),gettext("CARP")); include("head.inc"); ?> @@ -96,10 +96,10 @@ include("head.inc"); if($carpcount > 0) { if($status == false) { $carp_enabled = false; - echo ""; + echo ""; } else { $carp_enabled = true; - echo ""; + echo ""; } } ?> @@ -107,13 +107,13 @@ include("head.inc");

- - - + + +
CARP Interface
Virtual IP
Status


Could not locate any defined CARP interfaces."; + echo "

" . gettext("Could not locate any defined CARP interfaces") . "."; echo "
"; include("fend.inc"); @@ -161,15 +161,15 @@ include("head.inc");

-Note: +:
-You can configure CARP settings here. + .

pfSync nodes:
"; + echo "
" . gettext("pfSync nodes") . ":
"; echo "

";
 	system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
 	echo "
"; -- cgit v1.1