summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-26 15:08:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-26 15:08:42 +0800
commit34fb2d39e88c2d5cc5e8796011735ee3c30ee8d6 (patch)
tree3f0168ae270637c3d110e02a72c8b80c96df002b /server
parentde860ca30271b03a29d91b2fbce50788e10c8342 (diff)
downloadlua-language-server-34fb2d39e88c2d5cc5e8796011735ee3c30ee8d6.zip
更新翻译
Diffstat (limited to 'server')
-rw-r--r--server/locale/en-US/libs/lua53/coroutine.lni4
-rw-r--r--server/locale/zh-CN/libs/lua53/coroutine.lni36
-rw-r--r--server/locale/zh-CN/libs/lua53/debug.lni87
3 files changed, 125 insertions, 2 deletions
diff --git a/server/locale/en-US/libs/lua53/coroutine.lni b/server/locale/en-US/libs/lua53/coroutine.lni
index 30be48ba..dca0f5a4 100644
--- a/server/locale/en-US/libs/lua53/coroutine.lni
+++ b/server/locale/en-US/libs/lua53/coroutine.lni
@@ -5,13 +5,13 @@ description = 'Creates a new coroutine.'
description = 'Returns true when the running coroutine can yield.'
[resume]
-description = 'Starts or continues the execution of coroutine co.'
+description = 'Starts or continues the execution of coroutine `co`.'
[running]
description = 'Returns the running coroutine plus a boolean, true when the running coroutine is the main one.'
[status]
-description = 'Returns the status of coroutine co.'
+description = 'Returns the status of coroutine `co`.'
[[.enums]]
name = 'status'
enum = 'running'
diff --git a/server/locale/zh-CN/libs/lua53/coroutine.lni b/server/locale/zh-CN/libs/lua53/coroutine.lni
new file mode 100644
index 00000000..ce77f4bb
--- /dev/null
+++ b/server/locale/zh-CN/libs/lua53/coroutine.lni
@@ -0,0 +1,36 @@
+[create]
+description = '创建一个主体函数为 `f` 的新协程。'
+
+[isyieldable]
+description = '如果正在运行的协程可以让出,则返回真。'
+
+[resume]
+description = '开始或继续协程 `co` 的运行。'
+
+[running]
+description = '返回当前正在运行的协程加一个布尔量。 如果当前运行的协程是主线程,其为真。'
+
+[status]
+description = '以字符串形式返回协程 `co` 的状态。'
+[[.enums]]
+name = 'status'
+enum = 'running'
+description = '正在运行。'
+[[.enums]]
+name = 'status'
+enum = 'suspended'
+description = '挂起或是还没有开始运行。'
+[[.enums]]
+name = 'status'
+enum = 'normal'
+description = '是活动的,但并不在运行。'
+[[.enums]]
+name = 'status'
+enum = 'dead'
+description = '运行完主体函数或因错误停止。'
+
+[wrap]
+description = '创建一个主体函数为 `f` 的新协程。'
+
+[yield]
+description = '挂起正在调用的协程的执行。'
diff --git a/server/locale/zh-CN/libs/lua53/debug.lni b/server/locale/zh-CN/libs/lua53/debug.lni
new file mode 100644
index 00000000..d0966857
--- /dev/null
+++ b/server/locale/zh-CN/libs/lua53/debug.lni
@@ -0,0 +1,87 @@
+["debug.debug"]
+description = '进入一个用户交互模式,运行用户输入的每个字符串。'
+
+[gethook]
+description = '返回三个表示线程钩子设置的值: 当前钩子函数,当前钩子掩码,当前钩子计数 。'
+
+[getinfo]
+description = '返回关于一个函数信息的表。'
+[[.enums]]
+name = 'what'
+enum = 'n'
+description = '`name` 和 `namewhat`'
+[[.enums]]
+name = 'what'
+enum = 'S'
+description = '`source`,`short_src`,`linedefined`,`lastlinedefined`,和 `what`'
+[[.enums]]
+name = 'what'
+enum = 'l'
+description = '`currentline`'
+[[.enums]]
+name = 'what'
+enum = 't'
+description = '`istailcall`'
+[[.enums]]
+name = 'what'
+enum = 'u'
+description = '`nups`,`nparams`,和`isvararg`'
+[[.enums]]
+name = 'what'
+enum = 'f'
+description = '`func`'
+[[.enums]]
+name = 'what'
+enum = 'L'
+description = '`activelines`'
+
+[getlocal]
+description = '返回在栈的 `f` 层处函数的索引为 `local` 的局部变量 的名字和值。'
+
+[getmetatable]
+description = '返回给定 `value` 的元表。'
+
+[getregistry]
+description = '返回注册表。'
+
+[getupvalue]
+description = '返回函数 `f` 的第 `up` 个上值的名字和值。'
+
+[getuservalue]
+description = '返回关联在 `u` 上的 `Lua` 值。'
+
+[sethook]
+description = '将一个函数作为钩子函数设入。'
+[[.enums]]
+name = 'mask'
+enum = 'c'
+description = '每当 Lua 调用一个函数时,调用钩子。'
+[[.enums]]
+name = 'mask'
+enum = 'r'
+description = '每当 Lua 从一个函数内返回时,调用钩子。'
+[[.enums]]
+name = 'mask'
+enum = 'l'
+description = '每当 Lua 进入新的一行时,调用钩子。'
+
+[setlocal]
+description = '将 `value` 赋给 栈上第 `level` 层函数的第 `local` 个局部变量。'
+
+[setmetatable]
+description = '将 `value` 的元表设为 `table` (可以是 `nil`)。'
+
+[setupvalue]
+description = '将 `value` 设为函数 `f` 的第 `up` 个上值。'
+
+[setuservalue]
+description = '将 `value` 设为 `udata` 的关联值。'
+
+[traceback]
+description = '返回调用栈的栈回溯信息。 字符串可选项 `message` 被添加在栈回溯信息的开头。'
+
+[upvalueid]
+description = '返回指定函数第 `n` 个上值的唯一标识符(一个轻量用户数据)。'
+
+[upvaluejoin]
+description = '让 Lua 闭包 `f1` 的第 `n1` 个上值 引用 `Lua` 闭包 `f2` 的第 `n2` 个上值。'