diff --git a/sphinx/util/i18n.py b/sphinx/util/i18n.py index 1e469d13527..f7298e2e8b7 100644 --- a/sphinx/util/i18n.py +++ b/sphinx/util/i18n.py @@ -91,8 +91,11 @@ def locale_dirs(self) -> Generator[str, None, None]: for locale_dir in self._locale_dirs: locale_dir = path.join(self.basedir, locale_dir) - if path.exists(path.join(locale_dir, self.language, 'LC_MESSAGES')): + locale_path = path.join(locale_dir, self.language, 'LC_MESSAGES') + if path.exists(locale_path): yield locale_dir + else: + logger.verbose(__('locale_dir %s does not exists'), locale_path) @property def pofiles(self) -> Generator[Tuple[str, str], None, None]: