diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-17 09:27:14 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-17 09:27:14 -0300 |
commit | f55943aa30f4bf5f0b916454bbbdc7bd7de0e63f (patch) | |
tree | bd047a243cd7a4995fd0f68b27519ce3857ab4c8 /etc/inc/xmlparse_attr.inc | |
parent | 6acdf659ce8ea7d4752fa8dd246e7d0921d2af39 (diff) | |
download | pfsense-f55943aa30f4bf5f0b916454bbbdc7bd7de0e63f.zip pfsense-f55943aa30f4bf5f0b916454bbbdc7bd7de0e63f.tar.gz |
Implement gettext() calls on xmlparse_attr.inc
Diffstat (limited to 'etc/inc/xmlparse_attr.inc')
-rw-r--r-- | etc/inc/xmlparse_attr.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/xmlparse_attr.inc b/etc/inc/xmlparse_attr.inc index 06d02c4..04428cc 100644 --- a/etc/inc/xmlparse_attr.inc +++ b/etc/inc/xmlparse_attr.inc @@ -75,7 +75,7 @@ function startElement_attr($parser, $name, $attrs) { } else if (isset($ptr)) { /* multiple entries not allowed for this element, bail out */ - die(sprintf("XML error: %s at line %d cannot occur more than once\n", + die(sprintf(gettext("XML error: %s at line %d cannot occur more than once") . "\n", $name, xml_get_current_line_number($parser))); } else if (isset($writeattrs)) { @@ -184,7 +184,7 @@ function parse_xml_config_raw_attr($cffile, $rootobj, &$parsed_attributes, $isst xml_parser_set_option($xml_parser,XML_OPTION_SKIP_WHITE, 1); if (!($fp = fopen($cffile, "r"))) { - log_error("Error: could not open XML input\n"); + log_error(gettext("Error: could not open XML input") . "\n"); if (isset($parsed_attributes)) { $parsed_attributes = array(); unset($parsedattrs); @@ -194,7 +194,7 @@ function parse_xml_config_raw_attr($cffile, $rootobj, &$parsed_attributes, $isst while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { - log_error(sprintf("XML error: %s at line %d\n", + log_error(sprintf(gettext("XML error: %s at line %d") . "\n", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); if (isset($parsed_attributes)) { @@ -207,7 +207,7 @@ function parse_xml_config_raw_attr($cffile, $rootobj, &$parsed_attributes, $isst xml_parser_free($xml_parser); if (!$parsedcfg[$rootobj]) { - log_error("XML error: no $rootobj object found!\n"); + log_error(sprintf(gettext("XML error: no %s object found!") . "\n", $rootobj)); if (isset($parsed_attributes)) { $parsed_attributes = array(); unset($parsedattrs); |