diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-30 20:36:30 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-30 20:36:30 -0300 |
commit | 47f12397b3ec7f6fa860d21136a7deca9f6573e8 (patch) | |
tree | 2f63de6cc3229518d8704d641ab085d63bfd12da /etc/inc/xmlparse.inc | |
parent | 701a250b6ede4936d1dd677b8e1813a440e90c71 (diff) | |
download | pfsense-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.inc | 4 |
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; |