change string paramaters to named ones, for translation
This commit is contained in:
parent
747104b3ab
commit
473dd3257a
@ -256,8 +256,11 @@ class ConfigManager:
|
|||||||
try: # see bugs 5356, 5490, 5591, 5651, 5718, etc.
|
try: # see bugs 5356, 5490, 5591, 5651, 5718, etc.
|
||||||
parser.read(filename, encoding='utf8')
|
parser.read(filename, encoding='utf8')
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
msg1 = _("WARNING: could not parse file %s because %s, recreating it:\n")
|
msg1 = _("WARNING: could not parse file:\n%(file)s\n"
|
||||||
logging.warn(msg1 % (filename, str(err)))
|
"because %(error)s -- recreating it\n") % {
|
||||||
|
'file' : filename,
|
||||||
|
'error' : str(err)}
|
||||||
|
logging.warn(msg1)
|
||||||
return
|
return
|
||||||
for sec in parser.sections():
|
for sec in parser.sections():
|
||||||
name = sec.lower()
|
name = sec.lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user