From 1b704bced8031bf5280e62570d678fe49a727f44 Mon Sep 17 00:00:00 2001 From: wongxy Date: Sat, 12 Mar 2022 13:04:08 +0800 Subject: fixed #976 --- locale/en-us/script.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index f5a3ec30..df5cdae0 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -34,7 +34,7 @@ DIAG_PREFIELD_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.' DIAG_OVER_MAX_ARGS = 'The function takes only {:d} parameters, but you passed {:d}.' -DIAG_OVER_MAX_ARGS = +DIAG_OVER_MAX_VALUES = 'Only has {} variables, but you set {} values.' DIAG_AMBIGUITY_1 = 'Compute `{}` first. You may need to add brackets.' -- cgit v1.2.3 From 727e4f69beb83942ec821b9eec8d0453aa898f54 Mon Sep 17 00:00:00 2001 From: wongxy Date: Sat, 12 Mar 2022 13:05:31 +0800 Subject: tweaks align --- locale/en-us/script.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index df5cdae0..edf76e2c 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -34,7 +34,7 @@ DIAG_PREFIELD_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.' DIAG_OVER_MAX_ARGS = 'The function takes only {:d} parameters, but you passed {:d}.' -DIAG_OVER_MAX_VALUES = +DIAG_OVER_MAX_VALUES = 'Only has {} variables, but you set {} values.' DIAG_AMBIGUITY_1 = 'Compute `{}` first. You may need to add brackets.' -- cgit v1.2.3 From a9ecb707e0d410c98fa050b5f744ce72b8fef473 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, 8 Apr 2022 12:42:20 +0800 Subject: rename `no-implicit-any` to `no-unknown` --- locale/en-us/script.lua | 2 +- locale/pt-br/script.lua | 2 +- locale/zh-cn/script.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'locale') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index edf76e2c..ff19d170 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -80,7 +80,7 @@ DIAG_COSE_NON_OBJECT = 'Cannot close a value of this type. (Unless set `__close` meta method)' DIAG_COUNT_DOWN_LOOP = 'Do you mean `{}` ?' -DIAG_IMPLICIT_ANY = +DIAG_UNKNOWN = 'Can not infer type.' DIAG_DEPRECATED = 'Deprecated.' diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index aa16c3d3..f40dc0c6 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -80,7 +80,7 @@ DIAG_COSE_NON_OBJECT = 'Não é possível fechar um valor desse tipo. (A menos que se defina o meta método `__close`)' DIAG_COUNT_DOWN_LOOP = 'Você quer dizer `{}` ?' -DIAG_IMPLICIT_ANY = +DIAG_UNKNOWN = 'Não pode inferir tipo.' DIAG_DEPRECATED = 'Descontinuada.' diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index f30257fb..8efde418 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -80,7 +80,7 @@ DIAG_COSE_NON_OBJECT = '无法 close 此类型的值。(除非给此类型设置 `__close` 元方法)' DIAG_COUNT_DOWN_LOOP = '你的意思是 `{}` 吗?' -DIAG_IMPLICIT_ANY = +DIAG_UNKNOWN = '无法推测出类型。' DIAG_DEPRECATED = '已废弃。' -- cgit v1.2.3 From ae07ea940e77cc23eba78e717a09d99233841620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 10 Apr 2022 03:49:54 +0800 Subject: cancel searching reference --- locale/en-us/script.lua | 2 ++ locale/zh-cn/script.lua | 2 ++ 2 files changed, 4 insertions(+) (limited to 'locale') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index ff19d170..98be9bcb 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -490,6 +490,8 @@ WINDOW_APPLY_WHITOUT_SETTING = 'Apply but do not modify settings' WINDOW_ASK_APPLY_LIBRARY = 'Do you need to configure your work environment as `{}`?' +WINDOW_SEARCHING_IN_FILES = +'Searching in files...' CONFIG_LOAD_FAILED = 'Unable to read the settings file: {}' diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 8efde418..75026526 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -489,6 +489,8 @@ WINDOW_APPLY_WHITOUT_SETTING = '应用但不修改设置' WINDOW_ASK_APPLY_LIBRARY = '是否需要将你的工作环境配置为 `{}` ?' +WINDOW_SEARCHING_IN_FILES = +'正在文件中搜索...' CONFIG_LOAD_FAILED = '无法读取设置文件:{}' -- cgit v1.2.3 From 66504f8099f4369a9a436bfef12b6f1a92fbf084 Mon Sep 17 00:00:00 2001 From: --get-all Date: Tue, 12 Apr 2022 14:57:58 +0800 Subject: add table meta:foreach,foreachi,getn --- locale/en-us/meta.lua | 6 ++++++ locale/zh-cn/meta.lua | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'locale') diff --git a/locale/en-us/meta.lua b/locale/en-us/meta.lua index 858cde13..839dc27a 100644 --- a/locale/en-us/meta.lua +++ b/locale/en-us/meta.lua @@ -677,6 +677,12 @@ Returns the elements from the given list. This function is equivalent to ``` By default, `i` is `1` and `j` is `#list`. ]] +table.foreach = +'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 = +'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 = +'Returns the number of elements in the table. This function is equivalent to `#list`.' utf8 = '' diff --git a/locale/zh-cn/meta.lua b/locale/zh-cn/meta.lua index 8e7c37e8..61ba6c9b 100644 --- a/locale/zh-cn/meta.lua +++ b/locale/zh-cn/meta.lua @@ -655,6 +655,12 @@ table.unpack = ``` i 默认为 1 ,j 默认为 #list。 ]] +table.foreach = +'遍历表中的每一个元素,并以key和value执行回调函数。如果回调函数返回一个非nil值则循环终止,并且返回这个值。该函数等同pair(list),比pair(list)更慢。不推荐使用' +table.foreachi = +'遍历数组中的每一个元素,并以索引号index和value执行回调函数。如果回调函数返回一个非nil值则循环终止,并且返回这个值。该函数等同ipair(list),比ipair(list)更慢。不推荐使用' +table.getn = +'返回表的长度。该函数等价于#list。' utf8 = '' -- cgit v1.2.3 From f760dc359b389c20a0d48bef463d14800e67894c Mon Sep 17 00:00:00 2001 From: DevSebi <52174534+LPSebi@users.noreply.github.com> Date: Tue, 12 Apr 2022 17:30:24 +0200 Subject: fix lang --- locale/en-us/script.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'locale') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 98be9bcb..f16235b4 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -464,6 +464,10 @@ This icon is a cat, Not a dog nor a fox! ↓↓↓ ]] +WINDOW_LUA_STATUS_DIAGNOSIS_TITLE= +'Perform workspace diagnosis' +WINDOW_LUA_STATUS_DIAGNOSIS_MSG = +'Do you want to perform workspace diagnosis?' WINDOW_APPLY_SETTING = 'Apply setting' WINDOW_CHECK_SEMANTIC = @@ -533,3 +537,4 @@ CLI_CHECK_SUCCESS = 'Diagnosis completed, no problems found' CLI_CHECK_RESULTS = 'Diagnosis complete, {} problems found, see {}' + -- cgit v1.2.3