Skip to content

Commit 1b9d05d

Browse files
author
Alexander Smishlajev
committed
use python gettext engine
1 parent 45e8ec8 commit 1b9d05d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

roundup/i18n.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17-
#
18-
# $Id: i18n.py,v 1.4 2004-02-11 23:55:08 richard Exp $
17+
#
18+
# $Id: i18n.py,v 1.5 2004-05-14 10:40:47 a1s Exp $
1919

2020
"""
2121
RoundUp Internationalization (I18N)
@@ -45,7 +45,9 @@
4545
# fall-back to dummy on errors (returning the english text)
4646
_ = lambda text: text
4747
else:
48-
# and for now, we JUST implement the dummy in any case
49-
_ = lambda text: text
48+
# use roundup messages
49+
gettext.textdomain("roundup")
50+
# export gettext function
51+
_ = gettext.gettext
5052

5153
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)