Opened 13 years ago

Last modified 13 years ago

#16764 closed Bug

LANGUAGES and LANGUAGE_CODE settings doesn't work correctly — at Version 1

Reported by: anonymous Owned by: nobody
Component: Internationalization Version: 1.3
Severity: Normal Keywords: language settings
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Aymeric Augustin)

LANGUAGE_CODE = 'mn'

gettext = lambda s: s
LANGUAGES = (
    ('mn', gettext('Mongolia')),
    ('en-us', gettext('English')),
)

when above settings configured default language code is "mn", but

LANGUAGE_CODE = 'mn'

gettext = lambda s: s
LANGUAGES = (
    ('mn', gettext('Mongolia')),
    ('en', gettext('English')),
)

in this situation default language code is "en".

I added locale middleware to MIDDLEWARES.

It is BUG? or something?

Change History (1)

comment:1 by Aymeric Augustin, 13 years ago

Description: modified (diff)

Fixed formatting.

Note: See TracTickets for help on using tickets.
Back to Top