Monday, August 26, 2013

Re: Problem with translations

Has nobody heard of this issue before? It is rather disturbing and means that our site crashes from time to time for some users.

Regards,

Andréas

2013/8/21 Andreas Kuhne <andreas.kuhne@suitopia.com>
Hi,

I am working on a website that is available in 10 different languages, and we have the translations working. If you want to see our website in french, you just add /fr to our url and it works fine.

However we are getting a lot of :

  File "middleware.py", line 83, in process_request
    translation.activate(request.locale_dict['language'])

  File "env/lib/python2.6/site-packages/django/utils/translation/__init__.py", line 90, in activate
    return _trans.activate(language)

  File "env/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 183, in activate
    _active.value = translation(language)

  File "env/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 173, in translation
    current_translation = _fetch(language, fallback=default_translation)

  File "env/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 141, in _fetch
    res._info = res._info.copy()

AttributeError: 'NoneType' object has no attribute '_info'

These errors mostly occur when the user requests an ajax enabled update. As far as I can tell this error is related to the fact that django tranlsations can't open the .mo files for the specific locale. What I don't understand is that this happens maybe once every 2 days, so it doesn't happen all the time. 

The only resources I have found on the subject are regarding to completely missing .mo translation files (which is not the case here). I am leaning towards an issue with apache not being able to open the file, because of restrictions on the number of open files allowed, but I'm not sure. Has anyone any ideas on how to correct this issue? I should also say that it has never happened on our development machines. 

Regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate