forgiving T for unicode, thanks Vladyslav
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.8 (2012-09-13 06:58:42) stable
|
Version 2.0.8 (2012-09-13 06:59:39) stable
|
||||||
|
|||||||
@@ -709,6 +709,10 @@ class translator(object):
|
|||||||
the ## notation is ignored in multiline strings and strings that
|
the ## notation is ignored in multiline strings and strings that
|
||||||
start with ##. this is to allow markmin syntax to be translated
|
start with ##. this is to allow markmin syntax to be translated
|
||||||
"""
|
"""
|
||||||
|
if isinstance(message, unicode):
|
||||||
|
message = message.encode('utf8')
|
||||||
|
if isinstance(prefix, unicode):
|
||||||
|
prefix = prefix.encode('utf8')
|
||||||
key = prefix+message
|
key = prefix+message
|
||||||
mt = self.t.get(key, None)
|
mt = self.t.get(key, None)
|
||||||
if mt is not None: return mt
|
if mt is not None: return mt
|
||||||
|
|||||||
Reference in New Issue
Block a user