summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authoruhziel <uhziel@gmail.com>2020-12-09 17:20:58 +0800
committeruhziel <uhziel@gmail.com>2020-12-09 17:20:58 +0800
commitcdb0368c12640c3fb6faa00eabeff7572f677061 (patch)
treeb983607b0576014bf627993e292fba687d88c7ee /locale
parent65b56557d79637135ce59ff6ceda44c35d8518e4 (diff)
downloadlua-language-server-cdb0368c12640c3fb6faa00eabeff7572f677061.zip
添加检测"未定义的 field"
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua1
-rw-r--r--locale/zh-cn/script.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 553f5a76..68fde894 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -2,6 +2,7 @@ DIAG_LINE_ONLY_SPACE = 'Line with spaces only.'
DIAG_LINE_POST_SPACE = 'Line with postspace.'
DIAG_UNUSED_LOCAL = 'Unused local `{}`.'
DIAG_UNDEF_GLOBAL = 'Undefined global `{}`.'
+DIAG_UNDEF_FIELD = 'Undefined field `{}`.'
DIAG_UNDEF_ENV_CHILD = 'Undefined variable `{}` (overloaded `_ENV` ).'
DIAG_UNDEF_FENV_CHILD = 'Undefined variable `{}` (inside module).'
DIAG_GLOBAL_IN_NIL_ENV = 'Invalid global (`_ENV` is `nil`).'
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index f708981f..f005bd47 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -2,6 +2,7 @@ DIAG_LINE_ONLY_SPACE = '只有空格的空行。'
DIAG_LINE_POST_SPACE = '后置空格。'
DIAG_UNUSED_LOCAL = '未使用的局部变量 `{}`。'
DIAG_UNDEF_GLOBAL = '未定义的全局变量 `{}`。'
+DIAG_UNDEF_FIELD = '未定义的 field `{}`。'
DIAG_UNDEF_ENV_CHILD = '未定义的变量 `{}`(重载了 `_ENV` )。'
DIAG_UNDEF_FENV_CHILD = '未定义的变量 `{}`(处于模块中)。'
DIAG_GLOBAL_IN_NIL_ENV = '不能使用全局变量(`_ENV`被置为了`nil`)。'