mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9176 from mart-e/4-add-warning-i18n
[IMP] util: detect incorrect locale_dirs path
This commit is contained in:
@@ -91,8 +91,11 @@ class CatalogRepository:
|
||||
|
||||
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]:
|
||||
|
||||
Reference in New Issue
Block a user