From 85065687229a54f7eecbdc01851f99dac6176b93 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Wed, 1 Jun 2005 21:40:33 +0000
Subject: [PATCH] fix a bug with some locales. start using unicode instance for
 strings

---
 src/common/connection.py | 2 +-
 src/common/helpers.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/connection.py b/src/common/connection.py
index 4030ea7b32..4011a49593 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -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 = ''
diff --git a/src/common/helpers.py b/src/common/helpers.py
index 056956a4ab..945efc9d16 100644
--- a/src/common/helpers.py
+++ b/src/common/helpers.py
@@ -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)
-- 
GitLab