mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix unbound local.
This commit is contained in:
parent
2c2ea9ae5f
commit
5e33572488
@ -177,6 +177,8 @@ class Builder(object):
|
||||
self.config.language), nonl=True)
|
||||
locale_dirs = [None, path.join(package_dir, 'locale')] + \
|
||||
[path.join(self.srcdir, x) for x in self.config.locale_dirs]
|
||||
else:
|
||||
locale_dirs = []
|
||||
self.translator, has_translation = locale.init(locale_dirs,
|
||||
self.config.language)
|
||||
if self.config.language is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user