i18n: Get rid of get_lang_from_prefs

The function uses profile.ui_lang which we are not using anymore.
pootle_profile: Get rid of profile.ui_lang