Skip to content

Commit 5255f58

Browse files
authored
Merge pull request #1139 from C3pa/some-translations
Added translations for english setting locales
2 parents f1b206c + 00aa5fd commit 5255f58

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

locale/en-us/setting.lua

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -211,37 +211,37 @@ config.IntelliSense.traceBeSetted =
211211
'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
212212
config.IntelliSense.traceFieldInject =
213213
'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
214-
config.diagnostics['unused-local'] = -- TODO: need translate!
215-
'未使用的局部变量'
216-
config.diagnostics['unused-function'] = -- TODO: need translate!
217-
'未使用的函数'
218-
config.diagnostics['undefined-global'] = -- TODO: need translate!
219-
'未定义的全局变量'
220-
config.diagnostics['global-in-nil-env'] = -- TODO: need translate!
221-
'不能使用全局变量( `_ENV` 被设置为了 `nil`)'
222-
config.diagnostics['unused-label'] = -- TODO: need translate!
223-
'未使用的标签'
224-
config.diagnostics['unused-vararg'] = -- TODO: need translate!
225-
'未使用的不定参数'
226-
config.diagnostics['trailing-space'] = -- TODO: need translate!
227-
'后置空格'
228-
config.diagnostics['redefined-local'] = -- TODO: need translate!
229-
'重复定义的局部变量'
230-
config.diagnostics['newline-call'] = -- TODO: need translate!
231-
'`(` 开始的新行,在语法上被解析为了上一行的函数调用'
214+
config.diagnostics['unused-local'] =
215+
'Enable unused local variable diagnostics.'
216+
config.diagnostics['unused-function'] =
217+
'Enable unused function diagnostics.'
218+
config.diagnostics['undefined-global'] =
219+
'Enable undefined global variable diagnostics.'
220+
config.diagnostics['global-in-nil-env'] =
221+
'Enable cannot use global variables ( `_ENV` is set to `nil`) diagnostics.'
222+
config.diagnostics['unused-label'] =
223+
'Enable unused label diagnostics.'
224+
config.diagnostics['unused-vararg'] =
225+
'Enable unused vararg diagnostics.'
226+
config.diagnostics['trailing-space'] =
227+
'Enable trailing space diagnostics.'
228+
config.diagnostics['redefined-local'] =
229+
'Enable redefined local variable diagnostics.'
230+
config.diagnostics['newline-call'] =
231+
'Enable newline call diagnostics. Is\'s raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line.'
232232
config.diagnostics['newfield-call'] = -- TODO: need translate!
233233
'在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作'
234-
config.diagnostics['redundant-parameter'] = -- TODO: need translate!
235-
'函数调用时,传入了多余的参数'
236-
config.diagnostics['ambiguity-1'] = -- TODO: need translate!
237-
'优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` '
238-
config.diagnostics['lowercase-global'] = -- TODO: need translate!
239-
'首字母小写的全局变量定义'
240-
config.diagnostics['undefined-env-child'] = -- TODO: need translate!
241-
'`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中'
242-
config.diagnostics['duplicate-index'] = -- TODO: need translate!
243-
'在字面量表中重复定义了索引'
244-
config.diagnostics['empty-block'] = -- TODO: need translate!
245-
'空代码块'
246-
config.diagnostics['redundant-value'] = -- TODO: need translate!
247-
'赋值操作时,值的数量比被赋值的对象多'
234+
config.diagnostics['redundant-parameter'] =
235+
'Enable redundant function parameter diagnostics.'
236+
config.diagnostics['ambiguity-1'] =
237+
'Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead.'
238+
config.diagnostics['lowercase-global'] =
239+
'Enable lowercase global variable definition diagnostics.'
240+
config.diagnostics['undefined-env-child'] =
241+
'Enable undefined environment variable diagnostics. It\'s raised when `_ENV` table is set to a new literal table, but the used global variable is no longer present in the global environment.'
242+
config.diagnostics['duplicate-index'] =
243+
'Enable duplicate table index diagnostics.'
244+
config.diagnostics['empty-block'] =
245+
'Enable empty code block diagnostics.'
246+
config.diagnostics['redundant-value'] =
247+
'Enable the redundant values assigned diagnostics. It\'s raised during assignment operation, when the number of values is higher than the number of objects being assigned.'

0 commit comments

Comments
 (0)