comparison roundup/cgi/client.py @ 2808:18c28d22b3b5

pass tracker home directory to get_translation()
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sat, 23 Oct 2004 14:05:25 +0000
parents 3adcdd5b9247
children aa1cb9df09c3
comparison
equal deleted inserted replaced
2807:aa0316a1b2aa 2808:18c28d22b3b5
1 # $Id: client.py,v 1.190 2004-10-20 06:36:06 a1s Exp $ 1 # $Id: client.py,v 1.191 2004-10-23 14:05:25 a1s Exp $
2 2
3 """WWW request handler (also used in the stand-alone server). 3 """WWW request handler (also used in the stand-alone server).
4 """ 4 """
5 __docformat__ = 'restructuredtext' 5 __docformat__ = 'restructuredtext'
6 6
160 'gettext' and 'ngettext' (gettext-compatible i18n). 160 'gettext' and 'ngettext' (gettext-compatible i18n).
161 161
162 If omitted, create default TranslationService. 162 If omitted, create default TranslationService.
163 """ 163 """
164 if translator is None: 164 if translator is None:
165 translator = TranslationService.get_translation() 165 translator = TranslationService.get_translation(
166 tracker_home=self.instance.config["TRACKER_HOME"])
166 self.translator = translator 167 self.translator = translator
167 self._ = self.gettext = translator.gettext 168 self._ = self.gettext = translator.gettext
168 self.ngettext = translator.ngettext 169 self.ngettext = translator.ngettext
169 170
170 def main(self): 171 def main(self):

Roundup Issue Tracker: http://roundup-tracker.org/