def tr_lang(language_name):
 language_code = translation.get_language()
 if (language_code is None):
  language_code = settings.LANGUAGE_CODE
 language_code = translation.to_locale(language_code)
 return langdata.tr_lang(language_code)(language_name)

def tr_lang ( language_name ) : language_code = translation . get_language ( ) if ( language_code is None ) : language_code = settings . LANGUAGE_CODE language_code = translation . to_locale ( language_code ) return langdata . tr_lang ( language_code ) ( language_name )
translates language names .