summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-23 17:46:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-23 17:46:30 +0800
commit54876cb601466c409eb0be1af489c7ceca7f22cf (patch)
tree5f163db31216d283347246c04b6fe469dd4c7d76 /locale
parentea72b346a69e29110482e55044b8dcf02c378863 (diff)
downloadlua-language-server-54876cb601466c409eb0be1af489c7ceca7f22cf.zip
close #415 new diagnostic: `duplicate-set-field`
Diffstat (limited to 'locale')
-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 267aeeb2..a11772cb 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -31,7 +31,7 @@ DIAG_CYCLIC_EXTENDS = 'Cyclic extends.'
DIAG_INEXISTENT_PARAM = 'Inexistent param.'
DIAG_DUPLICATE_PARAM = 'Duplicate param.'
DIAG_NEED_CLASS = 'Class needs to be defined first.'
-DIAG_DUPLICATE_FIELD = 'Duplicate field.'
+DIAG_DUPLICATE_SET_FIELD= 'Duplicate field `{}`.'
DIAG_SET_CONST = 'Assignment to const variable.'
DIAG_SET_FOR_STATE = 'Assignment to for-state variable.'
DIAG_CODE_AFTER_BREAK = 'Unable to execute code after `break`.'
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index cfbc307a..ef975c0c 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -31,7 +31,7 @@ DIAG_CYCLIC_EXTENDS = '循环继承。'
DIAG_INEXISTENT_PARAM = '不存在的参数。'
DIAG_DUPLICATE_PARAM = '重复的参数。'
DIAG_NEED_CLASS = '需要先定义 Class 。'
-DIAG_DUPLICATE_FIELD = '重复定义的 field 。'
+DIAG_DUPLICATE_SET_FIELD= '重复定义的字段 `{}`。'
DIAG_SET_CONST = '不能对常量赋值。'
DIAG_SET_FOR_STATE = '修改了循环变量。'
DIAG_CODE_AFTER_BREAK = '无法执行到 `break` 后的代码。'