diff --git a/bin/tools/translate.py b/bin/tools/translate.py index c75153cdde8..807de0d2cde 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -202,7 +202,7 @@ _ = GettextAlias() def quote(s): """Returns quoted PO term string, with special PO characters escaped""" - assert r"\n" not in s, "Translation terms may not include escaped newlines ('\\n'), please use only literal newlines" + assert r"\n" not in s, "Translation terms may not include escaped newlines ('\\n'), please use only literal newlines! (in '%s')" % s return '"%s"' % s.replace('\\','\\\\') \ .replace('"','\\"') \ .replace('\n', '\\n"\n"')