kivy: fix i18n with unicode
This commit is contained in:
parent
3cbde4c398
commit
ac88ae9c7f
|
@ -1,6 +1,6 @@
|
|||
import gettext
|
||||
|
||||
class _(str):
|
||||
class _(unicode):
|
||||
|
||||
observers = set()
|
||||
lang = None
|
||||
|
@ -15,7 +15,9 @@ class _(str):
|
|||
|
||||
@staticmethod
|
||||
def translate(s, *args, **kwargs):
|
||||
return _.lang(s).format(args, kwargs)
|
||||
tr = _.lang(s).format(args, kwargs)
|
||||
tr = tr.decode('utf8')
|
||||
return tr
|
||||
|
||||
@staticmethod
|
||||
def bind(label):
|
||||
|
|
Loading…
Reference in New Issue