Skip to content

Commit f796504

Browse files
authored
Merge pull request #2291 from firas-assaad/fix-inject-field-message
Translate table injection diag and fix some issues
2 parents 010a803 + b875d7d commit f796504

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

locale/en-us/script.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DIAG_LINE_ONLY_SPACE =
22
'Line with spaces only.'
33
DIAG_LINE_POST_SPACE =
4-
'Line with postspace.'
4+
'Line with trailing space.'
55
DIAG_UNUSED_LOCAL =
66
'Unused local `{}`.'
77
DIAG_UNDEF_GLOBAL =
@@ -174,8 +174,8 @@ DIAG_INJECT_FIELD =
174174
'Fields cannot be injected into the reference of `{class}` for `{field}`. {fix}'
175175
DIAG_INJECT_FIELD_FIX_CLASS =
176176
'To do so, use `---@class` for `{node}`.'
177-
DIAG_INJECT_FIELD_FIX_TABLE = -- TODO: need translate!
178-
'如要允许注入,请在定义中添加 `{fix}` '
177+
DIAG_INJECT_FIELD_FIX_TABLE =
178+
'To allow injection, add `{fix}` to the definition.'
179179

180180
MWS_NOT_SUPPORT =
181181
'{} does not support multi workspace for now, I may need to restart to support the new workspace ...'
@@ -301,9 +301,9 @@ PARSER_INDEX_IN_FUNC_NAME =
301301
'The `[name]` form cannot be used in the name of a named function.'
302302
PARSER_UNKNOWN_ATTRIBUTE =
303303
'Local attribute should be `const` or `close`'
304-
PARSER_AMBIGUOUS_SYNTAX = -- TODO: need translate!
304+
PARSER_AMBIGUOUS_SYNTAX =
305305
'In Lua 5.1, the left brackets called by the function must be in the same line as the function.'
306-
PARSER_NEED_PAREN = -- TODO: need translate!
306+
PARSER_NEED_PAREN =
307307
'Need to add a pair of parentheses.'
308308
PARSER_NESTING_LONG_MARK =
309309
'Nesting of `[[...]]` is not allowed in Lua 5.1 .'
@@ -454,9 +454,9 @@ ACTION_MARK_ASYNC =
454454
'Mark current function as async.'
455455
ACTION_ADD_DICT =
456456
'Add \'{}\' to workspace dict'
457-
ACTION_FIX_ADD_PAREN = -- TODO: need translate!
457+
ACTION_FIX_ADD_PAREN =
458458
'Add parentheses.'
459-
ACTION_AUTOREQUIRE = -- TODO: need translate!
459+
ACTION_AUTOREQUIRE =
460460
"Import '{}' as {}"
461461

462462
COMMAND_DISABLE_DIAG =
@@ -1212,7 +1212,7 @@ setColor(colors.green)
12121212
LUADOC_DESC_SOURCE =
12131213
[=[
12141214
Provide a reference to some source code which lives in another file. When
1215-
searching for the defintion of an item, its `@source` will be used.
1215+
searching for the definition of an item, its `@source` will be used.
12161216
12171217
## Syntax
12181218
`@source <path>`
@@ -1260,7 +1260,7 @@ end
12601260
LUADOC_DESC_PRIVATE =
12611261
[=[
12621262
Mark a function as private to a @class. Private functions can be accessed only
1263-
from within their class and are not accessable from child classes.
1263+
from within their class and are not accessible from child classes.
12641264
12651265
## Syntax
12661266
`@private`

0 commit comments

Comments
 (0)