Hello, For the record, this is indeed a regression. See https://code.djangoproject.com/ticket/26046
Thanks Jens for reporting the issue. Claude Le 04. 01. 16 13:25, Jens Lundstrom a écrit :
Hi, attempting to upgrade from 1.8.7 --> 1.9.1 but when doing this translations in template files cause error (and have worked all way back to django 1.3.x :-) Seems like first occurrence of {% trans ... %} is tried - and e.g. if user-lang is no (norwegian) and since we have no norwegian mo/po files it should default to english (or the string in tag) but here ugetttext does not work as it should or gets wrong arguements. Any ideas? / Jens - ERROR MESSAGE - 'NoneType' object has no attribute 'get' *Request Method:* GET *Request URL:* http://shootnscoreit.com/dashboard/ *Django Version:* 1.9.1 *Exception Type:* AttributeError *Exception Value:* 'NoneType' object has no attribute 'get' *Exception Location:* /usr/local/lib/python2.7/gettext.py in ugettext, line 400 ... /usr/local/lib/python2.7/gettext.pyin ugettext 1. tmsg = self._catalog.get(message, missing) *Local Vars* Variable Value message u'TEXT' self <DjangoTranslation lang:no> missing <object object at 0x7f0e72c00740> -- You received this message because you are subscribed to the Google Groups "Django internationalization and localization" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-i18n+unsubscr...@googlegroups.com <mailto:django-i18n+unsubscr...@googlegroups.com>. To post to this group, send email to django-i18n@googlegroups.com <mailto:django-i18n@googlegroups.com>. Visit this group at https://groups.google.com/group/django-i18n. For more options, visit https://groups.google.com/d/optout.
-- www.2xlibre.net -- You received this message because you are subscribed to the Google Groups "Django internationalization and localization" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-i18n+unsubscr...@googlegroups.com. To post to this group, send email to django-i18n@googlegroups.com. Visit this group at https://groups.google.com/group/django-i18n. For more options, visit https://groups.google.com/d/optout.