summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-25 10:21:04 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-25 10:21:04 +0545
commit0fc3de67462f6e735484933e5abf2bbb9be4bd30 (patch)
tree88ed04a3efc64d27c8b833cc2b819ac737741eee /src/usr/local/www/interfaces.php
parenta2c5280d92c2707c27cbef318b1ced7122c32b0e (diff)
downloadpfsense-0fc3de67462f6e735484933e5abf2bbb9be4bd30.zip
pfsense-0fc3de67462f6e735484933e5abf2bbb9be4bd30.tar.gz
Internationalize interfaces UI code
Diffstat (limited to 'src/usr/local/www/interfaces.php')
-rw-r--r--src/usr/local/www/interfaces.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 73755ca..8702bb5 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -484,7 +484,7 @@ if ($_POST['apply']) {
if (isset($wancfg['wireless'])) {
interface_sync_wireless_clones($wancfg, false);
}
- write_config("Interface {$_POST['descr']}({$if}) is now disabled.");
+ write_config(sprintf(gettext('Interface %1$s (%2$s) is now disabled.'), $_POST['descr'], $if));
mark_subsystem_dirty('interfaces');
if (file_exists("{$g['tmp_path']}/.interfaces.apply")) {
$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply"));
@@ -1655,8 +1655,8 @@ $mymac = str_replace("\n", "", $mymac);
function build_mediaopts_list() {
global $mediaopts_list;
- $list = ["" => "Default (no preference, typically autoselect)",
- " " => "------- Media Supported by this interface -------"
+ $list = ["" => gettext("Default (no preference, typically autoselect)"),
+ " " => gettext("------- Media Supported by this interface -------")
];
foreach ($mediaopts_list as $mediaopt) {
@@ -1669,7 +1669,7 @@ function build_mediaopts_list() {
function build_gateway_list() {
global $a_gateways, $if;
- $list = array("none" => "None");
+ $list = array("none" => gettext("None"));
foreach ($a_gateways as $gateway) {
if (($gateway['interface'] == $if) && (is_ipaddrv4($gateway['gateway']))) {
$list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
@@ -1682,7 +1682,7 @@ function build_gateway_list() {
function build_gatewayv6_list() {
global $a_gateways, $if;
- $list = array("none" => "None");
+ $list = array("none" => gettext("None"));
foreach ($a_gateways as $gateway) {
if (($gateway['interface'] == $if) && (is_ipaddrv6($gateway['gateway']))) {
$list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
@@ -2778,7 +2778,7 @@ if (isset($wancfg['wireless'])) {
'protmode',
'802.11g OFDM Protection Mode',
$pconfig['protmode'],
- ['off' => 'Off', 'cts' => 'CTS to self', 'rtscts' => 'RTS and CTS']
+ ['off' => gettext('Off'), 'cts' => gettext('CTS to self'), 'rtscts' => gettext('RTS and CTS')]
))->setHelp('For IEEE 802.11g, use the specified technique for protecting OFDM frames in a mixed 11b/11g network.');
} else {
$section->addInput(new Form_Input(
@@ -2789,7 +2789,7 @@ if (isset($wancfg['wireless'])) {
));
}
- $mode_list = ['0' => 'Auto'];
+ $mode_list = ['0' => gettext('Auto')];
if (is_array($wl_modes)) {
foreach ($wl_modes as $wl_standard => $wl_channels) {
@@ -2828,7 +2828,7 @@ if (isset($wancfg['wireless'])) {
'diversity',
null,
(isset($pconfig['diversity'])) ? $pconfig['diversity']:'',
- ['' => 'Default', '0' => 'Off', '1' => 'On']
+ ['' => gettext('Default'), '0' => gettext('Off'), '1' => gettext('On')]
))->setHelp('Diversity');
}
@@ -2837,7 +2837,7 @@ if (isset($wancfg['wireless'])) {
'txantenna',
null,
(isset($pconfig['txantenna'])) ? $pconfig['txantenna']:'',
- ['' => 'Default', '0' => 'Auto', '1' => '#1', '2' => '#2']
+ ['' => gettext('Default'), '0' => gettext('Auto'), '1' => gettext('#1'), '2' => gettext('#2')]
))->setHelp('Transmit antenna');
}
@@ -2846,7 +2846,7 @@ if (isset($wancfg['wireless'])) {
'rxantenna',
null,
(isset($pconfig['rxantenna'])) ? $pconfig['rxantenna']:'',
- ['' => 'Default', '0' => 'Auto', '1' => '#1', '2' => '#2']
+ ['' => gettext('Default'), '0' => gettext('Auto'), '1' => gettext('#1'), '2' => gettext('#2')]
))->setHelp('Receive antenna');
}
@@ -2904,7 +2904,7 @@ if (isset($wancfg['wireless'])) {
'reglocation',
'Location',
$pconfig['reglocation'],
- ['' => 'Default', 'indoor' => 'Indoor', 'outdoor' => 'Outdoor', 'anywhere' => 'Anywhere']
+ ['' => gettext('Default'), 'indoor' => gettext('Indoor'), 'outdoor' => gettext('Outdoor'), 'anywhere' => gettext('Anywhere')]
))->setHelp('These settings may affect which channels are available and the maximum transmit power allowed on those channels. ' .
'Using the correct settings to comply with local regulatory requirements is recommended.' . '<br />' .
'All wireless networks on this interface will be temporarily brought down when changing regulatory settings. ' .
@@ -2919,7 +2919,7 @@ if (isset($wancfg['wireless'])) {
'mode',
'Mode',
$pconfig['mode'],
- ['bss' => 'Infrastructure (BSS)', 'adhoc' => 'Ad-hoc (IBSS)', 'hostap' => 'Access Point']
+ ['bss' => gettext('Infrastructure (BSS)'), 'adhoc' => gettext('Ad-hoc (IBSS)'), 'hostap' => gettext('Access Point')]
));
$section->addInput(new Form_Input(
@@ -2934,7 +2934,7 @@ if (isset($wancfg['wireless'])) {
'puremode',
'Minimum wireless standard',
$pconfig['puremode'],
- ['any' => 'Any', '11g' => '802.11g', '11n' => '802.11n']
+ ['any' => gettext('Any'), '11g' => gettext('802.11g'), '11n' => gettext('802.11n')]
))->setHelp('When operating as an access point, allow only stations capable of the selected wireless standard to associate (stations not capable are not permitted to associate)');
} elseif (isset($wl_modes['11g'])) {
$section->addInput(new Form_Checkbox(
@@ -2994,21 +2994,21 @@ if (isset($wancfg['wireless'])) {
'wpa_mode',
'WPA mode',
(isset($pconfig['wpa_mode'])) ? $pconfig['wpa_mode']: '2',
- ['1' => 'WPA', '2' => 'WPA2', '3' => 'Both']
+ ['1' => gettext('WPA'), '2' => gettext('WPA2'), '3' => gettext('Both')]
));
$section->addInput(new Form_Select(
'wpa_key_mgmt',
'WPA Key Management Mode',
$pconfig['wpa_key_mgmt'],
- ['WPA-PSK' => 'Pre-Shared Key', 'WPA-EAP' => 'Extensible Authentication Protocol', 'WPA-PSK WPA-EAP' => 'Both']
+ ['WPA-PSK' => gettext('Pre-Shared Key'), 'WPA-EAP' => gettext('Extensible Authentication Protocol'), 'WPA-PSK WPA-EAP' => gettext('Both')]
));
$section->addInput(new Form_Select(
'wpa_pairwise',
'WPA Pairwise',
(isset($pconfig['wpa_pairwise'])) ? $pconfig['wpa_pairwise']:'CCMP',
- ['CCMP TKIP' => 'Both', 'CCMP' => 'AES (recommended)', 'TKIP' => 'TKIP']
+ ['CCMP TKIP' => gettext('Both'), 'CCMP' => gettext('AES (recommended)'), 'TKIP' => gettext('TKIP')]
));
$section->addInput(new Form_Input(
OpenPOWER on IntegriCloud