summaryrefslogtreecommitdiffstats
path: root/etc/inc/cmd_chain.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-08-30 20:36:30 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-08-30 20:36:30 -0300
commit47f12397b3ec7f6fa860d21136a7deca9f6573e8 (patch)
tree2f63de6cc3229518d8704d641ab085d63bfd12da /etc/inc/cmd_chain.inc
parent701a250b6ede4936d1dd677b8e1813a440e90c71 (diff)
downloadpfsense-47f12397b3ec7f6fa860d21136a7deca9f6573e8.zip
pfsense-47f12397b3ec7f6fa860d21136a7deca9f6573e8.tar.gz
Fix gettext calls with printf to permit change strings order
Diffstat (limited to 'etc/inc/cmd_chain.inc')
-rw-r--r--etc/inc/cmd_chain.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/cmd_chain.inc b/etc/inc/cmd_chain.inc
index ea295cd..399210e 100644
--- a/etc/inc/cmd_chain.inc
+++ b/etc/inc/cmd_chain.inc
@@ -98,7 +98,7 @@ Class CmdCHAIN {
$ignore_return_text = $cmd['ignore_return_text'];
// Should we perform verbose debugging?
if($this->is_debugging == true) {
- log_error(sprintf(gettext("CmdCHAIN is executing -> %s - %s"), $cmd_title, $command));
+ log_error(sprintf(gettext("CmdCHAIN is executing -> %1$s - %2$s"), $cmd_title, $command));
usleep(100); // give network stack time to deliver network syslog message
}
// Execute command
@@ -106,9 +106,9 @@ Class CmdCHAIN {
if($this->ignore_return_text == true)
continue;
if(intval($status) <> 0) {
- log_error(sprintf(gettext("%s failed with return code -> %s. The command was %s"), $cmd_title, $status, $command));
+ log_error(sprintf(gettext("%s failed with return code -> %1$s. The command was %2$s"), $cmd_title, $status, $command));
if($this->halt_on_errors == true)
- return(sprintf(gettext("%s failed with return code -> %s. The command was %s"), $cmd_title, $status, $command));
+ return(sprintf(gettext("%s failed with return code -> %1$s. The command was %2$s"), $cmd_title, $status, $command));
}
}
return;
OpenPOWER on IntegriCloud