summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-19 16:06:48 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-19 16:06:48 -0300
commited462aae2ba226b0242474f7fd032b7cd988fe0a (patch)
tree1eef39dbd102113b48296382500fba993c910432 /etc/inc/voucher.inc
parent32296995fe9b67d1f89f93a520b7eec8ac19cb38 (diff)
downloadpfsense-ed462aae2ba226b0242474f7fd032b7cd988fe0a.zip
pfsense-ed462aae2ba226b0242474f7fd032b7cd988fe0a.tar.gz
Fix gettext on voucher.inc
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index aec3951..29e35c8 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -181,7 +181,7 @@ function voucher_configure() {
if (isset($config['voucher']['enable'])) {
if ($g['booting']) {
- echo "Enabling voucher support... ";
+ echo gettext("Enabling voucher support... ");
}
// start cron if we're asked to save runtime DB periodically
@@ -245,7 +245,7 @@ function voucher_configure() {
}
unlock($voucherlck);
- echo "done\n";
+ echo gettext("done") . "\n";
}
}
return 0;
@@ -263,7 +263,7 @@ function voucher_write_used_db($roll, $vdb) {
fwrite($fd, $vdb . "\n");
fclose($fd);
} else {
- voucher_log(LOG_ERR, "cant write {$g['vardb_path']}/voucher_used_$roll.db");
+ voucher_log(LOG_ERR, sprintf(gettext("cant write %s/voucher_used_%s.db"), $g['vardb_path'], $roll));
}
}
@@ -342,7 +342,7 @@ function voucher_read_used_db($roll) {
$vdb = trim(fgets($fd));
fclose($fd);
} else {
- voucher_log(LOG_ERR, "cant read {$g['vardb_path']}/voucher_used_$roll.db");
+ voucher_log(LOG_ERR, sprintf(gettext("cant read %s/voucher_used_%s.db"), $g['vardb_path'], $roll));
}
}
return base64_decode($vdb);
@@ -361,7 +361,7 @@ function voucher_log($priority, $message) {
define_syslog_variables();
$message = trim($message);
openlog("logportalauth", LOG_PID, LOG_LOCAL4);
- syslog($priority, "Voucher: " . $message);
+ syslog($priority, gettext("Voucher: ") . $message);
closelog();
}
OpenPOWER on IntegriCloud