From 42256271759c581e39d58e76b02692212f53b522 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Fri, 16 Jul 2010 10:08:01 -0300 Subject: Corrections gettext implementation on services_wol.php --- usr/local/www/services_wol.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'usr') diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php index a45a730..b798e39 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 .= printf(gettext("Sent magic packet to %s (%s).
"),$mac, $description); + $savemsg .= sprintf(gettext("Sent magic packet to %s (%s)%s"),$mac, $description, ".
"); } else { - $savemsg .= printf(gettext("Please check the %ssystem log%s, the wol command for %s (%s) did not complete successfully.
"),'','',$description,$mac); + $savemsg .= sprintf(gettext("Please check the %ssystem log%s, the wol command for %s (%s) did not complete successfully%s"),'','',$description,$mac,".
"); } } } @@ -93,10 +93,10 @@ if ($_POST || $_GET['mac']) { get_interface_subnet($if)); /* Execute wol command and check return code. */ if(!mwexec("/usr/local/bin/wol -i {$bcip} {$mac}")){ - $savemsg .= printf(gettext("Sent magic packet to %s."),$mac); + $savemsg .= sprintf(gettext("Sent magic packet to %s."),$mac); } else { - $savemsg .= printf(gettext("Please check the %ssystem log%s, the wol command for %s did not complete successfully.
"),'', '', $mac); + $savemsg .= sprintf(gettext("Please check the %ssystem log%s, the wol command for %s did not complete successfully%s"),'', '', $mac, ".
"); } } } @@ -143,7 +143,7 @@ include("head.inc");
- +   @@ -209,9 +209,9 @@ include("head.inc"); -
+ :
-
+
"". -- cgit v1.1