Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 letter language codes problem #133

Closed
digi604 opened this issue Aug 18, 2009 · 4 comments
Closed

5 letter language codes problem #133

digi604 opened this issue Aug 18, 2009 · 4 comments

Comments

@digi604
Copy link
Contributor

digi604 commented Aug 18, 2009

('pt-br', gettext ( 'Brazil')), seams not to be working

@flmendes
Copy link

When I use pt-br always appears this error in admin page.
Traceback (most recent call last):

File "/usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 279, in run
self.result = application(self.environ, self.start_response)

File "/usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 651, in call
return self.application(environ, start_response)

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 241, in call
response = self.get_response(request)

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 115, in get_response
return debug.technical_404_response(request, e)

File "/usr/local/lib/python2.6/dist-packages/django/views/debug.py", line 247, in technical_404_response
tried = exception.args[0]['tried']

KeyError: 'tried'

@digi604
Copy link
Contributor Author

digi604 commented Aug 18, 2009

i don't see any files from django-cms in the exception.... you sure this is not a django problem? I will have a look on it tomorrow

@flmendes
Copy link

I think the problem is in your midleware "MultilingualURLMiddleware"
at some points you recover language using "settings.LANGUAGE_CODE [2:]" and in this case the return value is only pt, I think the correct value should be 'pt-br'.
Please correct me if wrong.

@digi604
Copy link
Contributor Author

digi604 commented Aug 18, 2009

losed by 3a9dc67 five letter languages should work now

christianbertschy pushed a commit to christianbertschy/django-cms-2.0 that referenced this issue Oct 1, 2012
christianbertschy pushed a commit to christianbertschy/django-cms-2.0 that referenced this issue Oct 1, 2012
mkoistinen pushed a commit to mkoistinen/django-cms that referenced this issue Jan 20, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants