3👍
Django I18N Docs explain two codes as shown below. en_GB is the Great Britain (UK) locale. en-CA is English as spoken in Canada.
- locale name has an underscore
- language_name has a dash or hyphen
0👍
I think it’s sequence issue, Languages must be above the language_code. could you please try this below.
LANGUAGES = (
('en-us', u'English (US)'),
('de', u'Deutsch'),
('en-gb', u'English (UK)'),
('es', u'Español'),
('fr', u'Français'),
('pt', u'Português'),
)
LANGUAGE_CODE = 'en-us'
- [Django]-Can't pass 'slug' field into URL via generic class view
- [Django]-Authentication failed: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- [Django]-Can't access the Django server at http://127.0.0.1:8000/
Source:stackexchange.com