Skip to content
Snippets Groups Projects
Commit 5c1c9692 authored by Sarina Canelake's avatar Sarina Canelake
Browse files

Put language modal in alphabetical order LMS-2302

parent 50b82a0b
No related merge requests found
......@@ -490,6 +490,8 @@ def dashboard(request):
# add in the default language if it's not in the list of released languages
if settings.LANGUAGE_CODE not in language_options:
language_options.append(settings.LANGUAGE_CODE)
# Re-alphabetize language options
language_options.sort()
# try to get the prefered language for the user
cur_lang_code = UserPreference.get_preference(request.user, LANGUAGE_KEY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment