summaryrefslogtreecommitdiffstats
path: root/etc/inc/meta.inc
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-16 16:51:26 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-08-16 16:51:26 -0300
commit930fc5add493e5bb3ff57c8581770fc9c2985e4a (patch)
treec2a8e6a84d0e4e3e6823d59cb2f9122f44705916 /etc/inc/meta.inc
parenta0353193e2e94b4aadced61a22abe9caa8f72fc0 (diff)
downloadpfsense-930fc5add493e5bb3ff57c8581770fc9c2985e4a.zip
pfsense-930fc5add493e5bb3ff57c8581770fc9c2985e4a.tar.gz
Implement gettext() calls on meta.inc
Diffstat (limited to 'etc/inc/meta.inc')
-rw-r--r--etc/inc/meta.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/meta.inc b/etc/inc/meta.inc
index 3090319..63c9391 100644
--- a/etc/inc/meta.inc
+++ b/etc/inc/meta.inc
@@ -65,7 +65,7 @@ function list_phpfiles($path, & $found) {
$dir = opendir($path);
if (!$dir) {
- echo "list_phpfiles: unable to examine path {$path}\n";
+ printf(gettext("list_phpfiles: unable to examine path %s%s"), $path, "\n");
return;
}
@@ -96,7 +96,7 @@ function read_file_metadata($fpath, & $metadata, $taglist = false) {
$fdata = @file_get_contents($fpath);
if (!$fdata) {
- echo "unable to read {$fpath}\n";
+ printf(gettext("unable to read %s%s"), $fpath, "\n");
continue;
}
@@ -129,7 +129,7 @@ function read_file_metadata($fpath, & $metadata, $taglist = false) {
$tagend = substr($fdata, $tagend_off + 4, $tagend_len - 4);
if ($tagbeg != $tagend) {
- echo "error: tag mismatch ( {$tagbeg} != {$tagend} ) in '$fpath'\n";
+ printf(gettext("error: tag mismatch ( %s != %s ) in '%s'%s"), $tagbeg, $tagend, $fpath, "\n");
break;
}
@@ -140,7 +140,7 @@ function read_file_metadata($fpath, & $metadata, $taglist = false) {
$mdata = substr($fdata, $mdata_off, $mdata_len);
if (!strlen($mdata)) {
- echo "warning: tag {$tagbeg} has no data in '$fpath'\n";
+ printf(gettext("warning: tag %s has no data in '%s'%s"), $tagbeg, $fpath, "\n");
break;
}
@@ -160,7 +160,7 @@ function read_file_metadata($fpath, & $metadata, $taglist = false) {
$valtag = stripos($line, "##|*");
if ($valtag === false || $valtag) {
- echo "warning: tag {$tagbeg} has malformed data in '$fpath'\n";
+ printf(gettext("warning: tag %s has malformed data in '%s'%s"), $tagbeg, $fpath, "\n");
continue;
}
@@ -182,7 +182,7 @@ function read_file_metadata($fpath, & $metadata, $taglist = false) {
}
if (!isset($vname) || !isset($vdata)) {
- echo "warning: tag {$tagbeg} has invalid data in '$fpath'\n";
+ printf(gettext("warning: tag %s has invalid data in '%s'%s"), $tagbeg, $fpath, "\n");
continue;
}
OpenPOWER on IntegriCloud