summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter_log.inc
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-16 10:56:04 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-16 10:56:04 -0300
commit8abd095a53ee096606eac2fbf19e87d4c868d20b (patch)
treef86c4f974e7133b6cc5b2407d7658bc1101a1db7 /etc/inc/filter_log.inc
parent4e038d31d9ec1c60b18e0cf10a0718a2e62cc97e (diff)
downloadpfsense-8abd095a53ee096606eac2fbf19e87d4c868d20b.zip
pfsense-8abd095a53ee096606eac2fbf19e87d4c868d20b.tar.gz
Implement gettext() calls on filter_log.inc
Diffstat (limited to 'etc/inc/filter_log.inc')
-rw-r--r--etc/inc/filter_log.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index ed4b311..e78bc0c 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -159,7 +159,7 @@ function parse_filter_line($line) {
return $flent;
} else {
if($g['debug']) {
- log_error("There was a error parsing rule: $errline. Please report to mailing list or forum.");
+ log_error(sprintf(gettext("There was a error parsing rule: %s. Please report to mailing list or forum."), $errline));
}
return "";
}
@@ -203,7 +203,7 @@ function get_port_with_service($port, $proto) {
$service = getservbyport($port, $proto);
$portstr = "";
if ($service) {
- $portstr = "<span title=\"Service {$port}/{$proto}: {$service}\">" . htmlspecialchars($port) . "</span>";
+ $portstr = sprintf(gettext("<span title=\"Service %s/%s: %s\">%s</span>"), $port, $proto, $service, htmlspecialchars($port));
} else {
$portstr = htmlspecialchars($port);
}
@@ -279,4 +279,4 @@ function handle_ajax($nentries, $tail = 50) {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud