Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

weirdness with hide_unstranslated = False in production #1933

Closed
puterleat opened this Issue · 3 comments

3 participants

@puterleat

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.

@digi604
Collaborator

this is VERY strange... any luck on finding out what the problem was?

@yakky
Collaborator

Any luck in reproducing this?
Possible related to #3487

@yakky yakky added this to the 3.0.X milestone
@yakky yakky modified the milestone: 3.0.X, 3.0.7
@yakky yakky closed this
@yakky
Collaborator

Cannot reproduce this, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.