Change error message for better internationalization
This commit is contained in:
parent
2aa0d5aac8
commit
48e7cabc18
@ -223,7 +223,8 @@ class VCardParser:
|
|||||||
if problem != "":
|
if problem != "":
|
||||||
self.number_of_errors += 1
|
self.number_of_errors += 1
|
||||||
if line:
|
if line:
|
||||||
message = _("Line") + " %5d: %s\n" % (line, problem, )
|
message = _("Line %(line)5d: %(prob)s\n") % {"line": line,
|
||||||
|
"prob": problem}
|
||||||
else:
|
else:
|
||||||
message = problem + "\n"
|
message = problem + "\n"
|
||||||
self.errors.append(message)
|
self.errors.append(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user