Skip to content

Commit def961a

Browse files
author
Alexander Smishlajev
committed
language defaults to config option TRACKER_LANGUAGE
1 parent fb86ebd commit def961a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roundup/cgi/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.200 2004-11-12 04:07:05 richard Exp $
1+
# $Id: client.py,v 1.201 2004-11-18 14:05:35 a1s Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -163,6 +163,7 @@ def setTranslator(self, translator=None):
163163
"""
164164
if translator is None:
165165
translator = TranslationService.get_translation(
166+
language=self.instance.config["TRACKER_LANGUAGE"],
166167
tracker_home=self.instance.config["TRACKER_HOME"])
167168
self.translator = translator
168169
self._ = self.gettext = translator.gettext
@@ -802,7 +803,7 @@ def make_user_anonymous(self):
802803

803804
def opendb(self, username):
804805
''' Open the database and set the current user.
805-
806+
806807
Opens a database once. On subsequent calls only the user is set on
807808
the database object the instance.optimize is set. If we are in
808809
"Development Mode" (cf. roundup_server) then the database is always
@@ -811,7 +812,7 @@ def opendb(self, username):
811812
# don't do anything if the db is open and the user has not changed
812813
if hasattr(self, 'db') and self.db.isCurrentUser(username):
813814
return
814-
815+
815816
# open the database or only set the user
816817
if not hasattr(self, 'db'):
817818
self.db = self.instance.open(username)

0 commit comments

Comments
 (0)