summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlparse.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-08-30 20:36:30 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-08-30 20:36:30 -0300
commit47f12397b3ec7f6fa860d21136a7deca9f6573e8 (patch)
tree2f63de6cc3229518d8704d641ab085d63bfd12da /etc/inc/xmlparse.inc
parent701a250b6ede4936d1dd677b8e1813a440e90c71 (diff)
downloadpfsense-47f12397b3ec7f6fa860d21136a7deca9f6573e8.zip
pfsense-47f12397b3ec7f6fa860d21136a7deca9f6573e8.tar.gz
Fix gettext calls with printf to permit change strings order
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r--etc/inc/xmlparse.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index aa4d7e4..013f81d 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -82,7 +82,7 @@ function startElement($parser, $name, $attrs) {
} else if (isset($ptr)) {
/* multiple entries not allowed for this element, bail out */
- die(sprintf(gettext("XML error: %s at line %d cannot occur more than once") . "\n",
+ die(sprintf(gettext("XML error: %1$s at line %2$d cannot occur more than once") . "\n",
$name,
xml_get_current_line_number($parser)));
}
@@ -179,7 +179,7 @@ function parse_xml_config_raw($cffile, $rootobj, $isstring = "false") {
while ($data = fread($fp, 4096)) {
if (!xml_parse($xml_parser, $data, feof($fp))) {
- log_error(sprintf(gettext("XML error: %s at line %d") . "\n",
+ log_error(sprintf(gettext("XML error: %1$s at line %2$d") . "\n",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
return -1;
OpenPOWER on IntegriCloud