def translation_allowed_language(select_language):
 if settings.FEINCMS_FRONTEND_LANGUAGES:
  l = select_language[:2]
  if (l not in settings.FEINCMS_FRONTEND_LANGUAGES):
   select_language = django_settings.LANGUAGES[0][0]
 return select_language

def translation_allowed_language ( select_language ) : if settings . FEINCMS_FRONTEND_LANGUAGES : l = select_language [ : 2 ] if ( l not in settings . FEINCMS_FRONTEND_LANGUAGES ) : select_language = django_settings . LANGUAGES [ 0 ] [ 0 ] return select_language
check for feincms specific set of allowed front end languages .