diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-21 13:31:32 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-21 13:31:32 -0500 |
commit | 6e8892c5b384b6d1f5af067ae2c682a20c8b99db (patch) | |
tree | 23d969f6bb89be4e711950bf502ac59d40b1d63e /src/usr/local/www/diag_packet_capture.php | |
parent | ef378560d1982cd5ecb93475ef9da12ce19b6a31 (diff) | |
download | pfsense-6e8892c5b384b6d1f5af067ae2c682a20c8b99db.zip pfsense-6e8892c5b384b6d1f5af067ae2c682a20c8b99db.tar.gz |
Add gettext to select option names where required
Diffstat (limited to 'src/usr/local/www/diag_packet_capture.php')
-rw-r--r-- | src/usr/local/www/diag_packet_capture.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/usr/local/www/diag_packet_capture.php b/src/usr/local/www/diag_packet_capture.php index 5258f9b..6c49be6 100644 --- a/src/usr/local/www/diag_packet_capture.php +++ b/src/usr/local/www/diag_packet_capture.php @@ -263,20 +263,22 @@ if ($_POST) { $do_tcpdump = false; } +$excl = gettext("Exclude"); + $protocollist = array( '' => 'Any', 'icmp' => 'ICMP', - '!icmp' => 'Exclude ICMP', + '!icmp' => $excl . ' ICMP', 'icmp6' => 'ICMPv6', - '!icmp6' => 'Exclude ICMPv6', + '!icmp6' => $excl . ' ICMPv6', 'tcp' => 'TCP', - '!tcp' => 'Exclude TCP', + '!tcp' => $excl . ' TCP', 'udp' => 'UDP', - '!udp' => 'Exclude UDP', + '!udp' => $excl . ' UDP', 'arp' => 'ARP', - '!arp' => 'Exclude ARP', + '!arp' => $excl . ' ARP', 'carp' => 'CARP (VRRP)', - '!carp' => 'Exclude CARP (VRRP)', + '!carp' => $excl . ' CARP (VRRP)', 'esp' => 'ESP' ); @@ -311,8 +313,8 @@ $section->addInput(new Form_Select( 'Address Family', $fam, array('' => 'Any', - 'ip' => 'IPv4 Only', - 'ip6' => 'IPv6 Only' + 'ip' => gettext('IPv4 Only'), + 'ip6' => gettext('IPv6 Only') ) ))->setHelp('Select the type of traffic to be captured'); |