Merge pull request #11506 from openfun/openfun/translate_user_languages_in_account_settings

Translate preferred languages in user account settings
This commit is contained in:
Nimisha Asthagiri
2016-04-04 09:31:35 -04:00
3 changed files with 30 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ from django.utils.translation import ugettext as _
from django.views.decorators.csrf import ensure_csrf_cookie
from django.views.decorators.http import require_http_methods
from lang_pref.api import released_languages
from lang_pref.api import released_languages, all_languages
from edxmako.shortcuts import render_to_response
from microsite_configuration import microsite
@@ -386,7 +386,7 @@ def account_settings_context(request):
}, 'year_of_birth': {
'options': year_of_birth_options,
}, 'preferred_language': {
'options': settings.ALL_LANGUAGES,
'options': all_languages(),
}
},
'platform_name': settings.PLATFORM_NAME,