mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
update translations
This commit is contained in:
parent
633034b24d
commit
aad37c94fd
2 changed files with 6 additions and 6 deletions
|
@ -117,16 +117,16 @@ def update_repos_bzl():
|
||||||
out.append(line)
|
out.append(line)
|
||||||
open(path, "w").writelines(out)
|
open(path, "w").writelines(out)
|
||||||
|
|
||||||
commit_if_changed(root)
|
commit_if_changed(root, update_label="translations")
|
||||||
|
|
||||||
|
|
||||||
def commit_if_changed(folder: str):
|
def commit_if_changed(folder: str, update_label: str):
|
||||||
status = subprocess.run(["git", "diff", "--exit-code"], cwd=folder, check=False)
|
status = subprocess.run(["git", "diff", "--exit-code"], cwd=folder, check=False)
|
||||||
if status.returncode == 0:
|
if status.returncode == 0:
|
||||||
# no changes
|
# no changes
|
||||||
return
|
return
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["git", "commit", "-a", "-m", "update translations"], cwd=folder, check=True
|
["git", "commit", "-a", "-m", "update " + update_label], cwd=folder, check=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ def update_ftl_templates():
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
commit_if_changed(module.folder())
|
commit_if_changed(module.folder(), update_label="templates")
|
||||||
|
|
||||||
|
|
||||||
def push_i18n_changes():
|
def push_i18n_changes():
|
||||||
|
|
|
@ -132,8 +132,8 @@ def register_repos():
|
||||||
################
|
################
|
||||||
|
|
||||||
core_i18n_repo = "anki-core-i18n"
|
core_i18n_repo = "anki-core-i18n"
|
||||||
core_i18n_commit = "3787f06947296f7ceee9c36000d9bf2176fbf8cf"
|
core_i18n_commit = "e54034616bf0cdfa158ce78b1824b38144df6857"
|
||||||
core_i18n_zip_csum = "ff78d92f4b88821778c7b7e50baab705dc2e6fef46cd355fcd8a527f248bf9d6"
|
core_i18n_zip_csum = "3452b4b35d4058ff588f84644409ec204cbf58ae0c42974a713b21c2f00b40c9"
|
||||||
|
|
||||||
qtftl_i18n_repo = "anki-desktop-ftl"
|
qtftl_i18n_repo = "anki-desktop-ftl"
|
||||||
qtftl_i18n_commit = "881103198f1e3603c297bf449acb819f027442e6"
|
qtftl_i18n_commit = "881103198f1e3603c297bf449acb819f027442e6"
|
||||||
|
|
Loading…
Reference in a new issue