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