diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-14 16:25:29 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-14 16:25:29 -0500 |
commit | b238793b917e5842441a50fc6c3d2c2cfc85ed97 (patch) | |
tree | f1c3294b9a98fad7f0b6122f28911ae68b450261 /src/usr/local | |
parent | 69169f52c662717e6bd458613a3c10146395a8a6 (diff) | |
download | pfsense-b238793b917e5842441a50fc6c3d2c2cfc85ed97.zip pfsense-b238793b917e5842441a50fc6c3d2c2cfc85ed97.tar.gz |
Add gettext() calls to title elements
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 304a781..7a51378 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -518,13 +518,17 @@ function parse_package_templates() { //breadcrumb if ($pkg['title'] != "") { if(!$only_edit) { - $pgtitle = array($pkg['title'], gettext("Edit")); - } else { - if (strpos($pkg['title'], '/')) { - $pgtitle = explode('/', $pkg['title']); - } else { - $pgtitle = array(gettext("Package"), $pkg['title']); + $pkg['title'] = $pkg['title'] . '/Edit'; + } + + if (strpos($pkg['title'], '/')) { + $title = explode('/', $pkg['title']); + + foreach ($title as $subtitle) { + $pgtitle[] = gettext($subtitle); } + } else { + $pgtitle = array(gettext("Package"), gettext($pkg['title'])); } } else { $pgtitle = array(gettext("Package"), gettext("Editor")); @@ -542,7 +546,7 @@ if ($pkg['tabs'] != "") { if (isset($tab['active'])) { $active = true; - $pgtitle[] = $tab['text'] ; + $pgtitle[] = $tab['text'] ; } else { $active = false; } |