Skip to content

Commit 52432c7

Browse files
authored
Merge pull request #8399 from mitya57/fix-system-translation-override
Put system locale path after the paths specified by configuration
2 parents 90f6fd9 + f92989c commit 52432c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sphinx/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ def _init_i18n(self) -> None:
294294
if catalog.domain == 'sphinx' and catalog.is_outdated():
295295
catalog.write_mo(self.config.language)
296296

297-
locale_dirs = [None] # type: List[Optional[str]]
298-
locale_dirs += list(repo.locale_dirs)
297+
locale_dirs = list(repo.locale_dirs) # type: List[Optional[str]]
298+
locale_dirs += [None]
299299
locale_dirs += [path.join(package_dir, 'locale')]
300300

301301
self.translator, has_translation = locale.init(locale_dirs, self.config.language)

0 commit comments

Comments
 (0)