summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-16 20:46:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-16 20:46:59 +0800
commitce7c78af623ed45f4f897a4610de8b04aec3d4a4 (patch)
tree9f78575e44ef0112005d11b6475b1137e188b1c7 /locale
parent68d88b39691ad7aae0ee1380567c7d40f87ba8d3 (diff)
downloadlua-language-server-ce7c78af623ed45f4f897a4610de8b04aec3d4a4.zip
updata locale
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua4
-rw-r--r--locale/en-us/setting.lua34
-rw-r--r--locale/pt-br/meta.lua30
-rw-r--r--locale/pt-br/script.lua63
-rw-r--r--locale/pt-br/setting.lua245
-rw-r--r--locale/zh-cn/meta.lua55
-rw-r--r--locale/zh-cn/script.lua22
-rw-r--r--locale/zh-tw/meta.lua55
-rw-r--r--locale/zh-tw/script.lua24
9 files changed, 466 insertions, 66 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 3cbe0113..d7e883ae 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -315,6 +315,8 @@ HOVER_TABLE_TIME_UP =
'Partial type inference has been disabled for performance reasons.'
HOVER_WS_LOADING =
'Workspace loading: {} / {}'
+HOVER_AWAIT_TOOLTIP = -- TODO: need translate!
+'正在调用异步函数,可能会让出当前协程'
ACTION_DISABLE_DIAG =
'Disable diagnostics in the workspace ({}).'
@@ -430,6 +432,8 @@ WINDOW_PROCESSING_SEMANTIC_FULL =
'Processing full semantic tokens...'
WINDOW_PROCESSING_SEMANTIC_RANGE =
'Processing incremental semantic tokens...'
+WINDOW_PROCESSING_HINT = -- TODO: need translate!
+'正在处理内联提示...'
WINDOW_PROCESSING_TYPE_HINT =
'Processing inline hint...'
WINDOW_INCREASE_UPPER_LIMIT =
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua
index 28cfdb64..3e0bcd67 100644
--- a/locale/en-us/setting.lua
+++ b/locale/en-us/setting.lua
@@ -211,3 +211,37 @@ config.IntelliSense.traceBeSetted =
'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
config.IntelliSense.traceFieldInject =
'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
+config.diagnostics['unused-local'] = -- TODO: need translate!
+'未使用的局部变量'
+config.diagnostics['unused-function'] = -- TODO: need translate!
+'未使用的函数'
+config.diagnostics['undefined-global'] = -- TODO: need translate!
+'未定义的全局变量'
+config.diagnostics['global-in-nil-env'] = -- TODO: need translate!
+'不能使用全局变量( `_ENV` 被设置为了 `nil`)'
+config.diagnostics['unused-label'] = -- TODO: need translate!
+'未使用的标签'
+config.diagnostics['unused-vararg'] = -- TODO: need translate!
+'未使用的不定参数'
+config.diagnostics['trailing-space'] = -- TODO: need translate!
+'后置空格'
+config.diagnostics['redefined-local'] = -- TODO: need translate!
+'重复定义的局部变量'
+config.diagnostics['newline-call'] = -- TODO: need translate!
+'以 `(` 开始的新行,在语法上被解析为了上一行的函数调用'
+config.diagnostics['newfield-call'] = -- TODO: need translate!
+'在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作'
+config.diagnostics['redundant-parameter'] = -- TODO: need translate!
+'函数调用时,传入了多余的参数'
+config.diagnostics['ambiguity-1'] = -- TODO: need translate!
+'优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` '
+config.diagnostics['lowercase-global'] = -- TODO: need translate!
+'首字母小写的全局变量定义'
+config.diagnostics['undefined-env-child'] = -- TODO: need translate!
+'`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中'
+config.diagnostics['duplicate-index'] = -- TODO: need translate!
+'在字面量表中重复定义了索引'
+config.diagnostics['empty-block'] = -- TODO: need translate!
+'空代码块'
+config.diagnostics['redundant-value'] = -- TODO: need translate!
+'赋值操作时,值的数量比被赋值的对象多'
diff --git a/locale/pt-br/meta.lua b/locale/pt-br/meta.lua
index 519bf41c..aa530354 100644
--- a/locale/pt-br/meta.lua
+++ b/locale/pt-br/meta.lua
@@ -333,19 +333,19 @@ infowhat.n =
'`name` e `namewhat`'
infowhat.S =
'`source`, `short_src`, `linedefined`, `lastlinedefined` e `what`'
-infowhat.l =
+infowhat.l = -- TODO: need translate!
'`currentline`'
-infowhat.t =
+infowhat.t = -- TODO: need translate!
'`istailcall`'
-infowhat.u['<5.1'] =
+infowhat.u['<5.1'] = -- TODO: need translate!
'`nups`'
infowhat.u['>5.2'] =
'`nups`, `nparams` e `isvararg`'
-infowhat.f =
+infowhat.f = -- TODO: need translate!
'`func`'
infowhat.r =
'`ftransfer` e `ntransfer`'
-infowhat.L =
+infowhat.L = -- TODO: need translate!
'`activelines`'
hookmask.c =
@@ -361,7 +361,7 @@ file[':close'] =
'Fecha o arquivo `file`.'
file[':flush'] =
'Salva qualquer dado de entrada no arquivo `file`.'
-file[':lines'] =
+file[':lines'] = -- TODO: need translate!
[[
------
```lua
@@ -416,7 +416,7 @@ io.flush =
'Salva todos os dados gravados no arquivo de saída padrão.'
io.input =
'Define o arquivo de entrada padrão.'
-io.lines =
+io.lines = -- TODO: need translate!
[[
------
```lua
@@ -593,15 +593,15 @@ os.tmpname =
osdate.year =
'Quatro dígitos.'
-osdate.month =
+osdate.month = -- TODO: need translate!
'1-12'
-osdate.day =
+osdate.day = -- TODO: need translate!
'1-31'
-osdate.hour =
+osdate.hour = -- TODO: need translate!
'0-23'
-osdate.min =
+osdate.min = -- TODO: need translate!
'0-59'
-osdate.sec =
+osdate.sec = -- TODO: need translate!
'0-61'
osdate.wday =
'Dia da semana, 1–7, Domingo é 1'
@@ -720,6 +720,12 @@ Retorna os elementos da lista fornecida. Esta função é equivalente a
```
Por padrão, `i` é `1` e `j` é `#list`.
]]
+table.foreach = -- TODO: need translate!
+'Executes the given f over all elements of table. For each element, f is called with the index and respective value as arguments. If f returns a non-nil value, then the loop is broken, and this value is returned as the final value of foreach.'
+table.foreachi = -- TODO: need translate!
+'Executes the given f over the numerical indices of table. For each index, f is called with the index and respective value as arguments. Indices are visited in sequential order, from 1 to n, where n is the size of the table. If f returns a non-nil value, then the loop is broken and this value is returned as the result of foreachi.'
+table.getn = -- TODO: need translate!
+'Returns the number of elements in the table. This function is equivalent to `#list`.'
utf8 =
''
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 3b539293..47df6210 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -34,6 +34,8 @@ DIAG_PREFIELD_CALL =
'Será interpretado como `{}{}`. Pode ser necessário adicionar uma `,` ou `;`.'
DIAG_OVER_MAX_ARGS =
'A função aceita apenas os parâmetros {:d}, mas você passou {:d}.'
+DIAG_OVER_MAX_VALUES = -- TODO: need translate!
+'Only has {} variables, but you set {} values.'
DIAG_AMBIGUITY_1 =
'Calcule primeiro `{}`. Você pode precisar adicionar colchetes.'
DIAG_LOWERCASE_GLOBAL =
@@ -86,6 +88,12 @@ DIAG_DIFFERENT_REQUIRES =
'O mesmo arquivo é necessário com nomes diferentes.'
DIAG_REDUNDANT_RETURN =
'Retorno redundante.'
+DIAG_AWAIT_IN_SYNC = -- TODO: need translate!
+'Async function can only be called in async function.'
+DIAG_NOT_YIELDABLE = -- TODO: need translate!
+'The {}th parameter of this function was not marked as yieldable, but an async function was passed in. (Use `---@param name async fun()` to mark as yieldable)'
+DIAG_DISCARD_RETURNS = -- TODO: need translate!
+'The return values of this function cannot be discarded.'
DIAG_CIRCLE_DOC_CLASS =
'Classes com herança cíclica.'
DIAG_DOC_FIELD_NO_CLASS =
@@ -264,34 +272,34 @@ PARSER_LUADOC_MISS_DIAG_MODE =
PARSER_LUADOC_ERROR_DIAG_MODE =
'<diagnostic mode> incorreto.'
-SYMBOL_ANONYMOUS =
+SYMBOL_ANONYMOUS = -- TODO: need translate!
'<Anonymous>'
HOVER_VIEW_DOCUMENTS =
'Visualizar documentos'
-HOVER_DOCUMENT_LUA51 =
+HOVER_DOCUMENT_LUA51 = -- TODO: need translate!
'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_DOCUMENT_LUA52 =
+HOVER_DOCUMENT_LUA52 = -- TODO: need translate!
'http://www.lua.org/manual/5.2/manual.html#{}'
-HOVER_DOCUMENT_LUA53 =
+HOVER_DOCUMENT_LUA53 = -- TODO: need translate!
'http://www.lua.org/manual/5.3/manual.html#{}'
-HOVER_DOCUMENT_LUA54 =
+HOVER_DOCUMENT_LUA54 = -- TODO: need translate!
'http://www.lua.org/manual/5.4/manual.html#{}'
-HOVER_DOCUMENT_LUAJIT =
+HOVER_DOCUMENT_LUAJIT = -- TODO: need translate!
'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_NATIVE_DOCUMENT_LUA51 =
+HOVER_NATIVE_DOCUMENT_LUA51 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA52 =
+HOVER_NATIVE_DOCUMENT_LUA52 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/52/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA53 =
+HOVER_NATIVE_DOCUMENT_LUA53 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/53/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA54 =
+HOVER_NATIVE_DOCUMENT_LUA54 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUAJIT =
+HOVER_NATIVE_DOCUMENT_LUAJIT = -- TODO: need translate!
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
HOVER_MULTI_PROTOTYPE =
'({} protótipos)'
-HOVER_STRING_BYTES =
+HOVER_STRING_BYTES = -- TODO: need translate!
'{} bytes'
HOVER_STRING_CHARACTERS =
'{} bytes, {} caracteres'
@@ -307,6 +315,8 @@ HOVER_TABLE_TIME_UP =
'Inferência de tipo parcial foi desativada por motivos de desempenho.'
HOVER_WS_LOADING =
'Carregando espaço de trabalho: {} / {}'
+HOVER_AWAIT_TOOLTIP = -- TODO: need translate!
+'正在调用异步函数,可能会让出当前协程'
ACTION_DISABLE_DIAG =
'Desativar diagnósticos no espaço de trabalho ({}).'
@@ -362,6 +372,8 @@ ACTION_DISABLE_DIAG_LINE=
'Desativa diagnósticos nesta linha ({}).'
ACTION_DISABLE_DIAG_FILE=
'Desativa diagnósticos nesta linha ({}).'
+ACTION_MARK_ASYNC = -- TODO: need translate!
+'Mark current function as async.'
COMMAND_DISABLE_DIAG =
'Desativar diagnósticos.'
@@ -420,6 +432,8 @@ WINDOW_PROCESSING_SEMANTIC_FULL =
'Processando tokens semânticas completos...'
WINDOW_PROCESSING_SEMANTIC_RANGE =
'Processando tokens semânticas incrementais...'
+WINDOW_PROCESSING_HINT = -- TODO: need translate!
+'正在处理内联提示...'
WINDOW_PROCESSING_TYPE_HINT =
'Processando dicas de lina...'
WINDOW_INCREASE_UPPER_LIMIT =
@@ -440,6 +454,17 @@ WINDOW_LUA_STATUS_CACHED_FILES =
'Arquivos em cache: {ast}/{max}'
WINDOW_LUA_STATUS_MEMORY_COUNT =
'Uso de memória : {mem:.f}M'
+WINDOW_LUA_STATUS_TIP = -- TODO: need translate!
+[[
+
+This icon is a cat,
+Not a dog nor a fox!
+ ↓↓↓
+]]
+WINDOW_LUA_STATUS_DIAGNOSIS_TITLE= -- TODO: need translate!
+'Perform workspace diagnosis'
+WINDOW_LUA_STATUS_DIAGNOSIS_MSG = -- TODO: need translate!
+'Do you want to perform workspace diagnosis?'
WINDOW_APPLY_SETTING =
'Aplicar configuração'
WINDOW_CHECK_SEMANTIC =
@@ -466,6 +491,8 @@ WINDOW_APPLY_WHITOUT_SETTING =
'Aplicar mas não modificar configurações'
WINDOW_ASK_APPLY_LIBRARY =
'Você precisa configurar seu ambiente de trabalho como `{}`?'
+WINDOW_SEARCHING_IN_FILES = -- TODO: need translate!
+'Searching in files...'
CONFIG_LOAD_FAILED =
'Não é possível ler o arquivo de configurações: {}'
@@ -495,3 +522,15 @@ PLUGIN_TRUST_NO =
Não carregue este plugin
]]
+CLI_CHECK_ERROR_TYPE = -- TODO: need translate!
+'The argument of CHECK must be a string, but got {}'
+CLI_CHECK_ERROR_URI = -- TODO: need translate!
+'The argument of CHECK must be a valid uri, but got {}'
+CLI_CHECK_ERROR_LEVEL = -- TODO: need translate!
+'Checklevel must be one of: {}'
+CLI_CHECK_INITING = -- TODO: need translate!
+'Initializing ...'
+CLI_CHECK_SUCCESS = -- TODO: need translate!
+'Diagnosis completed, no problems found'
+CLI_CHECK_RESULTS = -- TODO: need translate!
+'Diagnosis complete, {} problems found, see {}'
diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua
index 3b1c877d..501236f0 100644
--- a/locale/pt-br/setting.lua
+++ b/locale/pt-br/setting.lua
@@ -1,2 +1,247 @@
---@diagnostic disable: undefined-global
+config.runtime.version = -- TODO: need translate!
+"Lua runtime version."
+config.runtime.path = -- TODO: need translate!
+[[
+When using `require`, how to find the file based on the input name.
+Setting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.
+if `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.
+If you want to load files outside the workspace, you need to set `Lua.workspace.library` first.
+]]
+config.runtime.pathStrict = -- TODO: need translate!
+'When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.'
+config.runtime.special = -- TODO: need translate!
+[[The custom global variables are regarded as some special built-in variables, and the language server will provide special support
+The following example shows that 'include' is treated as' require '.
+```json
+"Lua.runtime.special" : {
+ "include" : "require"
+}
+```
+]]
+config.runtime.unicodeName = -- TODO: need translate!
+"Allows Unicode characters in name."
+config.runtime.nonstandardSymbol = -- TODO: need translate!
+"Supports non-standard symbols. Make sure that your runtime environment supports these symbols."
+config.runtime.plugin = -- TODO: need translate!
+"Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more."
+config.runtime.fileEncoding = -- TODO: need translate!
+"File encoding. The `ansi` option is only available under the `Windows` platform."
+config.runtime.builtin = -- TODO: need translate!
+[[
+Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.
+
+* `default`: Indicates that the library will be enabled or disabled according to the runtime version
+* `enable`: always enable
+* `disable`: always disable
+]]
+config.diagnostics.enable = -- TODO: need translate!
+"Enable diagnostics."
+config.diagnostics.disable = -- TODO: need translate!
+"Disabled diagnostic (Use code in hover brackets)."
+config.diagnostics.globals = -- TODO: need translate!
+"Defined global variables."
+config.diagnostics.severity = -- TODO: need translate!
+"Modified diagnostic severity."
+config.diagnostics.neededFileStatus = -- TODO: need translate!
+[[
+* Opened: only diagnose opened files
+* Any: diagnose all files
+* Disable: disable this diagnostic
+]]
+config.diagnostics.workspaceDelay = -- TODO: need translate!
+"Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics."
+config.diagnostics.workspaceRate = -- TODO: need translate!
+"Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting."
+config.diagnostics.libraryFiles = -- TODO: need translate!
+"How to diagnose files loaded via `Lua.workspace.library`."
+config.diagnostics.ignoredFiles = -- TODO: need translate!
+"How to diagnose ignored files."
+config.diagnostics.files.Enable = -- TODO: need translate!
+"Always diagnose these files."
+config.diagnostics.files.Opened = -- TODO: need translate!
+"Only when these files are opened will it be diagnosed."
+config.diagnostics.files.Disable = -- TODO: need translate!
+"These files are not diagnosed."
+config.workspace.ignoreDir = -- TODO: need translate!
+"Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir,
+config.workspace.ignoreSubmodules = -- TODO: need translate!
+"Ignore submodules."
+config.workspace.useGitIgnore = -- TODO: need translate!
+"Ignore files list in `.gitignore` ."
+config.workspace.maxPreload = -- TODO: need translate!
+"Max preloaded files."
+config.workspace.preloadFileSize = -- TODO: need translate!
+"Skip files larger than this value (KB) when preloading."
+config.workspace.library = -- TODO: need translate!
+"In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files."
+config.workspace.checkThirdParty = -- TODO: need translate!
+[[
+Automatic detection and adaptation of third-party libraries, currently supported libraries are:
+
+* OpenResty
+* Cocos4.0
+* LÖVE
+* LÖVR
+* skynet
+* Jass
+]]
+config.workspace.userThirdParty = -- TODO: need translate!
+'Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)'
+config.completion.enable = -- TODO: need translate!
+'Enable completion.'
+config.completion.callSnippet = -- TODO: need translate!
+'Shows function call snippets.'
+config.completion.callSnippet.Disable = -- TODO: need translate!
+"Only shows `function name`."
+config.completion.callSnippet.Both = -- TODO: need translate!
+"Shows `function name` and `call snippet`."
+config.completion.callSnippet.Replace = -- TODO: need translate!
+"Only shows `call snippet.`"
+config.completion.keywordSnippet = -- TODO: need translate!
+'Shows keyword syntax snippets.'
+config.completion.keywordSnippet.Disable = -- TODO: need translate!
+"Only shows `keyword`."
+config.completion.keywordSnippet.Both = -- TODO: need translate!
+"Shows `keyword` and `syntax snippet`."
+config.completion.keywordSnippet.Replace = -- TODO: need translate!
+"Only shows `syntax snippet`."
+config.completion.displayContext = -- TODO: need translate!
+"Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to `0`, this feature can be disabled."
+config.completion.workspaceWord = -- TODO: need translate!
+"Whether the displayed context word contains the content of other files in the workspace."
+config.completion.showWord = -- TODO: need translate!
+"Show contextual words in suggestions."
+config.completion.showWord.Enable = -- TODO: need translate!
+"Always show context words in suggestions."
+config.completion.showWord.Fallback = -- TODO: need translate!
+"Contextual words are only displayed when suggestions based on semantics cannot be provided."
+config.completion.showWord.Disable = -- TODO: need translate!
+"Do not display context words."
+config.completion.autoRequire = -- TODO: need translate!
+"When the input looks like a file name, automatically `require` this file."
+config.completion.showParams = -- TODO: need translate!
+"Display parameters in completion list. When the function has multiple definitions, they will be displayed separately."
+config.completion.requireSeparator = -- TODO: need translate!
+"The separator used when `require`."
+config.completion.postfix = -- TODO: need translate!
+"The symbol used to trigger the postfix suggestion."
+config.color.mode = -- TODO: need translate!
+"Color mode."
+config.color.mode.Semantic = -- TODO: need translate!
+"Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect."
+config.color.mode.SemanticEnhanced = -- TODO: need translate!
+"Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive."
+config.color.mode.Grammar = -- TODO: need translate!
+"Grammar color."
+config.semantic.enable = -- TODO: need translate!
+"Enable semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect."
+config.semantic.variable = -- TODO: need translate!
+"Semantic coloring of variables/fields/parameters."
+config.semantic.annotation = -- TODO: need translate!
+"Semantic coloring of type annotations."
+config.semantic.keyword = -- TODO: need translate!
+"Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring."
+config.signatureHelp.enable = -- TODO: need translate!
+"Enable signature help."
+config.hover.enable = -- TODO: need translate!
+"Enable hover."
+config.hover.viewString = -- TODO: need translate!
+"Hover to view the contents of a string (only if the literal contains an escape character)."
+config.hover.viewStringMax = -- TODO: need translate!
+"The maximum length of a hover to view the contents of a string."
+config.hover.viewNumber = -- TODO: need translate!
+"Hover to view numeric content (only if literal is not decimal)."
+config.hover.fieldInfer = -- TODO: need translate!
+"When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped."
+config.hover.previewFields = -- TODO: need translate!
+"When hovering to view a table, limits the maximum number of previews for fields."
+config.hover.enumsLimit = -- TODO: need translate!
+"When the value corresponds to multiple types, limit the number of types displaying."
+config.develop.enable = -- TODO: need translate!
+'Developer mode. Do not enable, performance will be affected.'
+config.develop.debuggerPort = -- TODO: need translate!
+'Listen port of debugger.'
+config.develop.debuggerWait = -- TODO: need translate!
+'Suspend before debugger connects.'
+config.intelliSense.searchDepth = -- TODO: need translate!
+'Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.'
+config.intelliSense.fastGlobal = -- TODO: need translate!
+'In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.'
+config.window.statusBar = -- TODO: need translate!
+'Show extension status in status bar.'
+config.window.progressBar = -- TODO: need translate!
+'Show progress bar in status bar.'
+config.hint.enable = -- TODO: need translate!
+'Enable inlay hint.'
+config.hint.paramType = -- TODO: need translate!
+'Show type hints at the parameter of the function.'
+config.hint.setType = -- TODO: need translate!
+'Show hints of type at assignment operation.'
+config.hint.paramName = -- TODO: need translate!
+'Show hints of parameter name at the function call.'
+config.hint.paramName.All = -- TODO: need translate!
+'All types of parameters are shown.'
+config.hint.paramName.Literal = -- TODO: need translate!
+'Only literal type parameters are shown.'
+config.hint.paramName.Disable = -- TODO: need translate!
+'Disable parameter hints.'
+config.hint.arrayIndex = -- TODO: need translate!
+'Show hints of array index when constructing a table.'
+config.hint.arrayIndex.Enable = -- TODO: need translate!
+'Show hints in all tables.'
+config.hint.arrayIndex.Auto = -- TODO: need translate!
+'Show hints only when the table is greater than 3 items, or the table is a mixed table.'
+config.hint.arrayIndex.Disable = -- TODO: need translate!
+'Disable hints of array index.'
+config.format.enable = -- TODO: need translate!
+'Enable code formatter.'
+config.telemetry.enable = -- TODO: need translate!
+[[
+Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).
+]]
+config.misc.parameters = -- TODO: need translate!
+'[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.'
+config.IntelliSense.traceLocalSet = -- TODO: need translate!
+'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
+config.IntelliSense.traceReturn = -- TODO: need translate!
+'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
+config.IntelliSense.traceBeSetted = -- TODO: need translate!
+'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
+config.IntelliSense.traceFieldInject = -- TODO: need translate!
+'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.'
+config.diagnostics['unused-local'] = -- TODO: need translate!
+'未使用的局部变量'
+config.diagnostics['unused-function'] = -- TODO: need translate!
+'未使用的函数'
+config.diagnostics['undefined-global'] = -- TODO: need translate!
+'未定义的全局变量'
+config.diagnostics['global-in-nil-env'] = -- TODO: need translate!
+'不能使用全局变量( `_ENV` 被设置为了 `nil`)'
+config.diagnostics['unused-label'] = -- TODO: need translate!
+'未使用的标签'
+config.diagnostics['unused-vararg'] = -- TODO: need translate!
+'未使用的不定参数'
+config.diagnostics['trailing-space'] = -- TODO: need translate!
+'后置空格'
+config.diagnostics['redefined-local'] = -- TODO: need translate!
+'重复定义的局部变量'
+config.diagnostics['newline-call'] = -- TODO: need translate!
+'以 `(` 开始的新行,在语法上被解析为了上一行的函数调用'
+config.diagnostics['newfield-call'] = -- TODO: need translate!
+'在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作'
+config.diagnostics['redundant-parameter'] = -- TODO: need translate!
+'函数调用时,传入了多余的参数'
+config.diagnostics['ambiguity-1'] = -- TODO: need translate!
+'优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` '
+config.diagnostics['lowercase-global'] = -- TODO: need translate!
+'首字母小写的全局变量定义'
+config.diagnostics['undefined-env-child'] = -- TODO: need translate!
+'`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中'
+config.diagnostics['duplicate-index'] = -- TODO: need translate!
+'在字面量表中重复定义了索引'
+config.diagnostics['empty-block'] = -- TODO: need translate!
+'空代码块'
+config.diagnostics['redundant-value'] = -- TODO: need translate!
+'赋值操作时,值的数量比被赋值的对象多'
diff --git a/locale/zh-cn/meta.lua b/locale/zh-cn/meta.lua
index f9e39cb2..c00aaf85 100644
--- a/locale/zh-cn/meta.lua
+++ b/locale/zh-cn/meta.lua
@@ -311,19 +311,19 @@ infowhat.n =
'`name` 和 `namewhat`'
infowhat.S =
'`source`,`short_src`,`linedefined`,`lalinedefined`,和 `what`'
-infowhat.l =
+infowhat.l = -- TODO: need translate!
'`currentline`'
-infowhat.t =
+infowhat.t = -- TODO: need translate!
'`istailcall`'
-infowhat.u['<5.1'] =
+infowhat.u['<5.1'] = -- TODO: need translate!
'`nups`'
infowhat.u['>5.2'] =
'`nups`、`nparams` 和 `isvararg`'
-infowhat.f =
+infowhat.f = -- TODO: need translate!
'`func`'
infowhat.r =
'`ftransfer` 和 `ntransfer`'
-infowhat.L =
+infowhat.L = -- TODO: need translate!
'`activelines`'
hookmask.c =
@@ -339,7 +339,7 @@ file[':close'] =
'关闭 `file`。'
file[':flush'] =
'将写入的数据保存到 `file` 中。'
-file[':lines'] =
+file[':lines'] = -- TODO: need translate!
[[
------
```lua
@@ -394,7 +394,7 @@ io.flush =
'将写入的数据保存到默认输出文件中。'
io.input =
'设置 `file` 为默认输入文件。'
-io.lines =
+io.lines = -- TODO: need translate!
[[
------
```lua
@@ -571,15 +571,15 @@ os.tmpname =
osdate.year =
'四位数字'
-osdate.month =
+osdate.month = -- TODO: need translate!
'1-12'
-osdate.day =
+osdate.day = -- TODO: need translate!
'1-31'
-osdate.hour =
+osdate.hour = -- TODO: need translate!
'0-23'
-osdate.min =
+osdate.min = -- TODO: need translate!
'0-59'
-osdate.sec =
+osdate.sec = -- TODO: need translate!
'0-61'
osdate.wday =
'星期几,1-7,星期天为 1'
@@ -684,7 +684,36 @@ a1[f],···,a1[e]
return a2
```
]]
-
+string.rep['>5.2'] = -- TODO: need translate!
+'Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.'
+string.rep['<5.1'] = -- TODO: need translate!
+'Returns a string that is the concatenation of `n` copies of the string `s` .'
+string.reverse = -- TODO: need translate!
+'Returns a string that is the string `s` reversed.'
+string.sub = -- TODO: need translate!
+'Returns the substring of the string that starts at `i` and continues until `j`.'
+string.unpack = -- TODO: need translate!
+'Returns the values packed in string according to the format string `fmt` (see §6.4.2) .'
+string.upper = -- TODO: need translate!
+'Returns a copy of this string with all lowercase letters changed to uppercase.'
+
+table = -- TODO: need translate!
+''
+table.concat = -- TODO: need translate!
+'Given a list where all elements are strings or numbers, returns the string `list[i]..sep..list[i+1] ··· sep..list[j]`.'
+table.insert = -- TODO: need translate!
+'Inserts element `value` at position `pos` in `list`.'
+table.maxn = -- TODO: need translate!
+'Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.'
+table.move = -- TODO: need translate!
+[[
+Moves elements from table `a1` to table `a2`.
+```lua
+a2[t],··· =
+a1[f],···,a1[e]
+return a2
+```
+]]
table.pack =
'返回用所有参数以键 `1`,`2`, 等填充的新表, 并将 `"n"` 这个域设为参数的总数。'
table.remove =
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index 79ae4c54..d99b788e 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -277,25 +277,25 @@ SYMBOL_ANONYMOUS =
HOVER_VIEW_DOCUMENTS =
'查看文档'
-HOVER_DOCUMENT_LUA51 =
+HOVER_DOCUMENT_LUA51 = -- TODO: need translate!
'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_DOCUMENT_LUA52 =
+HOVER_DOCUMENT_LUA52 = -- TODO: need translate!
'http://www.lua.org/manual/5.2/manual.html#{}'
HOVER_DOCUMENT_LUA53 =
'http://cloudwu.github.io/lua53doc/manual.html#{}'
-HOVER_DOCUMENT_LUA54 =
+HOVER_DOCUMENT_LUA54 = -- TODO: need translate!
'http://www.lua.org/manual/5.4/manual.html#{}'
-HOVER_DOCUMENT_LUAJIT =
+HOVER_DOCUMENT_LUAJIT = -- TODO: need translate!
'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_NATIVE_DOCUMENT_LUA51 =
+HOVER_NATIVE_DOCUMENT_LUA51 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA52 =
+HOVER_NATIVE_DOCUMENT_LUA52 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/52/manual.html/{}"]'
HOVER_NATIVE_DOCUMENT_LUA53 =
'command:extension.lua.doc?["zh-cn/53/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA54 =
+HOVER_NATIVE_DOCUMENT_LUA54 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUAJIT =
+HOVER_NATIVE_DOCUMENT_LUAJIT = -- TODO: need translate!
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
HOVER_MULTI_PROTOTYPE =
'({} 个原型)'
@@ -434,6 +434,8 @@ WINDOW_PROCESSING_SEMANTIC_RANGE =
'正在处理差量语义着色...'
WINDOW_PROCESSING_HINT =
'正在处理内联提示...'
+WINDOW_PROCESSING_TYPE_HINT = -- TODO: need translate!
+'Processing inline hint...'
WINDOW_INCREASE_UPPER_LIMIT =
'增加上限'
WINDOW_CLOSE =
@@ -459,6 +461,10 @@ WINDOW_LUA_STATUS_TIP =
不是狗也不是狐狸!
↓↓↓
]]
+WINDOW_LUA_STATUS_DIAGNOSIS_TITLE= -- TODO: need translate!
+'Perform workspace diagnosis'
+WINDOW_LUA_STATUS_DIAGNOSIS_MSG = -- TODO: need translate!
+'Do you want to perform workspace diagnosis?'
WINDOW_APPLY_SETTING =
'应用设置'
WINDOW_CHECK_SEMANTIC =
diff --git a/locale/zh-tw/meta.lua b/locale/zh-tw/meta.lua
index 9cb2f460..b7cc18a8 100644
--- a/locale/zh-tw/meta.lua
+++ b/locale/zh-tw/meta.lua
@@ -311,19 +311,19 @@ infowhat.n =
'`name` 和`namewhat`'
infowhat.S =
'`source`,`short_src`,`linedefined`,`lalinedefined`,和`what`'
-infowhat.l =
+infowhat.l = -- TODO: need translate!
'`currentline`'
-infowhat.t =
+infowhat.t = -- TODO: need translate!
'`istailcall`'
-infowhat.u['<5.1'] =
+infowhat.u['<5.1'] = -- TODO: need translate!
'`nups`'
infowhat.u['>5.2'] =
'`nups`、`nparams` 和`isvararg`'
-infowhat.f =
+infowhat.f = -- TODO: need translate!
'`func`'
infowhat.r =
'`ftransfer` 和`ntransfer`'
-infowhat.L =
+infowhat.L = -- TODO: need translate!
'`activelines`'
hookmask.c =
@@ -339,7 +339,7 @@ file[':close'] =
'關閉`file`。 '
file[':flush'] =
'將寫入的資料儲存到`file` 中。 '
-file[':lines'] =
+file[':lines'] = -- TODO: need translate!
[[
------
```lua
@@ -394,7 +394,7 @@ io.flush =
'將寫入的資料儲存到預設輸出檔案中。 '
io.input =
'設定`file` 為預設輸入檔案。 '
-io.lines =
+io.lines = -- TODO: need translate!
[[
------
```lua
@@ -571,15 +571,15 @@ os.tmpname =
osdate.year =
'四位數字'
-osdate.month =
+osdate.month = -- TODO: need translate!
'1-12'
-osdate.day =
+osdate.day = -- TODO: need translate!
'1-31'
-osdate.hour =
+osdate.hour = -- TODO: need translate!
'0-23'
-osdate.min =
+osdate.min = -- TODO: need translate!
'0-59'
-osdate.sec =
+osdate.sec = -- TODO: need translate!
'0-61'
osdate.wday =
'星期幾,1-7,星期天為1'
@@ -684,7 +684,36 @@ a1[f],···,a1[e]
return a2
```
]]
-
+string.rep['>5.2'] = -- TODO: need translate!
+'Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.'
+string.rep['<5.1'] = -- TODO: need translate!
+'Returns a string that is the concatenation of `n` copies of the string `s` .'
+string.reverse = -- TODO: need translate!
+'Returns a string that is the string `s` reversed.'
+string.sub = -- TODO: need translate!
+'Returns the substring of the string that starts at `i` and continues until `j`.'
+string.unpack = -- TODO: need translate!
+'Returns the values packed in string according to the format string `fmt` (see §6.4.2) .'
+string.upper = -- TODO: need translate!
+'Returns a copy of this string with all lowercase letters changed to uppercase.'
+
+table = -- TODO: need translate!
+''
+table.concat = -- TODO: need translate!
+'Given a list where all elements are strings or numbers, returns the string `list[i]..sep..list[i+1] ··· sep..list[j]`.'
+table.insert = -- TODO: need translate!
+'Inserts element `value` at position `pos` in `list`.'
+table.maxn = -- TODO: need translate!
+'Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.'
+table.move = -- TODO: need translate!
+[[
+Moves elements from table `a1` to table `a2`.
+```lua
+a2[t],··· =
+a1[f],···,a1[e]
+return a2
+```
+]]
table.pack =
'回傳用所有參數以鍵`1`,`2`, 等填充的新表, 並將`"n"` 這個域設為參數的總數。 '
table.remove =
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index 64858686..b6c83bb6 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -277,25 +277,25 @@ SYMBOL_ANONYMOUS =
HOVER_VIEW_DOCUMENTS =
'查看文件'
-HOVER_DOCUMENT_LUA51 =
+HOVER_DOCUMENT_LUA51 = -- TODO: need translate!
'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_DOCUMENT_LUA52 =
+HOVER_DOCUMENT_LUA52 = -- TODO: need translate!
'http://www.lua.org/manual/5.2/manual.html#{}'
HOVER_DOCUMENT_LUA53 =
'http://cloudwu.github.io/lua53doc/manual.html#{}'
-HOVER_DOCUMENT_LUA54 =
+HOVER_DOCUMENT_LUA54 = -- TODO: need translate!
'http://www.lua.org/manual/5.4/manual.html#{}'
-HOVER_DOCUMENT_LUAJIT =
+HOVER_DOCUMENT_LUAJIT = -- TODO: need translate!
'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_NATIVE_DOCUMENT_LUA51 =
+HOVER_NATIVE_DOCUMENT_LUA51 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA52 =
+HOVER_NATIVE_DOCUMENT_LUA52 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/52/manual.html/{}"]'
HOVER_NATIVE_DOCUMENT_LUA53 =
'command:extension.lua.doc?["zh-cn/53/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUA54 =
+HOVER_NATIVE_DOCUMENT_LUA54 = -- TODO: need translate!
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
-HOVER_NATIVE_DOCUMENT_LUAJIT =
+HOVER_NATIVE_DOCUMENT_LUAJIT = -- TODO: need translate!
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
HOVER_MULTI_PROTOTYPE =
'({} 個原型)'
@@ -315,6 +315,8 @@ HOVER_TABLE_TIME_UP =
'出於效能考慮,已禁用了部分類型推斷。 '
HOVER_WS_LOADING =
'正在載入工作目錄:{} / {}'
+HOVER_AWAIT_TOOLTIP = -- TODO: need translate!
+'正在调用异步函数,可能会让出当前协程'
ACTION_DISABLE_DIAG =
'在工作區禁用診斷({})。 '
@@ -432,6 +434,8 @@ WINDOW_PROCESSING_SEMANTIC_RANGE =
'正在處理差量語義著色...'
WINDOW_PROCESSING_HINT =
'正在處理內嵌提示...'
+WINDOW_PROCESSING_TYPE_HINT = -- TODO: need translate!
+'Processing inline hint...'
WINDOW_INCREASE_UPPER_LIMIT =
'增加上限'
WINDOW_CLOSE =
@@ -457,6 +461,10 @@ WINDOW_LUA_STATUS_TIP =
不是狗也不是狐狸!
↓↓↓
]]
+WINDOW_LUA_STATUS_DIAGNOSIS_TITLE= -- TODO: need translate!
+'Perform workspace diagnosis'
+WINDOW_LUA_STATUS_DIAGNOSIS_MSG = -- TODO: need translate!
+'Do you want to perform workspace diagnosis?'
WINDOW_APPLY_SETTING =
'套用設定'
WINDOW_CHECK_SEMANTIC =