Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Load the given domain from one of the pre-configured locale dirs.

Returns a :class:`gettext.NullTranslations` instance if no
translations could be found for a non-critical domain. This
allows untranslated plugins to be rendered in English instead
of an error being raised.

:param domain: A domain name.
:param fallback: An optional flag that, when True, returns a
    :class:`gettext.NullTranslations` instance if no translations(more...)

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/settings.py   mediadrop(Download)
            t = Translator(locale, config['locale_dirs'])
            try:
                t._load_domain('mediadrop')
            except LanguageError:
                # TODO: Show an error message on the language field