summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-15 22:31:57 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-15 22:31:57 +0545
commit52e416cc4217a8ad7d88e3345e5854bb6a3791e4 (patch)
tree0f81952007624d2f1793c8d90bcd093a9552cf50 /src/usr/local/www/diag_backup.php
parent2cb37fa6c1a5746a55e09186c557ea298865da87 (diff)
downloadpfsense-52e416cc4217a8ad7d88e3345e5854bb6a3791e4.zip
pfsense-52e416cc4217a8ad7d88e3345e5854bb6a3791e4.tar.gz
Fix product_name syntax problem in diag_backup
Notice that the old line had $g['[product_name'] - a bonus "[" - that caused the product name to not actually appear in the output. In fixing that, I also wrapped this in sprintf() - that makes it more flexible for translation into languages where the word order of an instruction like this does not start with the verb.
Diffstat (limited to 'src/usr/local/www/diag_backup.php')
-rw-r--r--src/usr/local/www/diag_backup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php
index 074ae28..cc48bc7 100644
--- a/src/usr/local/www/diag_backup.php
+++ b/src/usr/local/www/diag_backup.php
@@ -673,7 +673,7 @@ $section = new Form_Section('Restore backup');
$section->addInput(new Form_StaticText(
null,
- gettext("Open a ") . $g['[product_name'] . gettext(" configuration XML file and click the button below to restore the configuration.")
+ sprintf(gettext("Open a %s configuration XML file and click the button below to restore the configuration."), $g['product_name'])
));
$section->addInput(new Form_Select(
OpenPOWER on IntegriCloud