Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
docutils.languages.LanguageImporter Class Reference
Inheritance diagram for docutils.languages.LanguageImporter:
Inheritance graph
[legend]
Collaboration diagram for docutils.languages.LanguageImporter:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self)
 
 import_from_packages (self, name, reporter=None)
 
 check_content (self, module)
 
 __call__ (self, language_code, reporter=None)
 

Public Attributes

 cache
 

Static Public Attributes

tuple packages = ('docutils.languages.', '')
 
tuple warn_msg
 
str fallback = 'en'
 

Detailed Description

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.

Member Function Documentation

◆ check_content()

docutils.languages.LanguageImporter.check_content (   self,
  module 
)
Check if we got a Docutils language module.

Reimplemented in docutils.parsers.rst.languages.RstLanguageImporter.

◆ import_from_packages()

docutils.languages.LanguageImporter.import_from_packages (   self,
  name,
  reporter = None 
)
Try loading module `name` from `self.packages`.

Member Data Documentation

◆ warn_msg

tuple docutils.languages.LanguageImporter.warn_msg
static
Initial value:
= ('Language "%s" not supported: '
'Docutils-generated text will be in English.')

The documentation for this class was generated from the following file: