Hi,
I'm using django 1.8.4 with these settings
LANGUAGE_CODE = 'en'
ugettext = lambda s: s
LANGUAGES = (
('it', ugettext('LANG_ITALIANO')),
('en', ugettext('LANG_INGLESE')),
)
LOCALE_PATHS = (
'C:/path1/locale',
'C:/path2/locale',
)
In both path1 and path2 I have "en/LC_MESSAGES/django.po/mo" and "it/LC_MESSAGES/django.po/mo" where all the "msgid" defined in english are also defined in italian (created by "makemessages") and all of them have their "msgstr" compiled with some value (with PO edit and/or manually edited), then compiled with "compilemessages".
For example I have in "en/LC_MESSAGES/django.po"
msgid "TIPO_DOCUMENTO"
msgstr "Document type"
and in "it/LC_MESSAGES/django.po"
msgid "TIPO_DOCUMENTO"
msgstr "Tipo documento"
When using the site in english, the base language, all terms are correctly in english, instead when I change the language via django.views.i18n.set_language something really weird happens: some of the terms (NOT EVERYONE) are not translated, and since django 1.8 introduced fallback system about translations (
https://code.djangoproject.com/ticket/24739) I get the english msgstr for "TIPO DOCUMENTO" that is "Document type".
I have some other locale folders in some used django-apps, anyway none of them contains that "msgid". The same is for the ones that are correctly translated.
Anyway if I set the base language to "it", it happens the same problem for english when surfing in english.
Why????
Thank you