From 504d40ab0352032c71c9405c6c3c6d6ba7efeaf8 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:26:22 +0800 Subject: [PATCH] update localization --- _locales/en/messages.json | 35 ++++++++++++++++++++++++---------- _locales/zh-Hans/messages.json | 12 ------------ 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 106a264..da20814 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -70,16 +70,6 @@ "term_behavior": { "message": "Behaviour" }, - "error_fileNotFound": { - "message": "This build is broken, as a file could not be found. The error is as follows: $error_msg$", - "description": "The error message when a file couldn't be found", - "placeholders": { - "error_msg": { - "content": "$1", - "description": "The error message" - } - } - }, "settings_general_showApplicable": { "message": "Show product's ratings in this extension's icon" @@ -104,5 +94,30 @@ }, "settings_filters_open": { "message": "Edit" + }, + + "error_msg": { + "message": "$ERROR_CODE$: $ERROR_MSG$", + "description": "The error message template", + "placeholders": { + "ERROR_CODE": { + "content": "$1", + "description": "The error code" + }, + "ERROR_MSG": { + "content": "$2", + "description": "The error message" + } + } + }, + "error_msg_GUI": { + "message": "Unfortunately, an exception of type $ERROR_CODE$ has occured. Click OK to terminate the script.", + "description": "The error message template for a full graphical UI", + "placeholders": { + "ERROR_CODE": { + "content": "$1", + "description": "The error code" + } + } } } diff --git a/_locales/zh-Hans/messages.json b/_locales/zh-Hans/messages.json index b3752eb..fbda7ac 100644 --- a/_locales/zh-Hans/messages.json +++ b/_locales/zh-Hans/messages.json @@ -71,18 +71,6 @@ "message": "性能" }, - - "error_fileNotFound": { - "message": "找不到一个文件!错误是: $error_msg$", - "description": "找不到文件错误的信息", - "placeholders": { - "error_msg": { - "content": "$1", - "description": "错误信息" - } - } - }, - "settings_general_showApplicable": { "message": "在此扩展程序图标中显示产品评分" },