# $Id: __init__.py 9026 2022-03-04 15:57:13Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. # Internationalization details are documented in # <https://docutils.sourceforge.io/docs/howto/i18n.html>. """ This package contains modules for language-dependent features of reStructuredText. """ __docformat__ = 'reStructuredText' from docutils.languages import LanguageImporter class RstLanguageImporter(LanguageImporter): """Import language modules. When called with a BCP 47 language tag, instances return a module with localisations for "directive" and "role" names for from `docutils.parsers.rst.languages` or the PYTHONPATH. If there is no matching module, warn (if a `reporter` is passed) and return None. """ packages = ('docutils.parsers.rst.languages.', '') warn_msg = 'rST localisation for language "%s" not found.' fallback = None def check_content(self, module): """Check if we got an rST language module.""" if not (isinstance(module.directives, dict) and isinstance(module.roles, dict)): raise ImportError get_language = RstLanguageImporter()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.19 KB | 0644 |
|
af.py | File | 3.64 KB | 0644 |
|
ar.py | File | 2.98 KB | 0644 |
|
ca.py | File | 4.3 KB | 0644 |
|
cs.py | File | 4.7 KB | 0644 |
|
da.py | File | 3.63 KB | 0644 |
|
de.py | File | 3.46 KB | 0644 |
|
en.py | File | 3.43 KB | 0644 |
|
eo.py | File | 3.74 KB | 0644 |
|
es.py | File | 4.06 KB | 0644 |
|
fa.py | File | 3.1 KB | 0644 |
|
fi.py | File | 3.44 KB | 0644 |
|
fr.py | File | 3.69 KB | 0644 |
|
gl.py | File | 3.55 KB | 0644 |
|
he.py | File | 3.56 KB | 0644 |
|
it.py | File | 3.24 KB | 0644 |
|
ja.py | File | 3.69 KB | 0644 |
|
ko.py | File | 3.3 KB | 0644 |
|
lt.py | File | 3.44 KB | 0644 |
|
lv.py | File | 3.3 KB | 0644 |
|
nl.py | File | 3.67 KB | 0644 |
|
pl.py | File | 3.36 KB | 0644 |
|
pt_br.py | File | 3.87 KB | 0644 |
|
ru.py | File | 3.32 KB | 0644 |
|
sk.py | File | 3.85 KB | 0644 |
|
sv.py | File | 3.18 KB | 0644 |
|
uk.py | File | 3.36 KB | 0644 |
|
zh_cn.py | File | 3.83 KB | 0644 |
|
zh_tw.py | File | 5.04 KB | 0644 |
|