1313
This commit is contained in:
parent
9b4fc86d2a
commit
8f3fc3c8ca
@ -228,39 +228,39 @@ if __name__ == "__main__":
|
||||
"controls",
|
||||
]
|
||||
|
||||
# initialize_translation_json(
|
||||
# "text/en_US",
|
||||
# translation_key_mtext,
|
||||
# "strings/mtext.json",
|
||||
# )
|
||||
# initialize_translation_json(
|
||||
# "text/en_US", ["Text", "Array"], "strings/dialogue.json"
|
||||
# )
|
||||
# os.system(f"cd {WEBLATE_PATH} && git pull")
|
||||
# update_translation_json(
|
||||
# f"{WEBLATE_PATH}/drhps/dialogue/en.json",
|
||||
# "strings/dialogue.json",
|
||||
# f"{WEBLATE_PATH}/drhps/dialogue/zh_CN.json",
|
||||
# "strings/dialogue-zh_CN.json",
|
||||
# )
|
||||
# update_translation_json(
|
||||
# f"{WEBLATE_PATH}/drhps/mtext/en.json",
|
||||
# "strings/mtext.json",
|
||||
# f"{WEBLATE_PATH}/drhps/mtext/zh_CN.json",
|
||||
# "strings/mtext-zh_CN.json",
|
||||
# )
|
||||
# copy_dict_str = {
|
||||
# "strings/dialogue.json": f"{WEBLATE_PATH}/drhps/dialogue/en.json",
|
||||
# "strings/mtext.json": f"{WEBLATE_PATH}/drhps/mtext/en.json",
|
||||
# "strings/dialogue-zh_CN.json": f"{WEBLATE_PATH}/drhps/dialogue/zh_CN.json",
|
||||
# "strings/mtext-zh_CN.json": f"{WEBLATE_PATH}/drhps/mtext/zh_CN.json",
|
||||
# }
|
||||
# for src, dst in copy_dict_str.items():
|
||||
# os.system(f"cp -r {src} {dst}")
|
||||
initialize_translation_json(
|
||||
"text/en_US",
|
||||
translation_key_mtext,
|
||||
"strings/mtext.json",
|
||||
)
|
||||
initialize_translation_json(
|
||||
"text/en_US", ["Text", "Array"], "strings/dialogue.json"
|
||||
)
|
||||
os.system(f"cd {WEBLATE_PATH} && git pull")
|
||||
update_translation_json(
|
||||
f"{WEBLATE_PATH}/drhps/dialogue/en.json",
|
||||
"strings/dialogue.json",
|
||||
f"{WEBLATE_PATH}/drhps/dialogue/zh_CN.json",
|
||||
"strings/dialogue-zh_CN.json",
|
||||
)
|
||||
update_translation_json(
|
||||
f"{WEBLATE_PATH}/drhps/mtext/en.json",
|
||||
"strings/mtext.json",
|
||||
f"{WEBLATE_PATH}/drhps/mtext/zh_CN.json",
|
||||
"strings/mtext-zh_CN.json",
|
||||
)
|
||||
copy_dict_str = {
|
||||
"strings/dialogue.json": f"{WEBLATE_PATH}/drhps/dialogue/en.json",
|
||||
"strings/mtext.json": f"{WEBLATE_PATH}/drhps/mtext/en.json",
|
||||
"strings/dialogue-zh_CN.json": f"{WEBLATE_PATH}/drhps/dialogue/zh_CN.json",
|
||||
"strings/mtext-zh_CN.json": f"{WEBLATE_PATH}/drhps/mtext/zh_CN.json",
|
||||
}
|
||||
for src, dst in copy_dict_str.items():
|
||||
os.system(f"cp -r {src} {dst}")
|
||||
|
||||
# os.system(
|
||||
# f"cd {WEBLATE_PATH} && git add -A && git commit -m Update && git push origin main"
|
||||
# )
|
||||
os.system(
|
||||
f"cd {WEBLATE_PATH} && git add -A && git commit -m Update && git push origin main"
|
||||
)
|
||||
import_translation(
|
||||
"text/en_US",
|
||||
"text/zh_CN",
|
||||
|
Loading…
x
Reference in New Issue
Block a user