2021-11-12 21:54:17 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
try:
|
2023-01-02 21:50:23 +00:00
|
|
|
api_key = sys.argv[1]
|
|
|
|
core_name = sys.argv[2]
|
|
|
|
dir_path = sys.argv[3]
|
2021-11-12 21:54:17 +00:00
|
|
|
except IndexError as e:
|
2023-01-02 21:50:23 +00:00
|
|
|
print('Please provide path to libretro_core_options.h, Crowdin API Token and core name!')
|
|
|
|
raise e
|
2021-11-12 21:54:17 +00:00
|
|
|
|
2021-11-23 14:48:43 +00:00
|
|
|
subprocess.run(['python3', 'intl/crowdin_prep.py', dir_path, core_name])
|
2021-11-13 00:12:12 +00:00
|
|
|
subprocess.run(['python3', 'intl/crowdin_translation_download.py', api_key, core_name])
|
2021-11-13 17:49:56 +00:00
|
|
|
subprocess.run(['python3', 'intl/crowdin_translate.py', dir_path, core_name])
|