Merge branch '4592_clang_format'
[midnight-commander.git] / maint / sync-transifex / hints-to-transifex.py
blob9aa50389d2cdad7b57201da0bf758d3730a96dc5
1 #!/usr/bin/env python3
3 import subprocess
4 from pathlib import Path
6 from translation_utils import create_po4a_config, init_sync_dir
8 RESOURCE_NAME = "mc.hint"
10 SCRIPT_DIR = Path(__file__).parent
11 SOURCE_DIR = SCRIPT_DIR.parent.parent
13 sync_dir = init_sync_dir(SCRIPT_DIR, RESOURCE_NAME)
15 po4a_config = create_po4a_config(sync_dir, SCRIPT_DIR, SOURCE_DIR, RESOURCE_NAME)
17 subprocess.run(("po4a", str(po4a_config)), cwd=SCRIPT_DIR, check=True)
19 subprocess.run(("tx", "push", "--source"), cwd=sync_dir, check=True)