docutils.languages package

This package contains modules for language-dependent features of Docutils.

class LanguageImporter[source]

Bases: object

Import language modules.

When called with a BCP 47 language tag, instances return a module with localisations from docutils.languages or the PYTHONPATH.

If there is no matching module, warn (if a reporter is passed) and fall back to English.

packages = ('docutils.languages.', '')
warn_msg = 'Language "%s" not supported: Docutils-generated text will be in English.'
fallback = 'en'
import_from_packages(name, reporter=None)[source]

Try loading module name from self.packages.

check_content(module)[source]

Check if we got a Docutils language module.

Submodules