Skip to content
Snippets Groups Projects
Commit 85065687 authored by nkour's avatar nkour
Browse files

fix a bug with some locales. start using unicode instance for strings

parent e793a889
No related branches found
No related tags found
No related merge requests found
......@@ -632,7 +632,7 @@ class Connection:
if keyID and USE_GPG:
if not msg:
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)
if signed == 'BAD_PASSPHRASE':
signed = ''
......
......@@ -43,4 +43,4 @@ def get_uf_show(show):
uf_show = _('Not in the roster')
else:
uf_show = _('Has errors')
return uf_show
return unicode(uf_show)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment