fix a bug with some locales. start using unicode instance for strings
This commit is contained in:
parent
e793a889b9
commit
8506568722
|
@ -632,7 +632,7 @@ class Connection:
|
||||||
if keyID and USE_GPG:
|
if keyID and USE_GPG:
|
||||||
if not msg:
|
if not msg:
|
||||||
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
|
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
|
||||||
msg = "I'm %s" % lowered_uf_status_msg
|
msg = _("I'm %s") % lowered_uf_status_msg
|
||||||
signed = self.gpg.sign(msg, keyID)
|
signed = self.gpg.sign(msg, keyID)
|
||||||
if signed == 'BAD_PASSPHRASE':
|
if signed == 'BAD_PASSPHRASE':
|
||||||
signed = ''
|
signed = ''
|
||||||
|
|
|
@ -43,4 +43,4 @@ def get_uf_show(show):
|
||||||
uf_show = _('Not in the roster')
|
uf_show = _('Not in the roster')
|
||||||
else:
|
else:
|
||||||
uf_show = _('Has errors')
|
uf_show = _('Has errors')
|
||||||
return uf_show
|
return unicode(uf_show)
|
||||||
|
|
Loading…
Reference in New Issue