From ed7f34ce86992291738df03f47d7fa0877199b9c Mon Sep 17 00:00:00 2001 From: qwertycxz Date: Sun, 20 Apr 2025 21:54:39 +0800 Subject: [PATCH 1/3] add missing locale --- changelog.md | 1 + locale/en-us/setting.lua | 12 +++++++++++- locale/es-419/setting.lua | 10 ++++++++++ locale/ja-jp/setting.lua | 10 ++++++++++ locale/pt-br/setting.lua | 10 ++++++++++ locale/zh-cn/setting.lua | 10 ++++++++++ locale/zh-tw/setting.lua | 10 ++++++++++ 7 files changed, 62 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 06c2bd48b..b61822c0e 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ ## Unreleased * `FIX` cannot debug in Linux due to lua-debug expecting host process to have lua54 symbols available +* `ADD` missing locale ## 3.14.0 `2025-4-7` diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index e0ca458b8..e3a79827b 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -316,12 +316,22 @@ config.type.checkTableShape = [[ Strictly check the shape of the table. ]] +config.type.inferTableSize = +'Maximum number of table fields analyzed during type inference.' config.doc.privateName = 'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.' config.doc.protectedName = 'Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.' config.doc.packageName = 'Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.' +config.doc.regengine = +'The regular expression engine used for matching documentation scope names.' +config.doc.regengine.glob = +'The default lightweight pattern syntax.' +config.doc.regengine.lua = +'Full Lua-style regular expressions.' +config.docScriptPath = +'The regular expression engine used for matching documentation scope names.' config.diagnostics['unused-local'] = 'Enable unused local variable diagnostics.' config.diagnostics['unused-function'] = @@ -339,7 +349,7 @@ config.diagnostics['trailing-space'] = config.diagnostics['redefined-local'] = 'Enable redefined local variable diagnostics.' config.diagnostics['newline-call'] = -'Enable newline call diagnostics. Is\'s raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line.' +'Enable newline call diagnostics. It\'s raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line.' config.diagnostics['newfield-call'] = 'Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.' config.diagnostics['redundant-parameter'] = diff --git a/locale/es-419/setting.lua b/locale/es-419/setting.lua index f7d76480f..9325329b9 100644 --- a/locale/es-419/setting.lua +++ b/locale/es-419/setting.lua @@ -317,12 +317,22 @@ config.type.checkTableShape = [[ Chequea estrictamente la forma de la tabla. ]] +config.type.inferTableSize = -- TODO: need translate! +'Maximum number of table fields analyzed during type inference.' config.doc.privateName = 'Trata los nombres específicos de campo como privados. Por ejemplo `m_*` significa `XXX.m_id` y `XXX.m_tipo` son privados, por lo que solo pueden ser accedidos donde se define la clase.' config.doc.protectedName = 'Trata los nombres específicos de campo como protegidos. Por ejemplo `m_*` significa `XXX.m_id` y `XXX.m_tipo` son privados, por lo que solo pueden ser accedidos donde se define la clase y sus subclases.' config.doc.packageName = 'Trata los nombres específicos de campo como del paquete. Por ejemplo `m_*` significa `XXX.m_id` y `XXX.m_tipo` son de paquete, por lo que solo pueden ser accedidos en el archivo donde son definidos.' +config.doc.regengine = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' +config.doc.regengine.glob = -- TODO: need translate! +'The default lightweight pattern syntax.' +config.doc.regengine.lua = -- TODO: need translate! +'Full Lua-style regular expressions.' +config.docScriptPath = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' config.diagnostics['unused-local'] = 'Habilita el diagnóstico de variables local sin uso.' config.diagnostics['unused-function'] = diff --git a/locale/ja-jp/setting.lua b/locale/ja-jp/setting.lua index a8c307324..03c8943e7 100644 --- a/locale/ja-jp/setting.lua +++ b/locale/ja-jp/setting.lua @@ -316,12 +316,22 @@ config.type.checkTableShape = -- TODO: need translate! [[ Strictly check the shape of the table. ]] +config.type.inferTableSize = -- TODO: need translate! +'Maximum number of table fields analyzed during type inference.' config.doc.privateName = -- TODO: need translate! 'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.' config.doc.protectedName = -- TODO: need translate! 'Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.' config.doc.packageName = -- TODO: need translate! 'Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.' +config.doc.regengine = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' +config.doc.regengine.glob = -- TODO: need translate! +'The default lightweight pattern syntax.' +config.doc.regengine.lua = -- TODO: need translate! +'Full Lua-style regular expressions.' +config.docScriptPath = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' config.diagnostics['unused-local'] = -- TODO: need translate! 'Enable unused local variable diagnostics.' config.diagnostics['unused-function'] = -- TODO: need translate! diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua index 465b45f27..c56a2592d 100644 --- a/locale/pt-br/setting.lua +++ b/locale/pt-br/setting.lua @@ -316,12 +316,22 @@ config.type.checkTableShape = -- TODO: need translate! [[ 对表的形状进行严格检查。 ]] +config.type.inferTableSize = -- TODO: need translate! +'Maximum number of table fields analyzed during type inference.' config.doc.privateName = -- TODO: need translate! 'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.' config.doc.protectedName = -- TODO: need translate! 'Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.' config.doc.packageName = -- TODO: need translate! 'Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.' +config.doc.regengine = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' +config.doc.regengine.glob = -- TODO: need translate! +'The default lightweight pattern syntax.' +config.doc.regengine.lua = -- TODO: need translate! +'Full Lua-style regular expressions.' +config.docScriptPath = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' config.diagnostics['unused-local'] = -- TODO: need translate! '未使用的局部变量' config.diagnostics['unused-function'] = -- TODO: need translate! diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua index ece1e6191..83603915e 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -314,12 +314,22 @@ config.type.checkTableShape = [[ 对表的形状进行严格检查。 ]] +config.type.inferTableSize = +'类型推断期间分析的表字段的最大数量。' config.doc.privateName = '将特定名称的字段视为私有,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是私有字段,只能在定义所在的类中访问。' config.doc.protectedName = '将特定名称的字段视为受保护,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是受保护的字段,只能在定义所在的类极其子类中访问。' config.doc.packageName = '将特定名称的字段视为package,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 只能在定义所在的文件中访问。' +config.doc.regengine = +'用于匹配文档作用域名称的正则表达式引擎。' +config.doc.regengine.glob = +'默认轻量级模式语法。' +config.doc.regengine.lua = +'完整的 Lua 风格正则表达式。' +config.docScriptPath = +'自定义 Lua 脚本路径,覆盖默认文档生成行为。' config.diagnostics['unused-local'] = '未使用的局部变量' config.diagnostics['unused-function'] = diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 1bc254aa9..11fdbe2f4 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -314,12 +314,22 @@ config.type.checkTableShape = -- TODO: need translate! [[ 对表的形状进行严格检查。 ]] +config.type.inferTableSize = -- TODO: need translate! +'Maximum number of table fields analyzed during type inference.' config.doc.privateName = -- TODO: need translate! 'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.' config.doc.protectedName = -- TODO: need translate! 'Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.' config.doc.packageName = -- TODO: need translate! 'Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.' +config.doc.regengine = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' +config.doc.regengine.glob = -- TODO: need translate! +'The default lightweight pattern syntax.' +config.doc.regengine.lua = -- TODO: need translate! +'Full Lua-style regular expressions.' +config.docScriptPath = -- TODO: need translate! +'The regular expression engine used for matching documentation scope names.' config.diagnostics['unused-local'] = '未使用的區域變數' config.diagnostics['unused-function'] = From 7ee1657fa60d9e5bd4e459dafe2d595b37782fab Mon Sep 17 00:00:00 2001 From: qwertycxz Date: Sun, 20 Apr 2025 21:58:43 +0800 Subject: [PATCH 2/3] fix locale typo --- locale/en-us/setting.lua | 2 +- locale/zh-cn/setting.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index e3a79827b..6a9ab1c26 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -289,7 +289,7 @@ config.misc.parameters = config.misc.executablePath = 'Specify the executable path in VSCode.' config.language.fixIndent = -'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function."' +'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function".' config.language.completeAnnotation = '(VSCode only) Automatically insert "---@ " after a line break following a annotation.' config.type.castNumberToInteger = diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua index 83603915e..c3b5195b4 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -53,7 +53,7 @@ config.diagnostics.disable = config.diagnostics.globals = "已定义的全局变量。" config.diagnostics.globalsRegex = -"启用诊断以检测尝试关闭非对象的变量。" +"已定义的全局变量符合的正则表达式。" config.diagnostics.severity = [[ 修改诊断等级。 From 94f1bbfef5a855761bc04c2d7110bdecb36ab897 Mon Sep 17 00:00:00 2001 From: qwertycxz Date: Sun, 20 Apr 2025 22:43:44 +0800 Subject: [PATCH 3/3] add hyperlink for name style setting --- locale/en-us/setting.lua | 5 ++++- locale/es-419/setting.lua | 6 +++++- locale/ja-jp/setting.lua | 5 ++++- locale/pt-br/setting.lua | 5 ++++- locale/zh-cn/setting.lua | 5 ++++- locale/zh-tw/setting.lua | 5 ++++- 6 files changed, 25 insertions(+), 6 deletions(-) diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index 6a9ab1c26..674208c37 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -279,7 +279,10 @@ Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/doc config.spell.dict = 'Custom words for spell checking.' config.nameStyle.config = -'Set name style config' +[[ +Set name style config. +Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage. +]] config.telemetry.enable = [[ Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://luals.github.io/privacy/#language-server). diff --git a/locale/es-419/setting.lua b/locale/es-419/setting.lua index 9325329b9..0c3c8c493 100644 --- a/locale/es-419/setting.lua +++ b/locale/es-419/setting.lua @@ -280,7 +280,11 @@ para aprender más sobre su uso. config.spell.dict = 'Palabras extra para el corrector ortográfico.' config.nameStyle.config = -'Configuración de estilo para nombres.' +[[ +Configuración de estilo para nombres. +Revise [la documentación del formateador](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) +para aprender más sobre su uso. +]] config.telemetry.enable = [[ Habilita la telemetría para enviar información del editor y registros de errores por la red. Lea nuestra política de privacidad [aquí (en inglés)](https://luals.github.io/privacy#language-server). diff --git a/locale/ja-jp/setting.lua b/locale/ja-jp/setting.lua index 03c8943e7..3d89c1b9a 100644 --- a/locale/ja-jp/setting.lua +++ b/locale/ja-jp/setting.lua @@ -279,7 +279,10 @@ Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/doc config.spell.dict = -- TODO: need translate! 'Custom words for spell checking.' config.nameStyle.config = -- TODO: need translate! -'Set name style config' +[[ +Set name style config. +Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage. +]] config.telemetry.enable = -- TODO: need translate! [[ Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://luals.github.io/privacy/#language-server). diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua index c56a2592d..35d3ee868 100644 --- a/locale/pt-br/setting.lua +++ b/locale/pt-br/setting.lua @@ -279,7 +279,10 @@ Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/doc config.spell.dict = -- TODO: need translate! 'Custom words for spell checking.' config.nameStyle.config = -- TODO: need translate! -'Set name style config' +[[ +Set name style config. +Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage. +]] config.telemetry.enable = -- TODO: need translate! [[ Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://luals.github.io/privacy/#language-server). diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua index c3b5195b4..29350eb04 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -277,7 +277,10 @@ config.format.defaultConfig = config.spell.dict = '拼写检查的自定义单词。' config.nameStyle.config = -'设定命名风格检查的配置' +[[ +设定命名风格检查的配置。 +请查阅[格式化文档](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs)了解用法。 +]] config.telemetry.enable = [[ 启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://luals.github.io/privacy/#language-server)阅读我们的隐私声明。 diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 11fdbe2f4..4b8c0cde2 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -277,7 +277,10 @@ config.format.defaultConfig = config.spell.dict = '拼寫檢查的自訂單詞。' config.nameStyle.config = -- TODO: need translate! -'Set name style config' +[[ +Set name style config. +Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage. +]] config.telemetry.enable = [[ 啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://luals.github.io/privacy/#language-server)閱讀我們的隱私聲明。