This commit is contained in:
wasneet 2025-04-21 21:50:59 +08:00
parent 093e88775e
commit 1053ad1b02
2 changed files with 15 additions and 5 deletions

View File

@ -4,4 +4,10 @@
主要修改:現在可以依照語言導入對應貼圖了。
因此同時修改了images的目錄。
——Wasneet Potato
2025/4/21 星期一 更新
進一步修改了「import.py」腳本
——Wasneet Potato

View File

@ -4,14 +4,18 @@ from tempfile import TemporaryDirectory
import subprocess
import shutil
import os
import datetime
from tools import convert_zh_to_tw, import_translation_json
# ========== 配置区域 ==========
IMPORTLANG = "zh_TW" # 語言選項
VERSION = "V1.1" # 版本號
WEBLATE_PATH = "F:/Deskto/psoutertale-weblate" # WEBLATE文件夾路徑須修改
SOURCE_DIR = Path("F:/Deskto/Petrichor-PSTVL").resolve() # Petrichor倉庫的根目錄須修改
IMPORTLANG = input("语言?(跳过则语言默认为zh_CN)") # 語言選項
if len(IMPORTLANG) == 0:
IMPORTLANG = "zh_CN"
VERSION = "v" + input("版本号?(跳过则记录构建日期)") # 版本號
if len(VERSION) == 1:
VERSION = "构建于" + str(datetime.date.today())
WEBLATE_PATH = os.path.abspath("../psoutertale-weblate")
SOURCE_DIR = Path("../Petrichor-PSTVL").resolve()
# ==============================
# WTGIIIR協定