summaryrefslogtreecommitdiff
path: root/locale/zh-cn
diff options
context:
space:
mode:
authorAndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com>2023-03-30 14:49:30 +0200
committerGitHub <noreply@github.com>2023-03-30 14:49:30 +0200
commit43794193ef981ffecb477bfce444428ded852aa0 (patch)
tree956e4c3feb41a309e1345c48aaff987501a483c2 /locale/zh-cn
parent429c48fcb453aeb2de0df55492895d51ad9596f0 (diff)
downloadlua-language-server-43794193ef981ffecb477bfce444428ded852aa0.zip
Add diagnostic to enforce lowercase local element names (#2)
Diffstat (limited to 'locale/zh-cn')
-rw-r--r--locale/zh-cn/script.lua4
-rw-r--r--locale/zh-cn/setting.lua6
2 files changed, 7 insertions, 3 deletions
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index f6f639ea..da817698 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -150,8 +150,10 @@ DIAG_INVISIBLE_PROTECTED =
'字段 `{field}` 受到保护,只能在 `{class}` 类极其子类中才能访问。'
DIAG_INVISIBLE_PACKAGE =
'字段 `{field}` 只能在相同的文件 `{uri}` 中才能访问。'
-DIAG_GLOBAL_ELEMENT = -- TODO: need translate!
+DIAG_GLOBAL_ELEMENT = -- TODO: need translate!
'Element is global.'
+DIAG_UPPERCASE_LOCAL = -- TODO: need translate!
+'Local element `{}` must start with lowercase letter'
MWS_NOT_SUPPORT =
'{} 目前还不支持多工作目录,我可能需要重启才能支持新的工作目录...'
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index 731190e2..e1eb7de9 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -414,8 +414,10 @@ config.diagnostics['unknown-operator'] = -- TODO: need translate!
'Enable diagnostics for unknown operators.'
config.diagnostics['unreachable-code'] = -- TODO: need translate!
'Enable diagnostics for unreachable code.'
-config.diagnostics['global-element'] = -- TODO: need translate!
-'Enable diagnostics to warn about global elements.'
+config.diagnostics['global-element'] = -- TODO: need translate!
+'Enable diagnostics to warn about global variables.'
+config.diagnostics['uppercase-local'] = -- TODO: need translate!
+'Enable diagnostics to warn about local element names starting with an uppercase letter.'
config.typeFormat.config = -- TODO: need translate!
'Configures the formatting behavior while typing Lua code.'
config.typeFormat.config.auto_complete_end = -- TODO: need translate!