From ba1e8c4ce8c4d128cef76895ae7877889ad34921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 2 Feb 2023 20:08:26 +0800 Subject: improve checking for modifying config #1859 --- locale/en-us/script.lua | 16 ++++++++++++++++ locale/pt-br/script.lua | 16 ++++++++++++++++ locale/zh-cn/script.lua | 18 +++++++++++++++++- locale/zh-tw/script.lua | 16 ++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 2937d80a..f0f48a5d 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -568,6 +568,22 @@ CONFIG_TYPE_ERROR = 'The setting file must be in lua or json format: {}' CONFIG_MODIFY_FAIL_SYNTAX_ERROR = 'Failed to modify settings, there are syntax errors in the settings file: {}' +CONFIG_MODIFY_FAIL_NO_WORKSPACE = +[[ +Failed to modify settings: +* The current mode is single-file mode, server cannot create `.luarc.json` without workspace. +* The language client dose not support modifying settings from the server side. + +Please modify following settings manually: +{} +]] +CONFIG_MODIFY_FAIL = +[[ +Failed to modify settings + +Please modify following settings manually: +{} +]] PLUGIN_RUNTIME_ERROR = [[ diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index fd25a3d6..145a69b1 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -568,6 +568,22 @@ CONFIG_TYPE_ERROR = 'O arquivo de configuração deve estar no formato LUA ou JSON: {}' CONFIG_MODIFY_FAIL_SYNTAX_ERROR = -- TODO: need translate! 'Failed to modify settings, there are syntax errors in the settings file: {}' +CONFIG_MODIFY_FAIL_NO_WORKSPACE = -- TODO: need translate! +[[ +Failed to modify settings: +* The current mode is single-file mode, server cannot create `.luarc.json` without workspace. +* The language client dose not support modifying settings from the server side. + +Please modify following settings manually: +{} +]] +CONFIG_MODIFY_FAIL = -- TODO: need translate! +[[ +Failed to modify settings + +Please modify following settings manually: +{} +]] PLUGIN_RUNTIME_ERROR = [[ diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 114546dd..4c3af355 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -538,7 +538,7 @@ WINDOW_CLIENT_NOT_SUPPORT_CONFIG = WINDOW_LCONFIG_NOT_SUPPORT_CONFIG= '暂不支持自动修改本地设置,请手动修改如下设置:' WINDOW_MANUAL_CONFIG_ADD = -'为 `{key}` 添加值 `{value:q}`;' +'为 `{key}` 添加元素 `{value:q}`;' WINDOW_MANUAL_CONFIG_SET = '将 `{key}` 的值设置为 `{value:q}`;' WINDOW_MANUAL_CONFIG_PROP = @@ -568,6 +568,22 @@ CONFIG_TYPE_ERROR = '设置文件必须是lua或json格式:{}' CONFIG_MODIFY_FAIL_SYNTAX_ERROR = '修改设置失败,设置文件中有语法错误:{}' +CONFIG_MODIFY_FAIL_NO_WORKSPACE = +[[ +修改设置失败: +* 当前模式为单文件模式,服务器只能在工作区中创建 `.luarc.json` 文件。 +* 语言客户端不支持从服务器侧修改设置。 + +请手动修改以下设置: +{} +]] +CONFIG_MODIFY_FAIL = +[[ +修改设置失败 + +请手动修改以下设置: +{} +]] PLUGIN_RUNTIME_ERROR = [[ diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index d738700e..b4e7b13d 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -568,6 +568,22 @@ CONFIG_TYPE_ERROR = '設定檔案必須是lua或json格式:{}' CONFIG_MODIFY_FAIL_SYNTAX_ERROR = -- TODO: need translate! 'Failed to modify settings, there are syntax errors in the settings file: {}' +CONFIG_MODIFY_FAIL_NO_WORKSPACE = -- TODO: need translate! +[[ +Failed to modify settings: +* The current mode is single-file mode, server cannot create `.luarc.json` without workspace. +* The language client dose not support modifying settings from the server side. + +Please modify following settings manually: +{} +]] +CONFIG_MODIFY_FAIL = -- TODO: need translate! +[[ +Failed to modify settings + +Please modify following settings manually: +{} +]] PLUGIN_RUNTIME_ERROR = [[ -- cgit v1.2.3