class documentation

class LanguageImporter(object): (source)

Known subclasses: docutils.parsers.rst.languages.RstLanguageImporter

View In Hierarchy

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.

Method __call__ Undocumented
Method __init__ Undocumented
Method check​_content Check if we got a Docutils language module.
Method import​_from​_packages Try loading module name from self.packages.
Class Variable fallback Undocumented
Class Variable packages Undocumented
Class Variable warn​_msg Undocumented
Instance Variable cache Undocumented
def __call__(self, language_code, reporter=None): (source)

Undocumented

def __init__(self): (source)

Undocumented

def check_content(self, module): (source)
Check if we got a Docutils language module.
def import_from_packages(self, name, reporter=None): (source)
Try loading module name from self.packages.
fallback: str = (source)
packages: tuple[str, ...] = (source)
warn_msg: str = (source)
cache: dict = (source)

Undocumented