Skip to content

Commit

Permalink
Merge pull request #8399 from mitya57/fix-system-translation-override
Browse files Browse the repository at this point in the history
Put system locale path after the paths specified by configuration
  • Loading branch information
tk0miya committed Nov 10, 2020
2 parents 90f6fd9 + f92989c commit 52432c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx/application.py
Expand Up @@ -294,8 +294,8 @@ def _init_i18n(self) -> None:
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)
Expand Down

0 comments on commit 52432c7

Please sign in to comment.