diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-10 22:19:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 22:19:15 +0900 |
commit | 52432c7e3e675fa9763c3f5519dfb520cb7b7095 (patch) | |
tree | 9837f52df584f9faba3b003580d65f9ea2e50c8f | |
parent | 90f6fd90e0e32e6b2e80fa1783dc5f045a2d5de1 (diff) | |
parent | f92989ca6fe4d51f606cfc97610d6e1087b81969 (diff) | |
download | sphinx-git-52432c7e3e675fa9763c3f5519dfb520cb7b7095.tar.gz |
Merge pull request #8399 from mitya57/fix-system-translation-override
Put system locale path after the paths specified by configuration
-rw-r--r-- | sphinx/application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 59ac04b20..9627ac691 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -294,8 +294,8 @@ class Sphinx: if catalog.domain == 'sphinx' and catalog.is_outdated(): catalog.write_mo(self.config.language) - locale_dirs = [None] # type: List[Optional[str]] - locale_dirs += list(repo.locale_dirs) + locale_dirs = list(repo.locale_dirs) # type: List[Optional[str]] + locale_dirs += [None] locale_dirs += [path.join(package_dir, 'locale')] self.translator, has_translation = locale.init(locale_dirs, self.config.language) |