summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-27 15:30:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-27 15:30:12 +0800
commit9c4760872cc0184c3d5b9f5d8df2fbb9f6467040 (patch)
tree80609a7039549fa6af798fe6f2144a776787d3bf
parentdbf5509d3a8ee5525d95b4dcf0ddf4364a58e214 (diff)
downloadlua-language-server-9c4760872cc0184c3d5b9f5d8df2fbb9f6467040.zip
missed locale
-rw-r--r--locale/en-us/meta.lni2
-rw-r--r--locale/zh-cn/meta.lni2
2 files changed, 2 insertions, 2 deletions
diff --git a/locale/en-us/meta.lni b/locale/en-us/meta.lni
index 4f8e4cec..4bdcdeba 100644
--- a/locale/en-us/meta.lni
+++ b/locale/en-us/meta.lni
@@ -73,7 +73,7 @@ Sets the real value of `table[index]` to `value`, without using the `__newindex`
This function returns `table`.
]]
select = If `index` is a number, returns all arguments after argument number `index`; a negative number indexes from the end (`-1` is the last argument). Otherwise, `index` must be the string `"#"`, and `select` returns the total number of extra arguments it received.
-setfenv = ''
+setfenv = 'Sets the environment to be used by the given function. '
setmetatable = [[
Sets the metatable for the given table. If `metatable` is `nil`, removes the metatable of the given table. If the original metatable has a `__metatable` field, raises an error.
diff --git a/locale/zh-cn/meta.lni b/locale/zh-cn/meta.lni
index 604af68f..48d0f509 100644
--- a/locale/zh-cn/meta.lni
+++ b/locale/zh-cn/meta.lni
@@ -68,7 +68,7 @@ rawset = [[
这个函数返回 `table`。
]]
select = 如果 `index` 是个数字, 那么返回参数中第 `index` 个之后的部分; 负的数字会从后向前索引(`-1` 指最后一个参数)。 否则,`index` 必须是字符串 `"#"`, 此时 `select` 返回参数的个数。
-setfenv = ''
+setfenv = '设置给定函数的环境。'
setmetatable = [[
给指定表设置元表。 (你不能在 Lua 中改变其它类型值的元表,那些只能在 C 里做。) 如果 `metatable` 是 `nil`, 将指定表的元表移除。 如果原来那张元表有 `"__metatable"` 域,抛出一个错误。
]]