learningequality/ka-lite — pull request #1710 by anuragkanungo (2014-03-11 09:20:53+00:00)
Title:  Issue 1476 Don't show Dropdown box if only one language is there

Only one if condition is there in the base.html which works as:
If installed languages are more than one then print the drop down box ( form-- select--option)
else don't print them

No extra loop is added for the counting purpose. So, the logic and code is very much clear now.

The variable used in that if condition is defined in custom_context_processors.py ( i18n/custom_context_processors.py )
which is num_language_choices which gets the length of the list containing the installed language choices.

Greetings