8.1.1.1. sphinx.locale.init

sphinx.locale.init(locale_dirs, language, catalog='sphinx', charset='utf-8')[source]

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).