Update configuration paths for update.yml and add new translation key for 'create_block_file_failed' in English, Simplified Chinese, and Traditional Chinese locales.

This commit is contained in:
yeongpin 2025-03-28 19:28:46 +08:00
parent 1c1174fa6c
commit b6bf62f841
4 changed files with 7 additions and 4 deletions

View File

@ -50,7 +50,7 @@ def setup_config(translator=None):
'machine_id_path': os.path.join(appdata, "Cursor", "machineId"), 'machine_id_path': os.path.join(appdata, "Cursor", "machineId"),
'cursor_path': os.path.join(localappdata, "Programs", "Cursor", "resources", "app"), 'cursor_path': os.path.join(localappdata, "Programs", "Cursor", "resources", "app"),
'updater_path': os.path.join(localappdata, "cursor-updater"), 'updater_path': os.path.join(localappdata, "cursor-updater"),
'update_yml_path': os.path.join(localappdata, "Programs", "Cursor", "resources", "app", "update.yml") 'update_yml_path': os.path.join(localappdata, "Programs", "Cursor", "resources", "update.yml")
} }
elif sys.platform == "darwin": elif sys.platform == "darwin":
default_config['MacPaths'] = { default_config['MacPaths'] = {

View File

@ -293,7 +293,8 @@
"update_yml_not_found": "update.yml file not found", "update_yml_not_found": "update.yml file not found",
"clear_update_yml_failed": "Failed to clear update.yml file: {error}", "clear_update_yml_failed": "Failed to clear update.yml file: {error}",
"unsupported_os": "Unsupported OS: {system}", "unsupported_os": "Unsupported OS: {system}",
"remove_directory_failed": "Failed to remove directory: {error}" "remove_directory_failed": "Failed to remove directory: {error}",
"create_block_file_failed": "Failed to create block file: {error}"
}, },
"updater": { "updater": {
"checking": "Checking for updates...", "checking": "Checking for updates...",

View File

@ -288,7 +288,8 @@
"update_yml_not_found": "update.yml 文件未找到", "update_yml_not_found": "update.yml 文件未找到",
"clear_update_yml_failed": "清空 update.yml 文件失败: {error}", "clear_update_yml_failed": "清空 update.yml 文件失败: {error}",
"unsupported_os": "不支持的操作系统: {system}", "unsupported_os": "不支持的操作系统: {system}",
"remove_directory_failed": "删除目录失败: {error}" "remove_directory_failed": "删除目录失败: {error}",
"create_block_file_failed": "创建阻止文件失败: {error}"
}, },
"updater": { "updater": {
"checking": "检查更新...", "checking": "检查更新...",

View File

@ -267,7 +267,8 @@
"update_yml_not_found": "update.yml 文件未找到", "update_yml_not_found": "update.yml 文件未找到",
"clear_update_yml_failed": "清空 update.yml 文件失败: {error}", "clear_update_yml_failed": "清空 update.yml 文件失败: {error}",
"unsupported_os": "不支持的操作系统: {system}", "unsupported_os": "不支持的操作系统: {system}",
"remove_directory_failed": "刪除目錄失败: {error}" "remove_directory_failed": "刪除目錄失败: {error}",
"create_block_file_failed": "創建阻止文件失败: {error}"
}, },
"updater": { "updater": {
"checking": "檢查更新...", "checking": "檢查更新...",