-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Milestone
Description
I'm finding that unstranslated menu items are not been shown in a /de version of my site, but can't reproduce the problem in the test environment. I've even gone so far as to use runserver on the live machine from the same codebase and using the live database... Using runserver the untranslated pages appear in the menu. Via apache / mod_wsgi they do not.
I've tried diffing the settings (as revealed by a deliberate assertionerror in a view) and there seems to be a difference in what gets put into CMS_LANGUAGES.
From the runserver error page:
CMS_LANGUAGES
{1: [{'code': 'en',
'fallbacks': ['de'],
'hide_untranslated': False,
'name': 'English',
'public': True,
'redirect_on_fallback': True},
{'code': 'de',
'fallbacks': ['en'],
'hide_untranslated': False,
'name': 'German',
'public': True,
'redirect_on_fallback': True}],
<class cms.utils.conf.VERIFIED at 0x2fcd530>: True,
'default': {'hide_untranslated': False,
'public': True,
'redirect_on_fallback': True}}
And from the apache error page:
CMS_LANGUAGES
{1: [{'code': 'en',
'fallbacks': ['de'],
'hide_untranslated': False,
'name': 'English',
'public': True,
'redirect_on_fallback': True},
{'code': 'de',
'fallbacks': ['en'],
'hide_untranslated': False,
'name': 'German',
'public': True,
'redirect_on_fallback': True}],
<class cms.utils.conf.VERIFIED at 0x7f6aaad34a10>: True,
'1': [{'code': 'en',
'hide_untranslated': False,
'name': <django.utils.functional.__proxy__ object at 0x7f6aabae0850>,
'public': True,
'redirect_on_fallback': True},
{'code': 'de',
'hide_untranslated': False,
'name': <django.utils.functional.__proxy__ object at 0x7f6aabae0890>,
'public': True,
'redirect_on_fallback': True}],
'default': {'hide_untranslated': False,
'public': True,
'redirect_on_fallback': True}}
For reference, this is what is in my settings:
CMS_LANGUAGES = {
1: [
{
'code': 'en',
'name': _('English'),
'fallbacks': ['de', ],
'public': True,
'hide_untranslated': False,
},
{
'code': 'de',
'fallbacks': ['en', ],
'name': _('German'),
'public': True,
'hide_untranslated': False,
},
],
'default': {'hide_untranslated': False,
'public': True,
'redirect_on_fallback': True}
}
Any input much appreciated.