From 40c17be36a0256df52cc1e322f2a10a5b6875777 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Mon, 29 Aug 2005 12:11:14 +0000
Subject: [PATCH] [stephan k.] gettext to return unicode isntances

---
 src/common/i18n.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/i18n.py b/src/common/i18n.py
index 7bf09275ed..150abf60dd 100644
--- a/src/common/i18n.py
+++ b/src/common/i18n.py
@@ -36,7 +36,7 @@ def init():
 def _(s):
 	if s == '':
 		return s
-	return _translation.gettext(s)
+	return _translation.ugettext(s)
 
 def Q_(s):
 	# Qualified translatable strings
@@ -59,7 +59,7 @@ def ngettext(s_sing, s_plural, n, replace_sing = None, replace_plural = None):
 	
 	in other words this is a hack to ngettext() to support %s %d etc..
 	'''
-	text = _translation.ngettext(s_sing, s_plural, n)
+	text = _translation.ungettext(s_sing, s_plural, n)
 	if n == 1 and replace_sing is not None:
 		text = text % replace_sing
 	elif n > 1 and replace_plural is not None:
-- 
GitLab