summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-25 22:59:56 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-25 22:59:56 +0545
commitcadeb9fd98e860c84658c84cdc0b3c050b7ee326 (patch)
treed80fddb0b926ea3d420015eb3fbc905f59b33028 /src/usr/local/www/pkg_edit.php
parent2127e42cc94b8bf0c16f40b8efef2f65acde6204 (diff)
downloadpfsense-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.php5
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));
}
OpenPOWER on IntegriCloud