Revision 2df8214a
Added by Carlos Eduardo Ramos almost 15 years ago
usr/local/www/carp_status.php | ||
---|---|---|
62 | 62 |
mwexec("/sbin/ifconfig $int destroy"); |
63 | 63 |
} |
64 | 64 |
} |
65 |
$savemsg = "{$carp_counter} IPs have been disabled.";
|
|
65 |
$savemsg = sprintf(gettext("%s IPs have been disabled."), $carp_counter);
|
|
66 | 66 |
} else { |
67 |
$savemsg = "CARP has been enabled.";
|
|
67 |
$savemsg = gettext("CARP has been enabled.");
|
|
68 | 68 |
mwexec("/sbin/sysctl net.inet.carp.allow=1"); |
69 | 69 |
interfaces_carp_setup(); |
70 | 70 |
} |
... | ... | |
72 | 72 |
|
73 | 73 |
$status = get_carp_status(); |
74 | 74 |
|
75 |
$pgtitle = array("Status","CARP");
|
|
75 |
$pgtitle = array(gettext("Status"),gettext("CARP"));
|
|
76 | 76 |
include("head.inc"); |
77 | 77 |
|
78 | 78 |
?> |
... | ... | |
96 | 96 |
if($carpcount > 0) { |
97 | 97 |
if($status == false) { |
98 | 98 |
$carp_enabled = false; |
99 |
echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Enable Carp\">";
|
|
99 |
echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Enable Carp") . "\">";
|
|
100 | 100 |
} else { |
101 | 101 |
$carp_enabled = true; |
102 |
echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Disable Carp\">";
|
|
102 |
echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Disable Carp") . "\">";
|
|
103 | 103 |
} |
104 | 104 |
} |
105 | 105 |
?> |
... | ... | |
107 | 107 |
<p> |
108 | 108 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0"> |
109 | 109 |
<tr> |
110 |
<td class="listhdrr"><b><center>CARP Interface</center></b></td>
|
|
111 |
<td class="listhdrr"><b><center>Virtual IP</center></b></td>
|
|
112 |
<td class="listhdrr"><b><center>Status</center></b></td>
|
|
110 |
<td class="listhdrr"><b><center><?=gettext("CARP Interface"); ?></center></b></td>
|
|
111 |
<td class="listhdrr"><b><center><?=gettext("Virtual IP"); ?></center></b></td>
|
|
112 |
<td class="listhdrr"><b><center><?=gettext("Status"); ?></center></b></td>
|
|
113 | 113 |
</tr> |
114 | 114 |
<?php |
115 | 115 |
if ($carpcount == 0) { |
116 |
echo "</td></tr></table></table></div><center><br>Could not locate any defined CARP interfaces.";
|
|
116 |
echo "</td></tr></table></table></div><center><br>" . gettext("Could not locate any defined CARP interfaces") . ".";
|
|
117 | 117 |
echo "</center>"; |
118 | 118 |
|
119 | 119 |
include("fend.inc"); |
... | ... | |
161 | 161 |
<p/> |
162 | 162 |
|
163 | 163 |
<span class="vexpl"> |
164 |
<span class="red"><strong>Note:</strong></span>
|
|
164 |
<span class="red"><strong><?=gettext("Note"); ?>:</strong></span>
|
|
165 | 165 |
<br /> |
166 |
You can configure CARP settings <a href="pkg_edit.php?xml=carp_settings.xml&id=0">here</a>.
|
|
166 |
<?=gettext("You can configure CARP settings"); ?> <a href="pkg_edit.php?xml=carp_settings.xml&id=0"><?=gettext("here"); ?></a>.
|
|
167 | 167 |
</span> |
168 | 168 |
|
169 | 169 |
<p/> |
170 | 170 |
|
171 | 171 |
<?php |
172 |
echo "<br>pfSync nodes:<br>";
|
|
172 |
echo "<br>" . gettext("pfSync nodes") . ":<br>";
|
|
173 | 173 |
echo "<pre>"; |
174 | 174 |
system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u"); |
175 | 175 |
echo "</pre>"; |
Also available in: Unified diff
Implement gettext() calls on carp_status.php