code: def get_translator (domain, directory, languages=None,
                      translatorklass=Translator, fallback=False,
                      fallbackklass=NullTranslator):
      
      translator = gettext.translation(domain, localedir=directory,
              languages=languages, class_=translatorklass, fallback=fallback)
      if not isinstance(translator, gettext.GNUTranslations) and fallbackklass:
          translator = fallbackklass()
      return translator
docs: Search the appropriate GNUTranslations class.