summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-24 16:53:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-24 16:53:37 +0800
commit4059df8b731c25a0463e1383f5b69fe54ae4f912 (patch)
tree85d27d937c3a3595be5538c3114edcb28482a0d1
parent829e0da21315c1dda2f2e23a1754109788a6635a (diff)
downloadlua-language-server-4059df8b731c25a0463e1383f5b69fe54ae4f912.zip
update locale
-rw-r--r--locale/en-us/setting.lua9
-rw-r--r--locale/pt-br/script.lua12
-rw-r--r--locale/pt-br/setting.lua36
-rw-r--r--locale/zh-cn/setting.lua5
-rw-r--r--locale/zh-tw/script.lua12
-rw-r--r--locale/zh-tw/setting.lua44
6 files changed, 108 insertions, 10 deletions
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua
index 541228ac..9bb2969e 100644
--- a/locale/en-us/setting.lua
+++ b/locale/en-us/setting.lua
@@ -61,13 +61,18 @@ End with `!` means override the group setting `diagnostics.groupFileStatus`.
config.diagnostics.groupSeverity =
[[
Modify the diagnostic severity in a group.
-'Fallback' means that diagnostics in this group are controlled by `diagnostics.severity` separately.
+`Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
Other settings will override individual settings without end of `!`.
]]
config.diagnostics.groupFileStatus =
[[
Modify the diagnostic needed file status in a group.
-'Fallback' means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
+
+* Opened: only diagnose opened files
+* Any: diagnose all files
+* None: disable this diagnostic
+
+`Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
Other settings will override individual settings without end of `!`.
]]
config.diagnostics.workspaceDelay =
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 3b784636..7224a360 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -116,6 +116,18 @@ DIAG_UNDEFINED_DOC_PARAM =
'Parâmetro indefinido `{}`.'
DIAG_UNKNOWN_DIAG_CODE =
'Código de diagnóstico desconhecido `{}`.'
+DIAG_CAST_LOCAL_TYPE = -- TODO: need translate!
+'This variable has explicitly defined as `{def}`. Cannot convert its type to `{ref}`.'
+DIAG_CAST_FIELD_TYPE = -- TODO: need translate!
+'This field has explicitly defined as `{def}`. Cannot convert its type to `{ref}`.'
+DIAG_ASSIGN_TYPE_MISMATCH = -- TODO: need translate!
+'Cannot assign `{ref}` to `{def}`.'
+DIAG_PARAM_TYPE_MISMATCH = -- TODO: need translate!
+'Cannot assign `{ref}` to parameter `{def}`.'
+DIAG_UNKNOWN_CAST_VARIABLE = -- TODO: need translate!
+'Unknown type conversion variable `{}`.'
+DIAG_CAST_TYPE_MISMATCH = -- TODO: need translate!
+'Cannot convert `{ref}` to `{def}`。'
MWS_NOT_SUPPORT =
'{} não é suportado múltiplos espaços de trabalho por enquanto, posso precisar reiniciar para estabelecer um novo espaço de trabalho ...'
diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua
index 50ec9473..7d9a3d0e 100644
--- a/locale/pt-br/setting.lua
+++ b/locale/pt-br/setting.lua
@@ -36,6 +36,8 @@ Adjust the enabled state of the built-in library. You can disable (or redefine)
* `enable`: always enable
* `disable`: always disable
]]
+config.runtime.meta = -- TODO: need translate!
+'Format of the directory name of the meta files.'
config.diagnostics.enable = -- TODO: need translate!
"Enable diagnostics."
config.diagnostics.disable = -- TODO: need translate!
@@ -43,12 +45,35 @@ config.diagnostics.disable = -- TODO: need translate!
config.diagnostics.globals = -- TODO: need translate!
"Defined global variables."
config.diagnostics.severity = -- TODO: need translate!
-"Modified diagnostic severity."
+[[
+Modify the diagnostic severity.
+
+End with `!` means override the group setting `diagnostics.groupSeverity`.
+]]
config.diagnostics.neededFileStatus = -- TODO: need translate!
[[
* Opened: only diagnose opened files
* Any: diagnose all files
-* Disable: disable this diagnostic
+* None: disable this diagnostic
+
+End with `!` means override the group setting `diagnostics.groupFileStatus`.
+]]
+config.diagnostics.groupSeverity = -- TODO: need translate!
+[[
+Modify the diagnostic severity in a group.
+`Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
+Other settings will override individual settings without end of `!`.
+]]
+config.diagnostics.groupFileStatus = -- TODO: need translate!
+[[
+Modify the diagnostic needed file status in a group.
+
+* Opened: only diagnose opened files
+* Any: diagnose all files
+* None: disable this diagnostic
+
+`Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
+Other settings will override individual settings without end of `!`.
]]
config.diagnostics.workspaceDelay = -- TODO: need translate!
"Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics."
@@ -213,6 +238,13 @@ config.hint.await = -- TODO: need translate!
'If the called function is marked `---@async`, prompt `await` at the call.'
config.format.enable = -- TODO: need translate!
'Enable code formatter.'
+config.format.defaultConfig = -- TODO: need translate!
+[[
+The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
+Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.
+]]
+config.spell.dict = -- TODO: need translate!
+'Custom words for spell checking.'
config.telemetry.enable = -- TODO: need translate!
[[
Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index bb357448..48c56e27 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -66,6 +66,11 @@ config.diagnostics.groupSeverity =
config.diagnostics.groupFileStatus =
[[
批量修改一个组中的文件状态。
+
+* Opened: 只诊断打开的文件
+* Any: 诊断任何文件
+* None: 禁用此诊断
+
设置为 `Fallback` 意味着组中的诊断由 `diagnostics.neededFileStatus` 单独设置。
其他设置将覆盖单独设置,但是不会覆盖以 `!` 结尾的设置。
]]
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index 88fa1b01..057b1d63 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -116,6 +116,18 @@ DIAG_UNDEFINED_DOC_PARAM =
'指向了未定義的參數 `{}`。'
DIAG_UNKNOWN_DIAG_CODE =
'未知的診斷代碼 `{}`。'
+DIAG_CAST_LOCAL_TYPE = -- TODO: need translate!
+'This variable has explicitly defined as `{def}`. Cannot convert its type to `{ref}`.'
+DIAG_CAST_FIELD_TYPE = -- TODO: need translate!
+'This field has explicitly defined as `{def}`. Cannot convert its type to `{ref}`.'
+DIAG_ASSIGN_TYPE_MISMATCH = -- TODO: need translate!
+'Cannot assign `{ref}` to `{def}`.'
+DIAG_PARAM_TYPE_MISMATCH = -- TODO: need translate!
+'Cannot assign `{ref}` to parameter `{def}`.'
+DIAG_UNKNOWN_CAST_VARIABLE = -- TODO: need translate!
+'Unknown type conversion variable `{}`.'
+DIAG_CAST_TYPE_MISMATCH = -- TODO: need translate!
+'Cannot convert `{ref}` to `{def}`。'
MWS_NOT_SUPPORT =
'{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...'
diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua
index d8af5dfd..ee7a711d 100644
--- a/locale/zh-tw/setting.lua
+++ b/locale/zh-tw/setting.lua
@@ -36,19 +36,44 @@ config.runtime.builtin =
* `enable`: 總是啟用
* `disable`: 總是停用
]]
+config.runtime.meta = -- TODO: need translate!
+'Format of the directory name of the meta files.'
config.diagnostics.enable =
"啟用診斷。"
config.diagnostics.disable =
"停用的診斷(使用浮框括號內的程式碼)。"
config.diagnostics.globals =
"已定義的全域變數。"
-config.diagnostics.severity =
-"修改診斷等級。"
-config.diagnostics.neededFileStatus =
+config.diagnostics.severity = -- TODO: need translate!
[[
-* Opened: 只診斷打開的檔案
-* Any: 診斷任何檔案
-* Disable: 停用此診斷
+Modify the diagnostic severity.
+
+End with `!` means override the group setting `diagnostics.groupSeverity`.
+]]
+config.diagnostics.neededFileStatus = -- TODO: need translate!
+[[
+* Opened: only diagnose opened files
+* Any: diagnose all files
+* None: disable this diagnostic
+
+End with `!` means override the group setting `diagnostics.groupFileStatus`.
+]]
+config.diagnostics.groupSeverity = -- TODO: need translate!
+[[
+Modify the diagnostic severity in a group.
+`Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
+Other settings will override individual settings without end of `!`.
+]]
+config.diagnostics.groupFileStatus = -- TODO: need translate!
+[[
+Modify the diagnostic needed file status in a group.
+
+* Opened: only diagnose opened files
+* Any: diagnose all files
+* None: disable this diagnostic
+
+`Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
+Other settings will override individual settings without end of `!`.
]]
config.diagnostics.workspaceDelay =
"進行工作區診斷的延遲(毫秒)。當你啟動工作區,或編輯了任意檔案後,將會在背景對整個工作區進行重新診斷。設定為負數可以停用工作區診斷。"
@@ -213,6 +238,13 @@ config.hint.await = -- TODO: need translate!
'If the called function is marked `---@async`, prompt `await` at the call.'
config.format.enable =
'啟用程式碼格式化程式。'
+config.format.defaultConfig = -- TODO: need translate!
+[[
+The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
+Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.
+]]
+config.spell.dict = -- TODO: need translate!
+'Custom words for spell checking.'
config.telemetry.enable =
[[
啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81%E8%81%B2%E6%98%8E)閲讀我們的隱私聲明。