Thanks to visit codestin.com Credit goes to github.com
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 f502d89 commit e3f5b5cCopy full SHA for e3f5b5c
1 file changed
manage_translation.py
@@ -42,12 +42,8 @@ def fetch():
42
)
43
if pull_returncode != 0:
44
exit(pull_returncode)
45
- for root, _, po_files in os.walk('.'):
46
- for po_file in po_files:
47
- if not po_file.endswith(".po"):
48
- continue
49
- po_path = os.path.join(root, po_file)
50
- call(f'msgcat --no-location -o {po_path} {po_path}', shell=True)
+ for file in Path().rglob('*.po'):
+ call(f'msgcat --no-location -o {file} {file}', shell=True)
51
52
53
RESOURCE_NAME_MAP = {'glossary_': 'glossary'}
0 commit comments