code: def get_language_title(language_code):
      
      from parler import appsettings
      # Avoid weird lookup errors.
      if not language_code:
          raise ValueError("Missing language_code in get_language_title()")
  
      if appsettings.PARLER_SHOW_EXCLUDED_LANGUAGE_TABS:
          # this allows to edit languages that are not enabled in current project but are already
          # in database
          languages = ALL_LANGUAGES_DICT
      else:
          languages = LANGUAGES_DICT
  
      try:
          return _(languages[language_code])
      except KeyError:
          language_code = language_code.split('-')[0]  # e.g. if fr-ca is not supported fallback to fr
          language_title = languages.get(language_code, None)
          if language_title is not None:
              return _(language_title)
          else:
              return language_code
docs: Return the verbose_name for a language code.
  
      Fallback to language_code if language is not found in settings.