summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-07-21 14:28:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-07-21 14:28:51 +0800
commit998927a2c8f33dabf8b079657f111a03f37570af (patch)
tree9414abf4b7570bcae4ff541060dacdc3ffdd03b1 /locale
parente50b20f07f44de64667143984f2ea0564db09ff7 (diff)
downloadlua-language-server-998927a2c8f33dabf8b079657f111a03f37570af.zip
添加翻译
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua4
-rw-r--r--locale/pt-br/script.lua2
-rw-r--r--locale/zh-cn/script.lua50
-rw-r--r--locale/zh-tw/script.lua2
4 files changed, 33 insertions, 25 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 47e1d752..5a1c5ef3 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -166,8 +166,10 @@ DIAG_INVISIBLE_PROTECTED =
'Field `{field}` is protected, it can only be accessed in class `{class}` and its subclasses.'
DIAG_INVISIBLE_PACKAGE =
'Field `{field}` can only be accessed in same file `{uri}`.'
-DIAG_GLOBAL_ELEMENT =
+DIAG_GLOBAL_ELEMENT =
'Element is global.'
+DIAG_MISSING_FIELDS =
+'Missing fields: {}'
MWS_NOT_SUPPORT =
'{} does not support multi workspace for now, I may need to restart to support the new workspace ...'
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 52bc4087..11b7a091 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/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 =
'{} não é suportado múltiplos espaços de trabalho por enquanto, posso precisar reiniciar para estabelecer um novo espaço de trabalho ...'
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index 8dc95d9b..57f6e5e0 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -114,22 +114,22 @@ DIAG_UNDEFINED_DOC_NAME =
'未定义的类型或别名 `{}`。'
DIAG_UNDEFINED_DOC_PARAM =
'指向了未定义的参数 `{}`。'
-DIAG_MISSING_GLOBAL_DOC_COMMENT = -- TODO: need translate!
-'Missing comment for global function `{}`.'
-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!
-'Incomplete signature. Missing @return annotation at index `{}` in function `{}`.'
+DIAG_MISSING_GLOBAL_DOC_COMMENT =
+'全局函数 `{}` 缺少注释。'
+DIAG_MISSING_GLOBAL_DOC_PARAM =
+'全局函数 `{2}` 的参数 `{1}` 缺少 @param 注解。'
+DIAG_MISSING_GLOBAL_DOC_RETURN =
+'全局函数 `{2}` 的第 `{1}` 个返回值缺少 @return 注解。'
+DIAG_MISSING_LOCAL_EXPORT_DOC_COMMENT =
+'导出的局部函数 `{}` 缺少注释。'
+DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM =
+'导出的局部函数 `{2}` 的参数 `{1}` 缺少 @param 注解。'
+DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN =
+'导出的局部函数 `{2}` 的第 {1} 个返回值缺少 @return 注解。'
+DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM =
+'签名不完整。函数 `{2}` 的参数 `{1}` 缺少 @param 注解。'
+DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN =
+'签名不完整。函数 `{2}` 的第 {1} 个返回值缺少 @return 注解。'
DIAG_UNKNOWN_DIAG_CODE =
'未知的诊断代号 `{}`。'
DIAG_CAST_LOCAL_TYPE =
@@ -166,8 +166,10 @@ DIAG_INVISIBLE_PROTECTED =
'字段 `{field}` 受到保护,只能在 `{class}` 类极其子类中才能访问。'
DIAG_INVISIBLE_PACKAGE =
'字段 `{field}` 只能在相同的文件 `{uri}` 中才能访问。'
-DIAG_GLOBAL_ELEMENT = -- TODO: need translate!
-'Element is global.'
+DIAG_GLOBAL_ELEMENT =
+'全局变量。'
+DIAG_MISSING_FIELDS =
+'缺少字段: {}'
MWS_NOT_SUPPORT =
'{} 目前还不支持多工作目录,我可能需要重启才能支持新的工作目录...'
@@ -196,8 +198,8 @@ 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)'
-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).'
+WORKSPACE_SCAN_TOO_MUCH =
+'已扫描了超过 {} 个文件,当前扫描的目录为 `{}`. 请参阅 [FAQ](https://github.com/LuaLS/lua-language-server/wiki/FAQ#how-can-i-improve-startup-speeds) 了解如何排除多余的文件。也可能是你的 [设置有错误](https://github.com/LuaLS/lua-language-server/wiki/FAQ#why-is-the-server-scanning-the-wrong-folder).'
PARSER_CRASH =
'语法解析崩溃了!遗言:{}'
@@ -448,8 +450,8 @@ ACTION_ADD_DICT =
'将 \'{}\' 添加到工作区的词典中。'
ACTION_FIX_ADD_PAREN =
'添加括号。'
-ACTION_AUTOREQUIRE = -- TODO: need translate!
-"Import '{}' as {}"
+ACTION_AUTOREQUIRE =
+"导入 '{}' 作为 `{}`"
COMMAND_DISABLE_DIAG =
'禁用诊断'
@@ -469,8 +471,8 @@ COMMAND_JSON_TO_LUA =
'JSON 转 Lua'
COMMAND_JSON_TO_LUA_FAILED =
'JSON 转 Lua 失败:{}'
-COMMAND_ADD_DICT = -- TODO: need translate!
-'Add Word to dictionary'
+COMMAND_ADD_DICT =
+'将单词添加到字典'
COMMAND_REFERENCE_COUNT =
'{} 个引用'
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 =
'{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...'