[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n-support/pology/sieve
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2010-05-30 20:08:53
Message-ID: 20100530200853.5EACAAC8C5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1132485 by ilic:

Escape reported text segments as they would be in PO.

 M  +2 -1      check_tp_kde.py  


--- trunk/l10n-support/pology/sieve/check_tp_kde.py #1132484:1132485
@@ -91,6 +91,7 @@
 import os
 import re
 
+from pology.misc.escape import escape_c
 from pology.misc.report import report
 from pology.misc.msgreport import report_on_msg_hl, report_msg_content
 from pology.misc.msgreport import report_msg_to_lokalize
@@ -505,7 +506,7 @@
         for email in emails:
             # Check minimal validity of address.
             if email and not _valid_email_rx.match(email):
-                emsg = "Invalid email address '%s'." % email
+                emsg = "Invalid email address '%s'." % escape_c(email)
                 errors.append(emsg)
 
     # Check congruence between names and emails.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic