diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-25 22:59:56 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-25 22:59:56 +0545 |
commit | cadeb9fd98e860c84658c84cdc0b3c050b7ee326 (patch) | |
tree | d80fddb0b926ea3d420015eb3fbc905f59b33028 /src/usr/local/www/pkg_edit.php | |
parent | 2127e42cc94b8bf0c16f40b8efef2f65acde6204 (diff) | |
download | pfsense-cadeb9fd98e860c84658c84cdc0b3c050b7ee326.zip pfsense-cadeb9fd98e860c84658c84cdc0b3c050b7ee326.tar.gz |
Internationalization of pkg*.php
Various sentences were being built up from gettext() of individual words
or phrases concatenated together. That will not work for translation to
languages with different word order, so I have restructured that.
Note: TODO: The countdown timer text with seconds countdown is all in JS
so I will think about how that can be translated nicely.
Diffstat (limited to 'src/usr/local/www/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 81551ec..2db6b6e 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -1193,11 +1193,12 @@ foreach ($pkg['fields']['field'] as $pkga) { sort($ips); if (isset($pkga['showlistenall'])) { - array_unshift($ips, array('ip' => 'All', 'description' => 'Listen on All interfaces/ip addresses ')); + array_unshift($ips, array('ip' => gettext('All'), 'description' => gettext('Listen on All interfaces/ip addresses '))); } if (!preg_match("/$interface_regex/", "loopback")) { - $iface_description=(isset($pkga['showips']) ? "127.0.0.1 (loopback)" : "loopback"); + $loopback_text = gettext("loopback"); + $iface_description=(isset($pkga['showips']) ? "127.0.0.1 (" . $loopback_text . ")" : $loopback_text); array_push($ips, array('ip' => 'lo0', 'description' => $iface_description)); } |