diff --git a/changelog.md b/changelog.md index d929b7919..94c936c67 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ * `FIX` cannot debug in Linux due to lua-debug expecting host process to have lua54 symbols available * `FIX` support hex color codes with `#` in `textDocument/documentColor` +* `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..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). @@ -289,7 +292,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 = @@ -316,12 +319,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 +352,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..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). @@ -317,12 +321,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..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). @@ -316,12 +319,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..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). @@ -316,12 +319,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..29350eb04 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 = [[ 修改诊断等级。 @@ -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)阅读我们的隐私声明。 @@ -314,12 +317,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..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)閱讀我們的隱私聲明。 @@ -314,12 +317,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'] =