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 making init reentrable).

sphinx.locale._(message, *args)[fuente]
sphinx.locale.__(message, *args)[fuente]

A dummy wrapper to i18n’ize exceptions and command line messages.

In future, the messages are translated using LC_MESSAGES or any other locale settings.