@core_helper
def lang_native_name(lang=None):
 lang = (lang or lang())
 locale = i18n.get_locales_dict().get(lang)
 if locale:
  return (locale.display_name or locale.english_name)
 return lang

@ core_helper def lang_native_name ( lang = None ) : lang = ( lang or lang ( ) ) locale = i18n . get_locales_dict ( ) . get ( lang ) if locale : return ( locale . display_name or locale . english_name ) return lang
return the langage name currently used in its localised form either from parameter or current environ setting .