From 8472cfb7e3230ed4de00f473de858e7624749bc6 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 16 Nov 2010 15:15:08 +0100 Subject: [PATCH] [IMP] tools.translate: improved debug message for illegal values in PO terms bzr revid: odo@openerp.com-20101116141508-jls1v2rqyvb7pf0v --- bin/tools/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"')