summaryrefslogtreecommitdiffstats
path: root/usr/local/www/carp_status.php
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-29 16:58:16 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-29 16:58:16 -0300
commit2df8214afd84f64e9295f08f7464b03cb27cb287 (patch)
tree0d348e5987c6db19bc138fd97d0697ffaaa8bdba /usr/local/www/carp_status.php
parenta11291923cf311a4d50f7f5ab5c529e180e06e1e (diff)
downloadpfsense-2df8214afd84f64e9295f08f7464b03cb27cb287.zip
pfsense-2df8214afd84f64e9295f08f7464b03cb27cb287.tar.gz
Implement gettext() calls on carp_status.php
Diffstat (limited to 'usr/local/www/carp_status.php')
-rwxr-xr-xusr/local/www/carp_status.php24
1 files 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 "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Enable Carp\">";
+ echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Enable Carp") . "\">";
} else {
$carp_enabled = true;
- echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Disable Carp\">";
+ echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Disable Carp") . "\">";
}
}
?>
@@ -107,13 +107,13 @@ include("head.inc");
<p>
<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td class="listhdrr"><b><center>CARP Interface</center></b></td>
- <td class="listhdrr"><b><center>Virtual IP</center></b></td>
- <td class="listhdrr"><b><center>Status</center></b></td>
+ <td class="listhdrr"><b><center><?=gettext("CARP Interface"); ?></center></b></td>
+ <td class="listhdrr"><b><center><?=gettext("Virtual IP"); ?></center></b></td>
+ <td class="listhdrr"><b><center><?=gettext("Status"); ?></center></b></td>
</tr>
<?php
if ($carpcount == 0) {
- echo "</td></tr></table></table></div><center><br>Could not locate any defined CARP interfaces.";
+ echo "</td></tr></table></table></div><center><br>" . gettext("Could not locate any defined CARP interfaces") . ".";
echo "</center>";
include("fend.inc");
@@ -161,15 +161,15 @@ include("head.inc");
<p/>
<span class="vexpl">
-<span class="red"><strong>Note:</strong></span>
+<span class="red"><strong><?=gettext("Note"); ?>:</strong></span>
<br />
-You can configure CARP settings <a href="pkg_edit.php?xml=carp_settings.xml&id=0">here</a>.
+<?=gettext("You can configure CARP settings"); ?> <a href="pkg_edit.php?xml=carp_settings.xml&id=0"><?=gettext("here"); ?></a>.
</span>
<p/>
<?php
- echo "<br>pfSync nodes:<br>";
+ echo "<br>" . gettext("pfSync nodes") . ":<br>";
echo "<pre>";
system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
echo "</pre>";
OpenPOWER on IntegriCloud