divio/django-cms — pull request #1676 by littlepea (2013-03-28 04:25:09+00:00)
Title: Fixes #1594

Replacement pull-request for #1641

Added get_current_language() method and using it instead of translation.get_language(), also added get_language_code() method to check if language code is in LANGUAGES

+ tests for both methods

Common case is when in settings LANGUAGE_CODE = 'en-us' and in LANGUAGES it's 'en' which causes manage.py cms check to fail.