Revision addc0439
Added by Renato Botelho almost 15 years ago
etc/inc/config.lib.inc | ||
---|---|---|
201 | 201 |
conf_mount_rw(); |
202 | 202 |
unlink_if_exists("{$g['tmp_path']}/config.cache"); |
203 | 203 |
copy("$file","/cf/conf/config.xml"); |
204 |
log_error(sprintf(gettext("%1$s is restoring the configuration %2$s"), $g['product_name'], $file));
|
|
205 |
file_notice("config.xml", sprintf(gettext("%1$s is restoring the configuration %2$s"), $g['product_name'], $file), "pfSenseConfigurator", "");
|
|
204 |
log_error(sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file));
|
|
205 |
file_notice("config.xml", sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file), "pfSenseConfigurator", "");
|
|
206 | 206 |
conf_mount_ro(); |
207 | 207 |
} |
208 | 208 |
} |
... | ... | |
404 | 404 |
log_error(sprintf(gettext("Ended Configuration upgrade at %s"), $now)); |
405 | 405 |
|
406 | 406 |
if ($prev_version != $config['version']) |
407 |
write_config(sprintf(gettext("Upgraded config version level from %1$s to %2$s"), $prev_version, $config['version']));
|
|
407 |
write_config(sprintf(gettext('Upgraded config version level from %1$s to %2$s'), $prev_version, $config['version']));
|
|
408 | 408 |
|
409 | 409 |
if($g['booting']) |
410 | 410 |
echo gettext("Loading new configuration..."); |
... | ... | |
640 | 640 |
|
641 | 641 |
while ($data = fread($fp, 4096)) { |
642 | 642 |
if (!xml_parse($xml_parser, $data, feof($fp))) { |
643 |
$xmlerr = sprintf(gettext("%1$s at line %2$d"),
|
|
643 |
$xmlerr = sprintf(gettext('%1$s at line %2$d'),
|
|
644 | 644 |
xml_error_string(xml_get_error_code($xml_parser)), |
645 | 645 |
xml_get_current_line_number($xml_parser)); |
646 | 646 |
return false; |
Also available in: Unified diff
Fix quotes to use %N$X on gettext calls