##// END OF EJS Templates
i18n: explicitly decode paragraphs...
Matt Mackall -
r21746:2d47d81c default
parent child Browse files
Show More
@@ -36,7 +36,11 b' def gettext(message):'
36 if message is None:
36 if message is None:
37 return message
37 return message
38
38
39 paragraphs = message.split('\n\n')
39 if type(message) is unicode:
40 # goofy unicode docstrings in test
41 paragraphs = message.split(u'\n\n')
42 else:
43 paragraphs = [p.decode("ascii") for p in message.split('\n\n')]
40 # Be careful not to translate the empty string -- it holds the
44 # Be careful not to translate the empty string -- it holds the
41 # meta data of the .po file.
45 # meta data of the .po file.
42 u = u'\n\n'.join([p and t.ugettext(p) or '' for p in paragraphs])
46 u = u'\n\n'.join([p and t.ugettext(p) or '' for p in paragraphs])
General Comments 0
You need to be logged in to leave comments. Login now