summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-05 18:22:30 +0545
committerGitHub <noreply@github.com>2017-02-05 18:22:30 +0545
commit01b3466561bc54f6bb7b11fb8f21a562f90bcf05 (patch)
tree93b83856277cf78bed92dc0b56e0cccaa65fb5f5 /src/usr/local/www
parentdfbc9267d3838088f551de0a53021486b0e7c3df (diff)
downloadpfsense-01b3466561bc54f6bb7b11fb8f21a562f90bcf05.zip
pfsense-01b3466561bc54f6bb7b11fb8f21a562f90bcf05.tar.gz
Firewall Rules Edit translate Source and Destination
These bits were not translating. Line 1406 could possibly be like: ``` $group = new Form_Group($name . ' ' . gettext('Port Range')); ``` But then that assumes that in every target language the translation of "Source" or "Destination" can be put in front of the translation of "Port Range". So I have given the translators both full phrases to do what they like with.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index f2d5eef..2e6ad4d 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -1312,7 +1312,7 @@ $form->add($section);
// Source and destination share a lot of logic. Loop over the two
// ToDo: Unfortunately they seem to differ more than they share. This needs to be unrolled
-foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
+foreach (['src' => gettext('Source'), 'dst' => gettext('Destination')] as $type => $name) {
$section = new Form_Section($name);
$group = new Form_Group('*' . $name);
@@ -1403,7 +1403,7 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
$portValues[$port] = $portName.' ('. $port .')';
}
- $group = new Form_Group($name .' Port Range');
+ $group = new Form_Group($type == 'src' ? gettext('Source Port Range') : gettext('Destination Port Range'));
$group->addClass($type . 'portrange');
OpenPOWER on IntegriCloud