code: def _gettext_catalog(self, domain, language):
          
          td = queryUtility(ITranslationDomain, domain)
          if td is None or language not in td._catalogs:
              return
  
          # N.B. Multiple PO files might be registered for one language, where
          # usually the one at position 0 is the custom catalog with the
          # overriding terms in it. Therefore, we need to reverse the order, so
          # that the custom catalog wins.
          _catalog = {}
          for mo_path in reversed(td._catalogs[language]):
              catalog = td._data[mo_path]._catalog
              if catalog is None:
                  td._data[mo_path].reload()
                  catalog = td._data[mo_path]._catalog
              catalog = catalog._catalog
              for key, val in catalog.iteritems():
                  if key and val:
                      _catalog[key] = val
          return _catalog
docs: Overrides jarn.jsi18n.view.jsi18n
          See:
              https://github.com/collective/jarn.jsi18n/issues/1
              https://github.com/collective/jarn.jsi18n/pull/2
  
          :param domain: translation domain
          :param language: iso code for language
          :return: dict, with the translations for the domain and language