Skip to content

Commit d6c960e

Browse files
committed
better detection if we need a gettext workaround
1 parent d26b4f8 commit d6c960e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/TranslationService.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def translate(self, domain, msgid, mapping=None,
3030
_msg = TALInterpreter.interpolate(_msg, mapping)
3131
return _msg
3232

33-
if not _py3:
33+
if hasattr(i18n.RoundupTranslations, 'ugettext'):
3434
def gettext(self, msgid):
3535
msgid = us2u(msgid)
3636
msgtrans=self.ugettext(msgid)

0 commit comments

Comments
 (0)