Skip to content

Commit bbad28b

Browse files
committed
update locales
thanks to copilot
1 parent 6dedec3 commit bbad28b

File tree

18 files changed

+1357
-1487
lines changed

18 files changed

+1357
-1487
lines changed

locale/en-us/meta.lua

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -722,19 +722,19 @@ string.char =
722722
'Returns a string with length equal to the number of arguments, in which each character has the internal numeric code equal to its corresponding argument.'
723723
string.dump =
724724
'Returns a string containing a binary representation (a *binary chunk*) of the given function.'
725-
string.find = -- TODO: need translate!
726-
'查找第一个字符串中匹配到的 `pattern`(参见 §6.4.1)。'
725+
string.find =
726+
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
727727
string.find['>5.2'] =
728728
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
729729
string.find['=5.1'] =
730730
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
731731
string.format =
732732
'Returns a formatted version of its variable number of arguments following the description given in its first argument.'
733-
string.gmatch = -- TODO: need translate!
733+
string.gmatch =
734734
[[
735-
返回一个迭代器函数。 每次调用这个函数都会继续以 `pattern` (参见 §6.4.1) 对 s 做匹配,并返回所有捕获到的值。
735+
Returns an iterator function. Each call to that iterator continues matching `pattern` (see §6.4.1) over s and returns all captures.
736736
737-
下面这个例子会循环迭代字符串 s 中所有的单词, 并逐行打印:
737+
The following example iterates over all words in string s, printing one per line:
738738
```lua
739739
s =
740740
"hello world from Lua"
@@ -743,8 +743,8 @@ string.gmatch = -- TODO: need translate!
743743
end
744744
```
745745
]]
746-
string.gsub = -- TODO: need translate!
747-
'将字符串 s 中,所有的(或是在 n 给出时的前 n 个) pattern (参见 §6.4.1)都替换成 repl ,并返回其副本。'
746+
string.gsub =
747+
'Returns a copy of s where all occurrences of `pattern` (or the first n occurrences if n is given) are replaced by repl (see §6.4.1).'
748748
string.gmatch['>5.2'] =
749749
[[
750750
Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §6.4.1) over the string s.
@@ -779,12 +779,12 @@ string.len =
779779
'Returns its length.'
780780
string.lower =
781781
'Returns a copy of this string with all uppercase letters changed to lowercase.'
782-
string.match = -- TODO: need translate!
783-
'在字符串 s 中找到第一个能用 pattern (参见 §6.4.1)匹配到的部分。 如果能找到,match 返回其中的捕获物; 否则返回 nil 。'
784-
string.pack = -- TODO: need translate!
785-
'返回一个打包了(即以二进制形式序列化) v1, v2 等值的二进制字符串。 字符串 fmt 为打包格式(参见 §6.4.2)。'
786-
string.packsize = -- TODO: need translate!
787-
[[返回以指定格式用 $string.pack 打包的字符串的长度。 格式化字符串中不可以有变长选项 's' 或 'z' (参见 §6.4.2)。]]
782+
string.match =
783+
'Looks for the first match of `pattern` (see §6.4.1) in the string. If it finds one, `match` returns the captures; otherwise it returns nil.'
784+
string.pack =
785+
'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string `fmt` (see §6.4.2).'
786+
string.packsize =
787+
'Returns the length of a string resulting from `string.pack` with the given format string `fmt`. The format string cannot contain the variable-length options `s` or `z` (see §6.4.2).'
788788
string.match['>5.2'] =
789789
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
790790
string.match['=5.1'] =

locale/en-us/script.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ HOVER_DOCUMENT_LUA53 =
384384
'http://www.lua.org/manual/5.3/manual.html#{}'
385385
HOVER_DOCUMENT_LUA54 =
386386
'http://www.lua.org/manual/5.4/manual.html#{}'
387-
HOVER_DOCUMENT_LUA55 = -- TODO: need translate!
387+
HOVER_DOCUMENT_LUA55 =
388388
'https://www.lua.org/work/doc/manual.html#{}'
389389
HOVER_DOCUMENT_LUAJIT =
390390
'http://www.lua.org/manual/5.1/manual.html#{}'
@@ -396,7 +396,7 @@ HOVER_NATIVE_DOCUMENT_LUA53 =
396396
'command:extension.lua.doc?["en-us/53/manual.html/{}"]'
397397
HOVER_NATIVE_DOCUMENT_LUA54 =
398398
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
399-
HOVER_NATIVE_DOCUMENT_LUA55 = -- TODO: need translate!
399+
HOVER_NATIVE_DOCUMENT_LUA55 =
400400
'command:extension.lua.doc?["en-us/55/manual.html/{}"]'
401401
HOVER_NATIVE_DOCUMENT_LUAJIT =
402402
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
@@ -673,8 +673,8 @@ CLI_CHECK_SUCCESS =
673673
'Diagnosis completed, no problems found'
674674
CLI_CHECK_PROGRESS =
675675
'Found {} problems in {} files'
676-
CLI_CHECK_RESULTS= -- TODO: need translate!
677-
'Se completó el diagnóstico, se encontraron {} problema(s), vea {}'
676+
CLI_CHECK_RESULTS =
677+
'Diagnosis complete, {} problems found, see {}'
678678
CLI_CHECK_RESULTS_OUTPATH =
679679
'Diagnosis complete, {} problems found, see {}'
680680
CLI_CHECK_RESULTS_PRETTY =

locale/en-us/setting.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ config.diagnostics.ignoredFiles.Opened =
115115
"Only when these files are opened will it be diagnosed."
116116
config.diagnostics.ignoredFiles.Disable =
117117
"These files are not diagnosed."
118-
config.diagnostics.disableScheme = -- TODO: need translate!
119-
'Los archivos de Lua que siguen el siguiente esquema no se diagnostican.'
118+
config.diagnostics.disableScheme =
119+
'Do not diagnose Lua files that use the following scheme.'
120120
config.diagnostics.validScheme =
121121
'Enable diagnostics for Lua files that use the following scheme.'
122122
config.diagnostics.unusedLocalExclude =

locale/es-419/meta.lua

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -723,10 +723,10 @@ string.dump =
723723
'Retorna un string que contiene una representación binaria de la función provista.'
724724
string.find =
725725
'Busca el primer calce del patrón `pattern` (véase §6.4.1) en el string.'
726-
string.find['>5.2'] = -- TODO: need translate!
727-
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
728-
string.find['=5.1'] = -- TODO: need translate!
729-
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
726+
string.find['>5.2'] =
727+
'Busca el primer calce del patrón `pattern` (véase §6.4.1) en el string.'
728+
string.find['=5.1'] =
729+
'Busca el primer calce del patrón `pattern` (véase §5.4.1) en el string.'
730730
string.format =
731731
'Retorna una versión formateada de su argumentos (en número variable) siguiendo la descripción dada en su primer argumento.'
732732
string.gmatch =
@@ -744,11 +744,11 @@ Por ejemplo, el bucle siguiente itera sobre todas las palabras del sstring s, im
744744
]]
745745
string.gsub =
746746
'Retorna una copia de s en la cual todos (o los primeras `n`, si es provisto este argumento) ocurrencias del patrón `pattern` (vease §6.4.1) han sido reemplazadas por el string de reemplazo especificado por `repl`.'
747-
string.gmatch['>5.2'] = -- TODO: need translate!
747+
string.gmatch['>5.2'] =
748748
[[
749-
Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §6.4.1) over the string s.
749+
Retorna una función iteradora que, cada vez que es llamada, retorna las siguientes capturas del patrón `pattern` (véase §6.4.1) sobre el string s.
750750
751-
As an example, the following loop will iterate over all the words from string s, printing one per line:
751+
Por ejemplo, el bucle siguiente itera sobre todas las palabras del string s, imprimiendo una por línea:
752752
```lua
753753
s =
754754
"hello world from Lua"
@@ -757,11 +757,11 @@ As an example, the following loop will iterate over all the words from string s,
757757
end
758758
```
759759
]]
760-
string.gmatch['=5.1'] = -- TODO: need translate!
760+
string.gmatch['=5.1'] =
761761
[[
762-
Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §5.4.1) over the string s.
762+
Retorna una función iteradora que, cada vez que es llamada, retorna las siguientes capturas del patrón `pattern` (véase §5.4.1) sobre el string s.
763763
764-
As an example, the following loop will iterate over all the words from string s, printing one per line:
764+
Por ejemplo, el bucle siguiente itera sobre todas las palabras del string s, imprimiendo una por línea:
765765
```lua
766766
s =
767767
"hello world from Lua"
@@ -770,10 +770,10 @@ As an example, the following loop will iterate over all the words from string s,
770770
end
771771
```
772772
]]
773-
string.gsub['>5.2'] = -- TODO: need translate!
774-
'Returns a copy of s in which all (or the first `n`, if given) occurrences of the `pattern` (see §6.4.1) have been replaced by a replacement string specified by `repl`.'
775-
string.gsub['=5.1'] = -- TODO: need translate!
776-
'Returns a copy of s in which all (or the first `n`, if given) occurrences of the `pattern` (see §5.4.1) have been replaced by a replacement string specified by `repl`.'
773+
string.gsub['>5.2'] =
774+
'Retorna una copia de s en la cual todas (o las primeras `n`, si se entrega) ocurrencias del patrón `pattern` (véase §6.4.1) han sido reemplazadas por un string de reemplazo especificado por `repl`.'
775+
string.gsub['=5.1'] =
776+
'Retorna una copia de s en la cual todas (o las primeras `n`, si se entrega) ocurrencias del patrón `pattern` (véase §5.4.1) han sido reemplazadas por un string de reemplazo especificado por `repl`.'
777777
string.len =
778778
'Retorna el largo.'
779779
string.lower =
@@ -784,14 +784,14 @@ string.pack =
784784
'Retorna el string binario que contiene los valores `v1`, `v2`, etc. empacados (serializados en forma binaria) de acuerdo al string de formato `fmt` (véase §6.4.2) .'
785785
string.packsize =
786786
'Retorna el largo del string que retorna `string.pack` con el formato `fmt` (véase §6.4.2) provisto.'
787-
string.match['>5.2'] = -- TODO: need translate!
788-
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
789-
string.match['=5.1'] = -- TODO: need translate!
790-
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
791-
string.pack['>5.2'] = -- TODO: need translate!
792-
'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string `fmt` (see §6.4.2) .'
793-
string.packsize['>5.2'] = -- TODO: need translate!
794-
'Returns the size of a string resulting from `string.pack` with the given format string `fmt` (see §6.4.2) .'
787+
string.match['>5.2'] =
788+
'Busca el primer calce del patrón `pattern` (véase §6.4.1) en el string.'
789+
string.match['=5.1'] =
790+
'Busca el primer calce del patrón `pattern` (véase §5.4.1) en el string.'
791+
string.pack['>5.2'] =
792+
'Retorna el string binario que contiene los valores `v1`, `v2`, etc. empacados (serializados en forma binaria) de acuerdo al string de formato `fmt` (véase §6.4.2).'
793+
string.packsize['>5.2'] =
794+
'Retorna el largo del string que retorna `string.pack` con el formato `fmt` (véase §6.4.2) provisto.'
795795
string.rep['>5.2'] =
796796
'Retorna el string que es la concatenación de `n` copias del string `s` separado por el string `sep`.'
797797
string.rep['<5.1'] =

locale/es-419/script.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ DIAG_OVER_MAX_ARGS =
3636
'Esta función espera un máximo de {:d} argumento(s), pero está recibiendo {:d}.'
3737
DIAG_MISS_ARGS =
3838
'Esta función requiere {:d} argumento(s), pero está recibiendo {:d}.'
39-
DIAG_UNNECESSARY_ASSERT = -- TODO: need translate!
40-
'Unnecessary assert: this expression is always truthy.'
39+
DIAG_UNNECESSARY_ASSERT =
40+
'Aserción innecesaria: esta expresión siempre es verdadera.'
4141
DIAG_OVER_MAX_VALUES =
4242
'Solo tiene {} variables, pero se están asignando {} valores.'
4343
DIAG_AMBIGUITY_1 =
4444
'Se calcula `{}` primero. Agregar corchetes podría ser necesario.'
4545
DIAG_LOWERCASE_GLOBAL =
4646
'Variable global con inicial minúscula, ¿olvidó agregar `local` o está mal escrita?'
4747

48-
ASSIGN_CONST_GLOBAL = -- TODO: need translate!
49-
'Cannot assign to <const> global variable `{}`.'
48+
ASSIGN_CONST_GLOBAL =
49+
'No se puede asignar a la variable global <const> `{}`.'
5050

51-
VARIABLE_NOT_DECLARED = -- TODO: need translate!
52-
'Variable `{}` not declared (global declarations active).'
51+
VARIABLE_NOT_DECLARED =
52+
'Variable `{}` no declarada (declaraciones globales activas).'
5353

5454
DIAG_EMPTY_BLOCK =
5555
'Bloque vacío.'
@@ -384,7 +384,7 @@ HOVER_DOCUMENT_LUA53 =
384384
'http://www.lua.org/manual/5.3/manual.html#{}'
385385
HOVER_DOCUMENT_LUA54 =
386386
'http://www.lua.org/manual/5.4/manual.html#{}'
387-
HOVER_DOCUMENT_LUA55 = -- TODO: need translate!
387+
HOVER_DOCUMENT_LUA55 =
388388
'https://www.lua.org/work/doc/manual.html#{}'
389389
HOVER_DOCUMENT_LUAJIT =
390390
'http://www.lua.org/manual/5.1/manual.html#{}'
@@ -396,7 +396,7 @@ HOVER_NATIVE_DOCUMENT_LUA53 =
396396
'command:extension.lua.doc?["en-us/53/manual.html/{}"]'
397397
HOVER_NATIVE_DOCUMENT_LUA54 =
398398
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
399-
HOVER_NATIVE_DOCUMENT_LUA55 = -- TODO: need translate!
399+
HOVER_NATIVE_DOCUMENT_LUA55 =
400400
'command:extension.lua.doc?["en-us/55/manual.html/{}"]'
401401
HOVER_NATIVE_DOCUMENT_LUAJIT =
402402
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
@@ -675,10 +675,10 @@ CLI_CHECK_PROGRESS=
675675
'Se encontraron {} problema(s) en {} archivo(s)'
676676
CLI_CHECK_RESULTS=
677677
'Se completó el diagnóstico, se encontraron {} problema(s), vea {}'
678-
CLI_CHECK_RESULTS_OUTPATH = -- TODO: need translate!
679-
'Diagnosis complete, {} problems found, see {}'
680-
CLI_CHECK_RESULTS_PRETTY = -- TODO: need translate!
681-
'Diagnosis complete, {} problems found'
678+
CLI_CHECK_RESULTS_OUTPATH =
679+
'Diagnóstico completado, se encontraron {} problema(s), vea {}'
680+
CLI_CHECK_RESULTS_PRETTY =
681+
'Diagnóstico completado, se encontraron {} problema(s)'
682682
CLI_CHECK_MULTIPLE_WORKERS=
683683
'Iniciando {} tarea(s) de trabajo, se ha deshabitado la salida de progreso. Esto podría tomar unos minutos.'
684684
CLI_DOC_INITING =

locale/es-419/setting.lua

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ config.addonManager.repositoryBranch =
66
"Especifica la rama de git usada por el manejador de extensiones."
77
config.addonManager.repositoryPath =
88
"Especifica la ruta git usada por el manejador de extensiones."
9-
config.addonRepositoryPath = -- TODO: need translate!
10-
"Specifies the addon repository path (not related to the addon manager)."
9+
config.addonRepositoryPath =
10+
"Especifica la ruta del repositorio de complementos (no relacionada con el gestor de complementos)."
1111
config.runtime.version =
1212
"Versión de Lua que se ejecuta."
1313
config.runtime.path =
@@ -118,12 +118,12 @@ config.diagnostics.ignoredFiles.Disable =
118118
"Estos archivos no se diagnostican."
119119
config.diagnostics.disableScheme =
120120
'Los archivos de Lua que siguen el siguiente esquema no se diagnostican.'
121-
config.diagnostics.validScheme = -- TODO: need translate!
122-
'Enable diagnostics for Lua files that use the following scheme.'
121+
config.diagnostics.validScheme =
122+
'Habilita diagnósticos para archivos Lua que usan el siguiente esquema.'
123123
config.diagnostics.unusedLocalExclude =
124124
'Las variables que calcen con el siguiente patrón no se diagnostican con `unused-local`.'
125-
config.diagnostics.validScheme = -- TODO: need translate!
126-
'Enable diagnostics for Lua files that use the following scheme.'
125+
config.diagnostics.validScheme =
126+
'Habilita diagnósticos para archivos Lua que usan el siguiente esquema.'
127127
config.workspace.ignoreDir =
128128
"Directorios y archivos ignorados (se usa la misma gramática que en `.gitignore`)"
129129
config.workspace.ignoreSubmodules =
@@ -183,8 +183,8 @@ config.completion.showWord.Disable =
183183
"Sin presentar las palabras contextuales."
184184
config.completion.autoRequire =
185185
"Agrega automáticamente el `require` correspondiente cuando la entrada se parece a un nombre de archivo."
186-
config.completion.maxSuggestCount = -- TODO: need translate!
187-
"Maximum number of fields to analyze for completions. When an object has more fields than this limit, completions will require more specific input to appear."
186+
config.completion.maxSuggestCount =
187+
"Número máximo de campos a analizar para autocompletar. Cuando un objeto tiene más campos que este límite, las sugerencias requerirán una entrada más específica para aparecer."
188188
config.completion.showParams =
189189
"Muestra los parámetros en la lista de completado. Cuando la función tiene múltiples definiciones, se mostrarán por separado."
190190
config.completion.requireSeparator =
@@ -265,9 +265,9 @@ config.hint.arrayIndex.Disable =
265265
'Deshabilita las pistas en de los índices de arreglos.'
266266
config.hint.await =
267267
'Si la función que se llama está marcada con `---@async`, pregunta por un `await` en la llamada.'
268-
config.hint.awaitPropagate = -- TODO: need translate!
269-
'Enable the propagation of `await`. When a function calls a function marked `---@async`,\z
270-
it will be automatically marked as `---@async`.'
268+
config.hint.awaitPropagate =
269+
'Habilita la propagación de `await`. Cuando una función llama a una función marcada con `---@async`,\z
270+
se marcará automáticamente como `---@async`.'
271271
config.hint.semicolon =
272272
'Si no hay punto y coma al final de la sentencia, despliega un punto y coma virtual.'
273273
config.hint.semicolon.All =
@@ -331,22 +331,22 @@ config.type.checkTableShape =
331331
[[
332332
Chequea estrictamente la forma de la tabla.
333333
]]
334-
config.type.inferTableSize = -- TODO: need translate!
335-
'Maximum number of table fields analyzed during type inference.'
334+
config.type.inferTableSize =
335+
'Cantidad máxima de campos de tabla analizados durante la inferencia de tipos.'
336336
config.doc.privateName =
337337
'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.'
338338
config.doc.protectedName =
339339
'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.'
340340
config.doc.packageName =
341341
'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.'
342-
config.doc.regengine = -- TODO: need translate!
343-
'The regular expression engine used for matching documentation scope names.'
344-
config.doc.regengine.glob = -- TODO: need translate!
345-
'The default lightweight pattern syntax.'
346-
config.doc.regengine.lua = -- TODO: need translate!
347-
'Full Lua-style regular expressions.'
348-
config.docScriptPath = -- TODO: need translate!
349-
'The regular expression engine used for matching documentation scope names.'
342+
config.doc.regengine =
343+
'Motor de expresiones regulares usado para coincidir nombres de ámbito de documentación.'
344+
config.doc.regengine.glob =
345+
'Sintaxis de patrones ligera predeterminada.'
346+
config.doc.regengine.lua =
347+
'Expresiones regulares completas al estilo Lua.'
348+
config.docScriptPath =
349+
'Motor de expresiones regulares usado para coincidir nombres de ámbito de documentación.'
350350
config.diagnostics['unused-local'] =
351351
'Habilita el diagnóstico de variables local sin uso.'
352352
config.diagnostics['unused-function'] =
@@ -431,8 +431,8 @@ config.diagnostics['missing-return-value'] =
431431
'Habilita el diagnóstico para expresiones `return …` sin valores aunque la función que la contiene declare retornos.'
432432
config.diagnostics['need-check-nil'] =
433433
'Habilita el diagnóstico para usos de variables si `nil` o un valor opcional (potencialmente `nil`) haya sido asignado a la variable anteriormente.'
434-
config.diagnostics['unnecessary-assert'] = -- TODO: need translate!
435-
'Enable diagnostics for redundant assertions on truthy values.'
434+
config.diagnostics['unnecessary-assert'] =
435+
'Habilita diagnósticos para aserciones redundantes en valores verdaderos.'
436436
config.diagnostics['no-unknown'] =
437437
'Habilita el diagnóstico para los casos en que el tipo no puede ser inferido.'
438438
config.diagnostics['not-yieldable'] =

0 commit comments

Comments
 (0)