summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-16 08:40:25 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-16 08:40:25 -0300
commite96d2182cddab944ecc6de439d81ad95ca09ac62 (patch)
tree43a694069213f83ea059e9d710c7cff49d0d6059
parentfdc55311b47180f0fd584eb40e6a260037e86aab (diff)
downloadpfsense-e96d2182cddab944ecc6de439d81ad95ca09ac62.zip
pfsense-e96d2182cddab944ecc6de439d81ad95ca09ac62.tar.gz
Implement gettext() calls on cmd_chain.inc
-rw-r--r--etc/inc/cmd_chain.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/cmd_chain.inc b/etc/inc/cmd_chain.inc
index eb81954..ea295cd 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("CmdCHAIN is executing -> {$cmd_title} - {$command}");
+ log_error(sprintf(gettext("CmdCHAIN is executing -> %s - %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("{$cmd_title} failed with return code -> {$status}. The command was {$command}");
+ log_error(sprintf(gettext("%s failed with return code -> %s. The command was %s"), $cmd_title, $status, $command));
if($this->halt_on_errors == true)
- return("{$cmd_title} failed with return code -> {$status}. The command was {$command}");
+ return(sprintf(gettext("%s failed with return code -> %s. The command was %s"), $cmd_title, $status, $command));
}
}
return;
@@ -129,4 +129,4 @@ $cmdchain->clear(); // clears the previous added entries
*/
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud