summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2012-09-24 21:56:03 +0545
committerPhil Davis <phil.davis@world.inf.org>2012-09-24 21:56:03 +0545
commiteafb21b3e817d1a2a222f23f9ae66f3a2de2946b (patch)
tree08081962074f651f197f316623c667acb61ab1c3 /usr/local/www/services_captiveportal.php
parent489a6e7f04d3e15997605a7c5f137c4ad3b6dbee (diff)
downloadpfsense-eafb21b3e817d1a2a222f23f9ae66f3a2de2946b.zip
pfsense-eafb21b3e817d1a2a222f23f9ae66f3a2de2946b.tar.gz
Separate backend keywords from GUI language display in captive portal
When the GUI language was set to Portuguese, keywords like "default" and "unformatted" would be translated into Portuguese and written to config.xml - causing problems downstream in starting Captive Portal. Now the displayed values are in the GUI language but the underlying keywords stay in "computer-speak" in config.xml - forum http://forum.pfsense.org/index.php/topic,51988.msg281131.html#msg281131
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index f608191..c421e80 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -816,7 +816,7 @@ function enable_change(enable_change) {
<tr>
<td class="vncell" valign="top"><?=gettext("Type"); ?></td>
<td class="vtable"><select name="radiusvendor" id="radiusvendor">
- <option><?=gettext("default"); ?></option>
+ <option value="default"><?php echo gettext("default"); ?></option>
<?php
$radiusvendors = array("cisco");
foreach ($radiusvendors as $radiusvendor){
@@ -836,14 +836,14 @@ function enable_change(enable_change) {
<td class="vncell" valign="top"><?=gettext("MAC address format"); ?></td>
<td class="vtable">
<select name="radmac_format" id="radmac_format">
- <option><?=gettext("default"); ?></option>
+ <option value="default"><?php echo gettext("default"); ?></option>
<?php
- $macformats = array(gettext("singledash"),gettext("ietf"),gettext("cisco"),gettext("unformatted"));
+ $macformats = array("singledash","ietf","cisco","unformatted");
foreach ($macformats as $macformat) {
if ($pconfig['radmac_format'] == $macformat)
- echo "<option selected value=\"$macformat\">$macformat</option>\n";
+ echo "<option selected value=\"$macformat\">",gettext($macformat),"</option>\n";
else
- echo "<option value=\"$macformat\">$macformat</option>\n";
+ echo "<option value=\"$macformat\">",gettext($macformat),"</option>\n";
}
?>
</select></br>
OpenPOWER on IntegriCloud