﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4813	Strange behaviour on locale using fastcgi and method=prefork	bluszcz@…	nobody	"During using manage.py runfcgi method=prefork there is a strange behaviour, propably connected with gettext cache - random requests serve untranslated string. With method=threaded everything is ok. I hacked  utils/translation/trans_real.py file for my own needed and it works:

{{{
#!python
def gettext(message):
    """"""
    This function will be patched into the builtins module to provide the _
    helper function. It will use the current thread as a discriminator to find
    the translation object to use. If no current translation is activated, the
    message will be run through the default translation object.
    """"""


    from django.conf import settings
    _default = translation(settings.LANGUAGE_CODE)
    return _default.gettext(message)

}}}"		closed	Internationalization	dev		fixed			Accepted	0	0	0	0	0	0
