summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-20 15:26:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-20 15:26:41 +0800
commitbd0b92bd278a3cb6237e69f7e7fd5fdc9e6274d7 (patch)
tree04e2c0381e276e58d123b9fc1a14eb90ac1bd947
parente20e8f174cc7125bf996a3ff3bd57c097daa1ab4 (diff)
downloadlua-language-server-bd0b92bd278a3cb6237e69f7e7fd5fdc9e6274d7.zip
#546 `lowercase-global` has a more friendly desc
-rw-r--r--locale/en-us/script.lua2
-rw-r--r--locale/zh-cn/script.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 16a3ffa5..41bcc715 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -18,7 +18,7 @@ DIAG_PREFIELD_CALL = 'Will be interpreted as `{}{}`. It may be necessary to
DIAG_OVER_MAX_ARGS = 'The function takes only {:d} parameters, but you passed {:d}.'
DIAG_OVER_MAX_ARGS = 'Only has {} variables, but you set {} values.'
DIAG_AMBIGUITY_1 = 'Compute `{}` first. You may need to add brackets.'
-DIAG_LOWERCASE_GLOBAL = 'Global variable in lowercase initial.'
+DIAG_LOWERCASE_GLOBAL = 'Global variable in lowercase initial, Did you miss `local` or misspell it?'
DIAG_EMPTY_BLOCK = 'Empty block.'
DIAG_DIAGNOSTICS = 'Lua Diagnostics.'
DIAG_SYNTAX_CHECK = 'Lua Syntax Check.'
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index 3a60c691..c6971502 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -18,7 +18,7 @@ DIAG_PREFIELD_CALL = '会被解释为 `{}{}`。你可能需要加一个`,`
DIAG_OVER_MAX_ARGS = '函数只接收 {:d} 个参数,但你传了 {:d} 个。'
DIAG_OVER_MAX_VALUES = '只有 {} 个变量,但你设置了 {} 个值。'
DIAG_AMBIGUITY_1 = '会优先运算 `{}`,你可能需要加个括号。'
-DIAG_LOWERCASE_GLOBAL = '首字母小写的全局变量'
+DIAG_LOWERCASE_GLOBAL = '首字母小写的全局变量,你是否漏了 `local` 或是有拼写错误?'
DIAG_EMPTY_BLOCK = '空代码块'
DIAG_DIAGNOSTICS = 'Lua 诊断'
DIAG_SYNTAX_CHECK = 'Lua 语法检查'