Make sure that the currently-set language is the one that shows on the left sidebar if no language  preference exists.

Some students were confused by the display on the sidebar when it would say 'English' even if the text was in another language. This should fix the problem.

@flowerhack @sarina @stephensanchez 

ECOM-135
Totally fine with me, just figured I'd check.


On Mon, Aug 25, 2014 at 5:11 PM, Diana Huang <notifications@github.com>
wrote:

> In common/djangoapps/student/views.py:
>
> >          # if the user has a preference, get the name from the code
> > +        current_language = settings.LANGUAGE_DICT[cur_pref_lang_code]
> > +    elif cur_lang_code in settings.LANGUAGE_DICT:
>
> Unfortunately, this method is extremely difficult to test and so I don't
> think it's worth the effort to do it, especially while we plan the refactor
> of all this code in Q2.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/edx/edx-platform/pull/4959/files#r16681337>.
>