diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-24 18:04:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-24 18:04:40 +0800 |
commit | 42ef1ad45f7afcca6657b8ad94de4ad460b636af (patch) | |
tree | 0601c9705b032d13b7efd8abbc9d65ec0e715c5e | |
parent | 2d242061f9ff6e9be0d6800fc9f542b3078844df (diff) | |
download | lua-language-server-42ef1ad45f7afcca6657b8ad94de4ad460b636af.zip |
总之随便翻译一下
-rw-r--r-- | package.nls.json | 2 | ||||
-rw-r--r-- | package.nls.zh-cn.json | 2 | ||||
-rw-r--r-- | server/test/build_package.lua | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/package.nls.json b/package.nls.json index 81fe0500..d3cc2102 100644 --- a/package.nls.json +++ b/package.nls.json @@ -6,7 +6,7 @@ "config.runtime.version": "Lua runtime version.", "config.workspace.ignoreDir": "Ignored directories (Use `.gitignore` grammar).\n```json\n\"Lua.workspace.ignoreDir\" : [\n \"temp/*.*\",\n \"!temp/*.lua\"\n]\n```\n", "config.workspace.ignoreSubmodules": "Ignore submodules.", - "config.workspace.library": "加载的外部函数库。\n下面这个例子表示加载`C:/lua`中的所有文件,以及加载`../lib`中的`.txt`与`.lua`文件,但不加载`../lib/temp`中的`.txt`文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"*.txt\",\n \"*.lua\",\n \"!/temp/**/*.txt\"\n ]\n}\n```\n", + "config.workspace.library": "(Plz help me to translate these into nice English!)\nLoad external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\nThe following example shows loaded files in `C:/lua` without `../lib/temp`.\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n", "config.workspace.maxPreload": "Max preloaded files.", "config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.", "config.workspace.useGitIgnore": "Ignore files list in `.gitignore` ." diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 5f276bc5..8cb57031 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -6,7 +6,7 @@ "config.runtime.version": "Lua运行版本。", "config.workspace.ignoreDir": "忽略的目录(使用 `.gitignore` 语法)。\n```json\n\"Lua.workspace.ignoreDir\" : [\n \"temp/*.*\",\n \"!temp/*.lua\"\n]\n```\n", "config.workspace.ignoreSubmodules": "忽略子模块。", - "config.workspace.library": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n下面这个例子表示加载`C:/lua`中的所有文件,以及加载`../lib`中的`.txt`与`.lua`文件,但不加载`../lib/temp`中的`.txt`文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"*.txt\",\n \"*.lua\",\n \"!/temp/**/*.txt\"\n ]\n}\n```\n", + "config.workspace.library": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n下面这个例子表示加载`C:/lua`与`../lib`中的所有文件,但不加载`../lib/temp`中的文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n", "config.workspace.maxPreload": "最大预加载文件数。", "config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。", "config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。" diff --git a/server/test/build_package.lua b/server/test/build_package.lua index c409904c..381df7dc 100644 --- a/server/test/build_package.lua +++ b/server/test/build_package.lua @@ -212,8 +212,10 @@ io.save(ROOT:parent_path() / 'package.nls.json', json.encode { ["config.workspace.maxPreload"] = "Max preloaded files.", ["config.workspace.preloadFileSize"] = "Skip files larger than this value (KB) when preloading.", ["config.workspace.library"] = [[ -加载的外部函数库。 -下面这个例子表示加载`C:/lua`中的所有文件,以及加载`../lib`中的`.txt`与`.lua`文件,但不加载`../lib/temp`中的`.txt`文件。 +(Plz help me to translate these into nice English!) +Load external library. +This feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified. +The following example shows loaded files in `C:/lua` without `../lib/temp`. ]] .. example.library, }) |