From 1d09f3bd87645e930bf93c14e5790b9297c49075 Mon Sep 17 00:00:00 2001 From: CppCXY <812125110@qq.com> Date: Thu, 27 Apr 2023 16:20:06 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locale/zh-tw/setting.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 7cf93297..6c2c0489 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -268,6 +268,8 @@ config.format.defaultConfig = ]] config.spell.dict = '拼寫檢查的自訂單詞。' +config.nameStyle.config = -- TODO: need translate! +'Set name style config' config.telemetry.enable = [[ 啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/LuaLS/lua-language-server/wiki/Home#privacy)閱讀我們的隱私聲明。 @@ -400,6 +402,8 @@ config.diagnostics['return-type-mismatch'] = -- TODO: need translate! 'Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.' config.diagnostics['spell-check'] = -- TODO: need translate! 'Enable diagnostics for typos in strings.' +config.diagnostics['name-style-check'] = -- TODO: need translate! +'Enable diagnostics for name style.' config.diagnostics['unbalanced-assignments']= -- TODO: need translate! 'Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).' config.diagnostics['undefined-doc-class'] = -- TODO: need translate! -- cgit v1.2.3 From d2a08abb38a413dddd19edb69971d2b0657bff6f Mon Sep 17 00:00:00 2001 From: Thomas Wetzlmaier Date: Thu, 11 May 2023 16:32:53 +0200 Subject: Annotation rule for exported local functions Annotation for the following local function func1 is required. local mod = { } local function func1() end mod.Func1 = func1 return mod; --- locale/zh-tw/script.lua | 6 ++++++ locale/zh-tw/setting.lua | 2 ++ 2 files changed, 8 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 3a618184..e19eb220 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -120,6 +120,12 @@ DIAG_MISSING_GLOBAL_DOC_PARAM = -- TODO: need translate! 'Missing @param annotation for parameter `{}` in global function `{}`.' DIAG_MISSING_GLOBAL_DOC_RETURN = -- TODO: need translate! 'Missing @return annotation at index `{}` in global function `{}`.' +DIAG_MISSING_LOCAL_EXPORT_DOC_COMMENT = -- TODO: need translate! +'Missing comment for exported local function `{}`.' +DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM = -- TODO: need translate! +'Missing @param annotation for parameter `{}` in exported local function `{}`.' +DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN = -- TODO: need translate! +'Missing @return annotation at index `{}` in exported local function `{}`.' DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM = -- TODO: need translate! 'Incomplete signature. Missing @param annotation for parameter `{}` in function `{}`.' DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN = -- TODO: need translate! diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 6c2c0489..0b40177f 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -380,6 +380,8 @@ config.diagnostics['invisible'] = -- TODO: need translate! 'Enable diagnostics for accesses to fields which are invisible.' config.diagnostics['missing-global-doc'] = -- TODO: need translate! 'Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.' +config.diagnostics['missing-local-export-doc'] = -- TODO: need translate! +'Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.' config.diagnostics['missing-parameter'] = -- TODO: need translate! 'Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.' config.diagnostics['missing-return'] = -- TODO: need translate! -- cgit v1.2.3 From f1dadaecdd2d67005e43a8d9bbbbd19104b6f418 Mon Sep 17 00:00:00 2001 From: fesily Date: Thu, 1 Jun 2023 10:59:47 +0800 Subject: locale:add reloadFFIMeta --- locale/zh-tw/setting.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 0b40177f..351e6ca0 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -439,3 +439,5 @@ command.exportDocument = -- TODO: need translate! 'Lua: Export Document ...' command.addon_manager.open = -- TODO: need translate! 'Lua: Open Addon Manager ...' +command.reloadFFIMeta = -- TODO: need translate! +'Lua: Reload luajit ffi meta' -- cgit v1.2.3 From c5e58f83dc5831f8945e88d174294ad31f32d3a9 Mon Sep 17 00:00:00 2001 From: carsakiller Date: Sat, 24 Jun 2023 00:33:42 -0400 Subject: add: description for `@source` --- locale/zh-tw/script.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index e19eb220..7331a43b 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -1193,6 +1193,33 @@ local function setColor(color) end setColor(colors.green) ``` ]=] +LUADOC_DESC_SOURCE = -- TODO: need translate! +[=[ +Provide a reference to some source code which lives in another file. When +searching for the defintion of an item, its `@source` will be used. + +## Syntax +`@source ` + +## Usage +``` +---You can use absolute paths +---@source C:/Users/me/Documents/program/myFile.c +local a + +---Or URIs +---@source file:///C:/Users/me/Documents/program/myFile.c:10 +local b + +---Or relative paths +---@source local/file.c +local c + +---You can also include line and char numbers +---@source local/file.c:10:8 +local d +``` +]=] LUADOC_DESC_PACKAGE = -- TODO: need translate! [=[ Mark a function as private to the file it is defined in. A packaged function -- cgit v1.2.3 From 04ab77081defa1d66598a4429ad5707f5ab6a06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 19 Jul 2023 16:41:30 +0800 Subject: update submodules --- locale/zh-tw/script.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 7331a43b..7c73a2a0 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -448,6 +448,8 @@ ACTION_ADD_DICT = '添加 \'{}\' 到工作區字典' ACTION_FIX_ADD_PAREN = -- TODO: need translate! '添加括号。' +ACTION_AUTOREQUIRE = -- TODO: need translate! +"Import '{}' as {}" COMMAND_DISABLE_DIAG = '停用診斷' -- cgit v1.2.3 From 998927a2c8f33dabf8b079657f111a03f37570af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 21 Jul 2023 14:28:51 +0800 Subject: =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locale/zh-tw/script.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 7c73a2a0..b72f23c0 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -168,6 +168,8 @@ DIAG_INVISIBLE_PACKAGE = -- TODO: need translate! 'Field `{field}` can only be accessed in same file `{uri}`.' DIAG_GLOBAL_ELEMENT = -- TODO: need translate! 'Element is global.' +DIAG_MISSING_FIELDS = -- TODO: need translate! +'Missing fields: {}' MWS_NOT_SUPPORT = '{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...' -- cgit v1.2.3 From b96ab075f43e04d5bb42566df4f7c172b35a3df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 3 Aug 2023 18:00:19 +0800 Subject: function may not have a name --- locale/zh-tw/script.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index b72f23c0..1208a840 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -127,9 +127,9 @@ DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM = -- TODO: need translate! DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN = -- TODO: need translate! 'Missing @return annotation at index `{}` in exported local function `{}`.' DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM = -- TODO: need translate! -'Incomplete signature. Missing @param annotation for parameter `{}` in function `{}`.' +'Incomplete signature. Missing @param annotation for parameter `{}`.' DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN = -- TODO: need translate! -'Incomplete signature. Missing @return annotation at index `{}` in function `{}`.' +'Incomplete signature. Missing @return annotation at index `{}`.' DIAG_UNKNOWN_DIAG_CODE = '未知的診斷代碼 `{}`。' DIAG_CAST_LOCAL_TYPE = -- cgit v1.2.3 From 3899160724e488f194c7844e819a649445f0dd57 Mon Sep 17 00:00:00 2001 From: carsakiller Date: Thu, 10 Aug 2023 23:29:50 -0400 Subject: chore: replace wiki references --- locale/zh-tw/script.lua | 44 ++++++++++++++++++++++---------------------- locale/zh-tw/setting.lua | 6 +++--- 2 files changed, 25 insertions(+), 25 deletions(-) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 1208a840..995ada56 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -197,9 +197,9 @@ WORKSPACE_DIAGNOSTIC = WORKSPACE_SKIP_HUGE_FILE = '出於效能考慮,已停止對此檔案解析:{}' WORKSPACE_NOT_ALLOWED = -'你的工作目錄被設定為了 `{}` ,Lua語言伺服拒絕載入此目錄,請檢查你的設定檔。[了解更多](https://github.com/LuaLS/lua-language-server/wiki/FAQ#why-is-the-server-scanning-the-wrong-folder)' +'你的工作目錄被設定為了 `{}` ,Lua語言伺服拒絕載入此目錄,請檢查你的設定檔。[了解更多](https://luals.github.io/wiki/faq#why-is-the-server-scanning-the-wrong-folder)' WORKSPACE_SCAN_TOO_MUCH = -- TODO: need translate! -'已掃描了超過 {} 個檔案,目前掃描的目錄為 `{}`. Please see the [FAQ](https://github.com/LuaLS/lua-language-server/wiki/FAQ#how-can-i-improve-startup-speeds) to see how you can include fewer files. It is also possible that your [configuration is incorrect](https://github.com/LuaLS/lua-language-server/wiki/FAQ#why-is-the-server-scanning-the-wrong-folder).' +'已掃描了超過 {} 個檔案,目前掃描的目錄為 `{}`. Please see the [FAQ](https://luals.github.io/wiki/faq#how-can-i-improve-startup-speeds) to see how you can include fewer files. It is also possible that your [configuration is incorrect](https://luals.github.io/wiki/faq#why-is-the-server-scanning-the-wrong-folder).' PARSER_CRASH = '語法解析崩潰了!遺言:{}' @@ -552,7 +552,7 @@ WINDOW_APPLY_SETTING = WINDOW_CHECK_SEMANTIC = '如果你正在使用市場中的顏色主題,你可能需要同時修改 `editor.semanticHighlighting.enabled` 選項為 `true` 才會使語義著色生效。' WINDOW_TELEMETRY_HINT = -'請允許發送匿名的使用資料與錯誤報告,幫助我們進一步完善此延伸模組。在[此處](https://github.com/LuaLS/lua-language-server/wiki/Home#privacy)閱讀我們的隱私聲明。' +'請允許發送匿名的使用資料與錯誤報告,幫助我們進一步完善此延伸模組。在[此處](https://luals.github.io/privacy/#language-server)閱讀我們的隱私聲明。' WINDOW_TELEMETRY_ENABLE = '允許' WINDOW_TELEMETRY_DISABLE = @@ -697,7 +697,7 @@ LUADOC_DESC_CLASS = Manager = {} ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#class) +[檢視文件](https://luals.github.io/wiki/annotations#class) ]=] LUADOC_DESC_TYPE = [=[ @@ -748,7 +748,7 @@ local x --x[""] is true local myFunction ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#types-and-type) +[檢視文件](https://luals.github.io/wiki/annotations#type) ]=] LUADOC_DESC_ALIAS = [=[ @@ -798,7 +798,7 @@ local enums = { ---| `enums.CLOSE` ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#alias) +[檢視文件](https://luals.github.io/wiki/annotations#alias) ]=] LUADOC_DESC_PARAM = [=[ @@ -823,7 +823,7 @@ function get(url, headers, timeout) end function concat(base, ...) end ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#param) +[檢視文件](https://luals.github.io/wiki/annotations#param) ]=] LUADOC_DESC_RETURN = [=[ @@ -861,7 +861,7 @@ function getFirstLast() end function getTags(item) end ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#return) +[檢視文件](https://luals.github.io/wiki/annotations#return) ]=] LUADOC_DESC_FIELD = [=[ @@ -890,7 +890,7 @@ response = get("localhost") statusCode = response.status.code ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#field) +[檢視文件](https://luals.github.io/wiki/annotations#field) ]=] LUADOC_DESC_GENERIC = [=[ @@ -946,7 +946,7 @@ local v = Generic("Foo") -- v is an object of Foo -- we give for key (K) or value (V) ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#generics-and-generic) +[檢視文件](https://luals.github.io/wiki/annotations#generic) ]=] LUADOC_DESC_VARARG = [=[ @@ -964,7 +964,7 @@ LUADOC_DESC_VARARG = function concat(...) end ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#vararg) +[檢視文件](https://luals.github.io/wiki/annotations#vararg) ]=] LUADOC_DESC_OVERLOAD = [=[ @@ -979,7 +979,7 @@ LUADOC_DESC_OVERLOAD = function table.insert(t, position, value) end ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#overload) +[檢視文件](https://luals.github.io/wiki/annotations#overload) ]=] LUADOC_DESC_DEPRECATED = [=[ @@ -989,7 +989,7 @@ LUADOC_DESC_DEPRECATED = `---@deprecated` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#deprecated) +[檢視文件](https://luals.github.io/wiki/annotations#deprecated) ]=] LUADOC_DESC_META = [=[ @@ -1004,7 +1004,7 @@ LUADOC_DESC_META = `---@meta` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#meta) +[檢視文件](https://luals.github.io/wiki/annotations#meta) ]=] LUADOC_DESC_VERSION = [=[ @@ -1029,7 +1029,7 @@ function onlyWorksInJIT() end function oldLuaOnly() end ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#version) +[檢視文件](https://luals.github.io/wiki/annotations#version) ]=] LUADOC_DESC_SEE = [=[ @@ -1039,7 +1039,7 @@ LUADOC_DESC_SEE = `---@see ` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#see) +[檢視文件](https://luals.github.io/wiki/annotations#see) ]=] LUADOC_DESC_DIAGNOSTIC = [=[ @@ -1065,7 +1065,7 @@ local unused = "hello world" ---@diagnostic enable: unused-local ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#diagnostic) +[檢視文件](https://luals.github.io/wiki/annotations#diagnostic) ]=] LUADOC_DESC_MODULE = [=[ @@ -1082,7 +1082,7 @@ local stringUtils local module = require('string.utils') ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#module) +[檢視文件](https://luals.github.io/wiki/annotations#module) ]=] LUADOC_DESC_ASYNC = [=[ @@ -1092,7 +1092,7 @@ LUADOC_DESC_ASYNC = `---@async` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#async) +[檢視文件](https://luals.github.io/wiki/annotations#async) ]=] LUADOC_DESC_NODISCARD = [=[ @@ -1103,7 +1103,7 @@ LUADOC_DESC_NODISCARD = `---@nodiscard` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#nodiscard) +[檢視文件](https://luals.github.io/wiki/annotations#nodiscard) ]=] LUADOC_DESC_CAST = [=[ @@ -1138,7 +1138,7 @@ local x --> string|table print(x) --> table ``` --- -[檢視文件](https://github.com/LuaLS/lua-language-server/wiki/Annotations#cast) +[檢視文件](https://luals.github.io/wiki/annotations#cast) ]=] LUADOC_DESC_OPERATOR = -- TODO: need translate! [=[ @@ -1173,7 +1173,7 @@ pB = -pA LUADOC_DESC_ENUM = -- TODO: need translate! [=[ Mark a table as an enum. If you want an enum but can't define it as a Lua -table, take a look at the [`@alias`](https://github.com/LuaLS/lua-language-server/wiki/Annotations#alias) +table, take a look at the [`@alias`](https://luals.github.io/wiki/annotations#alias) tag. ## Syntax diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 351e6ca0..1b984220 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -27,7 +27,7 @@ config.runtime.unicodeName = config.runtime.nonstandardSymbol = "支援非標準的符號。請務必確認你的執行環境支援這些符號。" config.runtime.plugin = -"延伸模組路徑,請查閱[文件](https://github.com/LuaLS/lua-language-server/wiki/Plugins)瞭解用法。" +"延伸模組路徑,請查閱[文件](https://luals.github.io/wiki/plugins)瞭解用法。" config.runtime.pluginArgs = -- TODO: need translate! "Additional arguments for the plugin." config.runtime.fileEncoding = @@ -272,10 +272,10 @@ config.nameStyle.config = -- TODO: need translate! 'Set name style config' config.telemetry.enable = [[ -啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/LuaLS/lua-language-server/wiki/Home#privacy)閱讀我們的隱私聲明。 +啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://luals.github.io/privacy/#language-server)閱讀我們的隱私聲明。 ]] config.misc.parameters = -'VSCode中啟動語言伺服時的[命令列參數](https://github.com/LuaLS/lua-language-server/wiki/Getting-Started#arguments)。' +'VSCode中啟動語言伺服時的[命令列參數](https://luals.github.io/wiki/usage#arguments)。' config.misc.executablePath = -- TODO: need translate! 'Specify the executable path in VSCode.' config.IntelliSense.traceLocalSet = -- cgit v1.2.3 From 7269e52402970f8a7355c8d7cf03081fc9a22fb0 Mon Sep 17 00:00:00 2001 From: carsakiller Date: Thu, 10 Aug 2023 23:46:10 -0400 Subject: chore: remove old intellisense documentation --- locale/zh-tw/setting.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 1b984220..c8e0dbfc 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -278,14 +278,6 @@ config.misc.parameters = 'VSCode中啟動語言伺服時的[命令列參數](https://luals.github.io/wiki/usage#arguments)。' config.misc.executablePath = -- TODO: need translate! 'Specify the executable path in VSCode.' -config.IntelliSense.traceLocalSet = -'請查閱[文件](https://github.com/LuaLS/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。' -config.IntelliSense.traceReturn = -'請查閱[文件](https://github.com/LuaLS/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。' -config.IntelliSense.traceBeSetted = -'請查閱[文件](https://github.com/LuaLS/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。' -config.IntelliSense.traceFieldInject = -'請查閱[文件](https://github.com/LuaLS/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。' config.type.castNumberToInteger = '允許將 `number` 類型賦值給 `integer` 類型。' config.type.weakUnionCheck = -- cgit v1.2.3 From 63edb992a363a97dfa3f02a988f5f7771d5b0b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 14 Aug 2023 14:21:37 +0800 Subject: new diag: `inject-field` #1990 --- locale/zh-tw/script.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 995ada56..bcd7af44 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -170,6 +170,8 @@ DIAG_GLOBAL_ELEMENT = -- TODO: need translate! 'Element is global.' DIAG_MISSING_FIELDS = -- TODO: need translate! 'Missing fields: {}' +DIAG_INJECT_FIELD = -- TODO: need translate! +'Fields cannot be injected into the reference of `{class}` for `{field}`. To do so, use `---@class` for `{node}`.' MWS_NOT_SUPPORT = '{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...' -- cgit v1.2.3 From 01a741f8416f074199303235eb533b8f3446e85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 14 Aug 2023 15:07:49 +0800 Subject: also check `doc.type.table` --- locale/zh-tw/script.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index bcd7af44..80c4bec2 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -171,7 +171,11 @@ DIAG_GLOBAL_ELEMENT = -- TODO: need translate! DIAG_MISSING_FIELDS = -- TODO: need translate! 'Missing fields: {}' DIAG_INJECT_FIELD = -- TODO: need translate! -'Fields cannot be injected into the reference of `{class}` for `{field}`. To do so, use `---@class` for `{node}`.' +'Fields cannot be injected into the reference of `{class}` for `{field}`. {fix}' +DIAG_INJECT_FIELD_FIX_CLASS = -- TODO: need translate! +'To do so, use `---@class` for `{node}`.' +DIAG_INJECT_FIELD_FIX_TABLE = -- TODO: need translate! +'如要允许注入,请在定义中添加 `{fix}` 。' MWS_NOT_SUPPORT = '{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...' -- cgit v1.2.3 From 3d9995f3ff44217b2e3d69f8c84ecb571aae5ea1 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Mon, 14 Aug 2023 16:40:35 -0700 Subject: set min version for some math.* functions --- locale/zh-tw/meta.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/meta.lua b/locale/zh-tw/meta.lua index 23af021a..8aa5656d 100644 --- a/locale/zh-tw/meta.lua +++ b/locale/zh-tw/meta.lua @@ -498,11 +498,11 @@ math.log10 = '回傳 `x` 的以10為底的對數。' math.max = '回傳引數中最大的值,大小由 Lua 運算子 `<` 決定。' -math.maxinteger = +math.maxinteger['>5.3'] = '最大值的整數。' math.min = '回傳引數中最小的值,大小由 Lua 運算子 `<` 決定。' -math.mininteger = +math.mininteger['>5.3'] = '最小值的整數。' math.modf = '回傳 `x` 的整數部分和小數部分。' @@ -536,11 +536,11 @@ math.tan = '回傳 `x` 的正切值(假定引數是弧度)。' math.tanh = '回傳 `x` 的雙曲正切值(假定引數是弧度)。' -math.tointeger = +math.tointeger['>5.3'] = '如果 `x` 可以轉換為一個整數,回傳該整數。' -math.type = +math.type['>5.3'] = '如果 `x` 是整數,回傳 `"integer"` ,如果它是浮點數,回傳 `"float"` ,如果 `x` 不是數字,回傳 `nil` 。' -math.ult = +math.ult['>5.3'] = '整數 `m` 和 `n` 以無符號整數形式比較,如果 `m` 在 `n` 之下則回傳布林真,否則回傳假。' os = -- cgit v1.2.3 From cb16010fbb4128e2a5a31013e02b8cc4a4318be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 22 Aug 2023 17:08:39 +0800 Subject: fix wrong `missing-fields` with union types fix #2252 --- locale/zh-tw/script.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 80c4bec2..43c064b2 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -169,7 +169,7 @@ DIAG_INVISIBLE_PACKAGE = -- TODO: need translate! DIAG_GLOBAL_ELEMENT = -- TODO: need translate! 'Element is global.' DIAG_MISSING_FIELDS = -- TODO: need translate! -'Missing fields: {}' +'Missing required fields in type `{1}`: {2}' DIAG_INJECT_FIELD = -- TODO: need translate! 'Fields cannot be injected into the reference of `{class}` for `{field}`. {fix}' DIAG_INJECT_FIELD_FIX_CLASS = -- TODO: need translate! -- cgit v1.2.3