8.1. sphinx.locale¶
Locale utilities.
| copyright: | Copyright 2007-2016 by the Sphinx team, see AUTHORS. |
|---|---|
| license: | BSD, see LICENSE for details. |
8.1.1. Functions¶
init(locale_dirs, language[, catalog, charset]) |
Look for message catalogs in locale_dirs and ensure that there is at least a NullTranslations catalog set in translators. |
l_(string) |
A lazy version of gettext. |
lazy_gettext(string) |
A lazy version of gettext. |
mygettext(string) |
Used instead of _ when creating TranslationProxies, because _ is not bound yet at that time. |