django 1.8 i18n behaviour change

49 views
Skip to first unread message

drakkan

unread,
May 2, 2015, 5:41:22 AM5/2/15
to django-d...@googlegroups.com
Hi,

I updated a project from 1.7 to 1.8 (tested both 1.8.0 and 1.8.1),

in my templates and python code I have string in my native language (italian),

so my po files look likes this:

1) locale en

msgid "original string in italian"
msgstr "english translated string"

2) locale it

msgid "original string in italian"
msgstr ""

now in settings I have:

LANGUAGE_CODE = 'en'

my browser is in italian so request.LANGUAGE_CODE is "it"

now in django 1.7 the fallback translation is taken from the it po file, in django 1.8+ en translation is used (probably since msgstr is empty and default LANGUAGE_CODE is "en")

do you consider this a bug?

thanks
Reply all
Reply to author
Forward
0 new messages