diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-18 14:08:01 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-18 14:08:01 -0300 |
commit | fd7b47b6f815a52a8cf699d7506c43d8661109b1 (patch) | |
tree | ded2819a078e164df0d8a35c00a48c4406b487b2 /etc/inc/util.inc | |
parent | 4d511e5b646c24ced446c528f64336bc78572a2d (diff) | |
download | pfsense-fd7b47b6f815a52a8cf699d7506c43d8661109b1.zip pfsense-fd7b47b6f815a52a8cf699d7506c43d8661109b1.tar.gz |
Implement gettext() calls on util.inc
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 8632540..77af86d 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -102,7 +102,7 @@ function mark_subsystem_dirty($subsystem = "") { global $g; if (!file_put_contents("{$g['varrun_path']}/{$subsystem}.dirty", "DIRTY")) - log_error("WARNING: Could not mark subsystem: {$subsytem} dirty"); + log_error(sprintf(gettext("WARNING: Could not mark subsystem: %s dirty"), $subsystem)); } function clear_subsystem_dirty($subsystem = "") { @@ -122,7 +122,7 @@ function config_unlock() { function lock($lock, $op = LOCK_SH) { global $g, $cfglckkeyconsumers; if (!$lock) - die("WARNING: You must give a name as parameter to lock() function."); + die(gettext("WARNING: You must give a name as parameter to lock() function.")); if (!file_exists("{$g['tmp_path']}/{$lock}.lock")) @touch("{$g['tmp_path']}/{$lock}.lock"); $cfglckkeyconsumers++; @@ -169,7 +169,7 @@ function refcount_unreference($reference) { $shm_data = intval($shm_data) - 1; if ($shm_data < 0) { //debug_backtrace(); - log_error("Reference {$reference} is going negative, not doing unreference."); + log_error(sprintf(gettext("Reference %s is going negative, not doing unreference."), $reference)); } else shmop_write($shmid, $shm_data, 0); shmop_close($shmid); @@ -785,7 +785,7 @@ function mwexec($command, $mute = false) { $mute = false; if(($retval <> 0) && ($mute === false)) { $output = implode(" ", $oarr); - log_error("The command '$command' returned exit code '$retval', the output was '$output' "); + log_error(sprintf(gettext("The command '%s' returned exit code '%d', the output was '%s' "), $command, $retval, $output)); } return $retval; } |