i18n API¶
-
sphinx.locale.
init
(locale_dirs, language, catalog='sphinx')[fuente]¶ Look for message catalogs in locale_dirs and ensure that there is at least a NullTranslations catalog set in translators. If called multiple times or if several
.mo
files are found, their contents are merged together (thus makinginit
reentrable).