diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-15 18:03:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-15 18:03:34 +0800 |
commit | 2426bbe0758801ecfe4369d72f6755e9ef193cc5 (patch) | |
tree | 28fd3385b767b6eea451b1cbc95bce624ce9a879 /locale | |
parent | 4e68872ea96a53f9c7ad5e11c83794b92f477fb4 (diff) | |
download | lua-language-server-2426bbe0758801ecfe4369d72f6755e9ef193cc5.zip |
diagnostic: improve `newline-call`
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-us/script.lua | 4 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index f39720e2..a1ec0e17 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -13,8 +13,8 @@ DIAG_UNUSED_VARARG = 'Unused vararg.' DIAG_REDEFINED_LOCAL = 'Redefined local `{}`.' DIAG_DUPLICATE_INDEX = 'Duplicate index `{}`.' DIAG_DUPLICATE_METHOD = 'Duplicate method `{}`.' -DIAG_PREVIOUS_CALL = 'Parsed as function call for the previous line. It may be necessary to add a `;` before.' -DIAG_PREFIELD_CALL = 'Parsed as `{} {}`. It may be necessary to add a `,` or `;` in the middle.' +DIAG_PREVIOUS_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,`.' +DIAG_PREFIELD_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.' 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.' diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 53149a6f..386d2cc5 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -13,8 +13,8 @@ DIAG_UNUSED_VARARG = '未使用的不定参数。' DIAG_REDEFINED_LOCAL = '重定义局部变量 `{}`。' DIAG_DUPLICATE_INDEX = '重复的索引 `{}`。' DIAG_DUPLICATE_METHOD = '重复的方法 `{}`。' -DIAG_PREVIOUS_CALL = '解析为了上一行的函数调用。你可能需要在前面加一个 `;`。' -DIAG_PREFIELD_CALL = '解析为了 `{} {}`。你可能需要在中间加一个`,`或`;`。' +DIAG_PREVIOUS_CALL = '会被解释为 `{}{}`。你可能需要加一个 `;`。' +DIAG_PREFIELD_CALL = '会被解释为 `{}{}`。你可能需要加一个`,`或`;`。' DIAG_OVER_MAX_ARGS = '函数只接收 {:d} 个参数,但你传了 {:d} 个。' DIAG_OVER_MAX_VALUES = '只有 {} 个变量,但你设置了 {} 个值。' DIAG_AMBIGUITY_1 = '会优先运算 `{}`,你可能需要加个括号。' |