We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e0a79 commit 0761872Copy full SHA for 0761872
build_warnings.py
@@ -5,10 +5,13 @@
5
6
7
def number(clones_dir: str, repo: str, language_code: str) -> int:
8
- Path(clones_dir, f'cpython/Doc/locales/{language_code}').mkdir(parents=True)
9
- Path(clones_dir, f'cpython/Doc/locales/{language_code}/LC_MESSAGES').symlink_to(
10
- Path(clones_dir, repo), True
11
- )
+ locale_dir = Path(clones_dir, f'cpython/Doc/locales/{language_code}/LC_MESSAGES')
+ locale_dir.mkdir(parents=True)
+ for po_file in Path(clones_dir, repo).rglob('*.po'):
+ relative_path = po_file.relative_to(Path(clones_dir, repo))
12
+ target_file = locale_dir / relative_path
13
+ target_file.parent.mkdir(parents=True, exist_ok=True)
14
+ copyfile(po_file, target_file)
15
sphinx.cmd.build.main(
16
(
17
'--builder',
0 commit comments