Commit c07f39fd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix bugs in Localizer:

  * to_str does not return str result
  * typo in variable name
parent dd7bffd1
......@@ -76,7 +76,7 @@ def to_str(x):
"""Make sure we have an (utf-8 encoded) string"""
if isinstance(x, str):
return x
x.encode('utf-8')
return x.encode('utf-8')
def message_encode(message):
"""Encodes a message to an ASCII string.
......@@ -606,7 +606,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
RESPONSE.setHeader('Content-Disposition',
'inline;filename=%s' % filename)
return '\n'.join(r2)
return '\n'.join(r)
security.declareProtected('Manage messages', 'po_import')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment