summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_confbak.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-11 22:18:34 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-11 22:18:34 -0600
commitddc55e124418ff8b417a4353afcc5a814af4041d (patch)
tree6e4988855444d56ad77e7b562d0ee052c2117f19 /usr/local/www/diag_confbak.php
parente36c52f4c0cc9819f7fd6ed6daa3e0f36d57bba5 (diff)
downloadpfsense-ddc55e124418ff8b417a4353afcc5a814af4041d.zip
pfsense-ddc55e124418ff8b417a4353afcc5a814af4041d.tar.gz
Modify various (s)printf format strings to allow translations to change the order of the inserted strings.
Diffstat (limited to 'usr/local/www/diag_confbak.php')
-rwxr-xr-xusr/local/www/diag_confbak.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php
index 8c3ff7d..ec1f100 100755
--- a/usr/local/www/diag_confbak.php
+++ b/usr/local/www/diag_confbak.php
@@ -46,7 +46,7 @@ if($_GET['newver'] != "") {
$confvers = unserialize(file_get_contents($g['cf_conf_path'] . '/backup/backup.cache'));
if(config_restore($g['conf_path'] . '/backup/config-' . $_GET['newver'] . '.xml') == 0)
- $savemsg = sprintf(gettext("Successfully reverted to timestamp %s with description \"%s\"."), date(gettext("n/j/y H:i:s"), $_GET['newver']), $confvers[$_GET['newver']]['description']);
+ $savemsg = sprintf(gettext('Successfully reverted to timestamp %1$s with description "%2$s".'), date(gettext("n/j/y H:i:s"), $_GET['newver']), $confvers[$_GET['newver']]['description']);
else
$savemsg = gettext("Unable to revert to the selected configuration.");
conf_mount_ro();
@@ -56,7 +56,7 @@ if($_GET['rmver'] != "") {
conf_mount_rw();
$confvers = unserialize(file_get_contents($g['cf_conf_path'] . '/backup/backup.cache'));
unlink_if_exists($g['conf_path'] . '/backup/config-' . $_GET['rmver'] . '.xml');
- $savemsg = sprintf(gettext("Deleted backup with timestamp %s and description \"%s\"."), date(gettext("n/j/y H:i:s"), $_GET['rmver']),$confvers[$_GET['rmver']]['description']);
+ $savemsg = sprintf(gettext('Deleted backup with timestamp %1$s and description "%2$s".'), date(gettext("n/j/y H:i:s"), $_GET['rmver']),$confvers[$_GET['rmver']]['description']);
conf_mount_ro();
}
OpenPOWER on IntegriCloud