summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_wol.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/services_wol.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/services_wol.php')
-rwxr-xr-xusr/local/www/services_wol.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php
index b798e39..d13dbfa 100755
--- a/usr/local/www/services_wol.php
+++ b/usr/local/www/services_wol.php
@@ -58,10 +58,10 @@ if($_GET['wakeall'] <> "") {
get_interface_subnet($if));
/* Execute wol command and check return code. */
if(!mwexec("/usr/local/bin/wol -i {$bcip} {$mac}")){
- $savemsg .= sprintf(gettext("Sent magic packet to %s (%s)%s"),$mac, $description, ".<br>");
+ $savemsg .= sprintf(gettext('Sent magic packet to %1$s (%2$s)%3$s'),$mac, $description, ".<br>");
}
else {
- $savemsg .= sprintf(gettext("Please check the %ssystem log%s, the wol command for %s (%s) did not complete successfully%s"),'<a href=\"/diag_logs.php\">','</a>',$description,$mac,".<br>");
+ $savemsg .= sprintf(gettext('Please check the %1$ssystem log%2$s, the wol command for %3$s (%4$s) did not complete successfully%5$s'),'<a href=\"/diag_logs.php\">','</a>',$description,$mac,".<br>");
}
}
}
@@ -96,7 +96,7 @@ if ($_POST || $_GET['mac']) {
$savemsg .= sprintf(gettext("Sent magic packet to %s."),$mac);
}
else {
- $savemsg .= sprintf(gettext("Please check the %ssystem log%s, the wol command for %s did not complete successfully%s"),'<a href=\"/diag_logs.php\">', '</a>', $mac, ".<br>");
+ $savemsg .= sprintf(gettext('Please check the %1$ssystem log%2$s, the wol command for %3$s did not complete successfully%4$s'),'<a href=\"/diag_logs.php\">', '</a>', $mac, ".<br>");
}
}
}
OpenPOWER on IntegriCloud