Skip to content

Commit 6dedec3

Browse files
committed
update locales
1 parent 07a1b43 commit 6dedec3

File tree

20 files changed

+357
-8
lines changed

20 files changed

+357
-8
lines changed

.vscode/launch.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"address": "127.0.0.1:11422",
3030
"outputCapture": [
3131
],
32+
"luaVersion": "lua54",
3233
"sourceFormat": "string",
3334
"sourceMaps": [
3435
[
@@ -60,7 +61,7 @@
6061
"internalConsoleOptions": "openOnSessionStart",
6162
"arg": [
6263
],
63-
"luaVersion": "lua-latest",
64+
"luaVersion": "lua54",
6465
"sourceCoding": "utf8",
6566
"outputCapture": [
6667
"print",
@@ -82,7 +83,7 @@
8283
"internalConsoleOptions": "openOnSessionStart",
8384
"arg": [
8485
],
85-
"luaVersion": "lua-latest",
86+
"luaVersion": "lua54",
8687
"sourceCoding": "utf8",
8788
"outputCapture": [
8889
"print",
@@ -104,7 +105,7 @@
104105
"internalConsoleOptions": "openOnSessionStart",
105106
"arg": [
106107
],
107-
"luaVersion": "lua-latest",
108+
"luaVersion": "lua54",
108109
"sourceCoding": "utf8",
109110
"outputCapture": [
110111
"print",
@@ -126,7 +127,7 @@
126127
"--check",
127128
"${workspaceRoot}",
128129
],
129-
"luaVersion": "lua-latest",
130+
"luaVersion": "lua54",
130131
"sourceCoding": "utf8",
131132
"outputCapture": [
132133
"print",
@@ -148,7 +149,7 @@
148149
"--doc",
149150
"${workspaceRoot}",
150151
],
151-
"luaVersion": "lua-latest",
152+
"luaVersion": "lua54",
152153
"sourceCoding": "utf8",
153154
"outputCapture": [
154155
"print",

locale/en-us/meta.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,12 +722,29 @@ 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)。'
725727
string.find['>5.2'] =
726728
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
727729
string.find['=5.1'] =
728730
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
729731
string.format =
730732
'Returns a formatted version of its variable number of arguments following the description given in its first argument.'
733+
string.gmatch = -- TODO: need translate!
734+
[[
735+
返回一个迭代器函数。 每次调用这个函数都会继续以 `pattern` (参见 §6.4.1) 对 s 做匹配,并返回所有捕获到的值。
736+
737+
下面这个例子会循环迭代字符串 s 中所有的单词, 并逐行打印:
738+
```lua
739+
s =
740+
"hello world from Lua"
741+
for w in string.gmatch(s, "%a+") do
742+
print(w)
743+
end
744+
```
745+
]]
746+
string.gsub = -- TODO: need translate!
747+
'将字符串 s 中,所有的(或是在 n 给出时的前 n 个) pattern (参见 §6.4.1)都替换成 repl ,并返回其副本。'
731748
string.gmatch['>5.2'] =
732749
[[
733750
Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §6.4.1) over the string s.
@@ -762,6 +779,12 @@ string.len =
762779
'Returns its length.'
763780
string.lower =
764781
'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)。]]
765788
string.match['>5.2'] =
766789
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
767790
string.match['=5.1'] =

locale/en-us/script.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ DIAG_AMBIGUITY_1 =
4444
'Compute `{}` first. You may need to add brackets.'
4545
DIAG_LOWERCASE_GLOBAL =
4646
'Global variable in lowercase initial, Did you miss `local` or misspell it?'
47+
4748
ASSIGN_CONST_GLOBAL =
4849
'Cannot assign to <const> global variable `{}`.'
50+
4951
VARIABLE_NOT_DECLARED =
5052
'Variable `{}` not declared (global declarations active).'
53+
5154
DIAG_EMPTY_BLOCK =
5255
'Empty block.'
5356
DIAG_DIAGNOSTICS =
@@ -381,6 +384,8 @@ HOVER_DOCUMENT_LUA53 =
381384
'http://www.lua.org/manual/5.3/manual.html#{}'
382385
HOVER_DOCUMENT_LUA54 =
383386
'http://www.lua.org/manual/5.4/manual.html#{}'
387+
HOVER_DOCUMENT_LUA55 = -- TODO: need translate!
388+
'https://www.lua.org/work/doc/manual.html#{}'
384389
HOVER_DOCUMENT_LUAJIT =
385390
'http://www.lua.org/manual/5.1/manual.html#{}'
386391
HOVER_NATIVE_DOCUMENT_LUA51 =
@@ -391,6 +396,8 @@ HOVER_NATIVE_DOCUMENT_LUA53 =
391396
'command:extension.lua.doc?["en-us/53/manual.html/{}"]'
392397
HOVER_NATIVE_DOCUMENT_LUA54 =
393398
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
399+
HOVER_NATIVE_DOCUMENT_LUA55 = -- TODO: need translate!
400+
'command:extension.lua.doc?["en-us/55/manual.html/{}"]'
394401
HOVER_NATIVE_DOCUMENT_LUAJIT =
395402
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
396403
HOVER_MULTI_PROTOTYPE =
@@ -666,6 +673,8 @@ CLI_CHECK_SUCCESS =
666673
'Diagnosis completed, no problems found'
667674
CLI_CHECK_PROGRESS =
668675
'Found {} problems in {} files'
676+
CLI_CHECK_RESULTS= -- TODO: need translate!
677+
'Se completó el diagnóstico, se encontraron {} problema(s), vea {}'
669678
CLI_CHECK_RESULTS_OUTPATH =
670679
'Diagnosis complete, {} problems found, see {}'
671680
CLI_CHECK_RESULTS_PRETTY =

locale/en-us/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,14 @@ 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.'
118120
config.diagnostics.validScheme =
119121
'Enable diagnostics for Lua files that use the following scheme.'
120122
config.diagnostics.unusedLocalExclude =
121123
'Do not diagnose `unused-local` when the variable name matches the following pattern.'
124+
config.diagnostics.validScheme =
125+
'Enable diagnostics for Lua files that use the following scheme.'
122126
config.workspace.ignoreDir =
123127
"Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir,
124128
config.workspace.ignoreSubmodules =

locale/es-419/meta.lua

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ seekwhence.set =
466466
'Sitúa la posición base está al inicio del archivo.'
467467
seekwhence.cur =
468468
'Sitúa la posición base en la actual.'
469-
470469
seekwhence['.end'] =
471470
'Sitúa la posición base al final del archivo.'
472471

@@ -724,6 +723,10 @@ string.dump =
724723
'Retorna un string que contiene una representación binaria de la función provista.'
725724
string.find =
726725
'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.'
727730
string.format =
728731
'Retorna una versión formateada de su argumentos (en número variable) siguiendo la descripción dada en su primer argumento.'
729732
string.gmatch =
@@ -741,6 +744,36 @@ Por ejemplo, el bucle siguiente itera sobre todas las palabras del sstring s, im
741744
]]
742745
string.gsub =
743746
'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!
748+
[[
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.
750+
751+
As an example, the following loop will iterate over all the words from string s, printing one per line:
752+
```lua
753+
s =
754+
"hello world from Lua"
755+
for w in string.gmatch(s, "%a+") do
756+
print(w)
757+
end
758+
```
759+
]]
760+
string.gmatch['=5.1'] = -- TODO: need translate!
761+
[[
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.
763+
764+
As an example, the following loop will iterate over all the words from string s, printing one per line:
765+
```lua
766+
s =
767+
"hello world from Lua"
768+
for w in string.gmatch(s, "%a+") do
769+
print(w)
770+
end
771+
```
772+
]]
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`.'
744777
string.len =
745778
'Retorna el largo.'
746779
string.lower =
@@ -751,6 +784,14 @@ string.pack =
751784
'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) .'
752785
string.packsize =
753786
'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) .'
754795
string.rep['>5.2'] =
755796
'Retorna el string que es la concatenación de `n` copias del string `s` separado por el string `sep`.'
756797
string.rep['<5.1'] =

locale/es-419/script.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,21 @@ 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.'
3941
DIAG_OVER_MAX_VALUES =
4042
'Solo tiene {} variables, pero se están asignando {} valores.'
4143
DIAG_AMBIGUITY_1 =
4244
'Se calcula `{}` primero. Agregar corchetes podría ser necesario.'
4345
DIAG_LOWERCASE_GLOBAL =
4446
'Variable global con inicial minúscula, ¿olvidó agregar `local` o está mal escrita?'
47+
48+
ASSIGN_CONST_GLOBAL = -- TODO: need translate!
49+
'Cannot assign to <const> global variable `{}`.'
50+
51+
VARIABLE_NOT_DECLARED = -- TODO: need translate!
52+
'Variable `{}` not declared (global declarations active).'
53+
4554
DIAG_EMPTY_BLOCK =
4655
'Bloque vacío.'
4756
DIAG_DIAGNOSTICS =
@@ -375,6 +384,8 @@ HOVER_DOCUMENT_LUA53 =
375384
'http://www.lua.org/manual/5.3/manual.html#{}'
376385
HOVER_DOCUMENT_LUA54 =
377386
'http://www.lua.org/manual/5.4/manual.html#{}'
387+
HOVER_DOCUMENT_LUA55 = -- TODO: need translate!
388+
'https://www.lua.org/work/doc/manual.html#{}'
378389
HOVER_DOCUMENT_LUAJIT =
379390
'http://www.lua.org/manual/5.1/manual.html#{}'
380391
HOVER_NATIVE_DOCUMENT_LUA51 =
@@ -385,6 +396,8 @@ HOVER_NATIVE_DOCUMENT_LUA53 =
385396
'command:extension.lua.doc?["en-us/53/manual.html/{}"]'
386397
HOVER_NATIVE_DOCUMENT_LUA54 =
387398
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
399+
HOVER_NATIVE_DOCUMENT_LUA55 = -- TODO: need translate!
400+
'command:extension.lua.doc?["en-us/55/manual.html/{}"]'
388401
HOVER_NATIVE_DOCUMENT_LUAJIT =
389402
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
390403
HOVER_MULTI_PROTOTYPE =
@@ -662,6 +675,10 @@ CLI_CHECK_PROGRESS=
662675
'Se encontraron {} problema(s) en {} archivo(s)'
663676
CLI_CHECK_RESULTS=
664677
'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'
665682
CLI_CHECK_MULTIPLE_WORKERS=
666683
'Iniciando {} tarea(s) de trabajo, se ha deshabitado la salida de progreso. Esto podría tomar unos minutos.'
667684
CLI_DOC_INITING =

locale/es-419/setting.lua

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ config.addonManager.repositoryPath =
88
"Especifica la ruta git usada por el manejador de extensiones."
99
config.addonRepositoryPath = -- TODO: need translate!
1010
"Specifies the addon repository path (not related to the addon manager)."
11-
1211
config.runtime.version =
1312
"Versión de Lua que se ejecuta."
1413
config.runtime.path =
@@ -119,8 +118,12 @@ config.diagnostics.ignoredFiles.Disable =
119118
"Estos archivos no se diagnostican."
120119
config.diagnostics.disableScheme =
121120
'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.'
122123
config.diagnostics.unusedLocalExclude =
123124
'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.'
124127
config.workspace.ignoreDir =
125128
"Directorios y archivos ignorados (se usa la misma gramática que en `.gitignore`)"
126129
config.workspace.ignoreSubmodules =
@@ -180,6 +183,8 @@ config.completion.showWord.Disable =
180183
"Sin presentar las palabras contextuales."
181184
config.completion.autoRequire =
182185
"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."
183188
config.completion.showParams =
184189
"Muestra los parámetros en la lista de completado. Cuando la función tiene múltiples definiciones, se mostrarán por separado."
185190
config.completion.requireSeparator =
@@ -260,6 +265,9 @@ config.hint.arrayIndex.Disable =
260265
'Deshabilita las pistas en de los índices de arreglos.'
261266
config.hint.await =
262267
'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`.'
263271
config.hint.semicolon =
264272
'Si no hay punto y coma al final de la sentencia, despliega un punto y coma virtual.'
265273
config.hint.semicolon.All =
@@ -423,6 +431,8 @@ config.diagnostics['missing-return-value'] =
423431
'Habilita el diagnóstico para expresiones `return …` sin valores aunque la función que la contiene declare retornos.'
424432
config.diagnostics['need-check-nil'] =
425433
'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.'
426436
config.diagnostics['no-unknown'] =
427437
'Habilita el diagnóstico para los casos en que el tipo no puede ser inferido.'
428438
config.diagnostics['not-yieldable'] =

locale/ja-jp/meta.lua

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,10 @@ string.dump =
718718
'指定した関数をバイナリ形式(*バイナリコードブロック*)で表した文字列を返す。'
719719
string.find =
720720
'文字列の中から `pattern` に最初にマッチした部分を探す(§6.4.1 を参照)。マッチしたものが見つかった場合、マッチした部分の最初と最後のインデックスを返す。見つからなかった場合、`nil` を返す。'
721+
string.find['>5.2'] = -- TODO: need translate!
722+
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
723+
string.find['=5.1'] = -- TODO: need translate!
724+
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
721725
string.format =
722726
'第一引数で指定されたフォーマットに沿って、可変数の引数を成形したものを返す。'
723727
string.gmatch =
@@ -734,6 +738,36 @@ string.gmatch =
734738
]]
735739
string.gsub =
736740
'文字列 `s` の中の `pattern` にマッチした部分をすべて `repl` に置き換えた文字列を返す(§6.4.1 を参照)。`n` が指定された場合、最初にマッチした `n` 個の部分のみを置き換える。'
741+
string.gmatch['>5.2'] = -- TODO: need translate!
742+
[[
743+
Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §6.4.1) over the string s.
744+
745+
As an example, the following loop will iterate over all the words from string s, printing one per line:
746+
```lua
747+
s =
748+
"hello world from Lua"
749+
for w in string.gmatch(s, "%a+") do
750+
print(w)
751+
end
752+
```
753+
]]
754+
string.gmatch['=5.1'] = -- TODO: need translate!
755+
[[
756+
Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §5.4.1) over the string s.
757+
758+
As an example, the following loop will iterate over all the words from string s, printing one per line:
759+
```lua
760+
s =
761+
"hello world from Lua"
762+
for w in string.gmatch(s, "%a+") do
763+
print(w)
764+
end
765+
```
766+
]]
767+
string.gsub['>5.2'] = -- TODO: need translate!
768+
'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`.'
769+
string.gsub['=5.1'] = -- TODO: need translate!
770+
'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`.'
737771
string.len =
738772
'文字列の長さを返す。'
739773
string.lower =
@@ -744,6 +778,14 @@ string.pack =
744778
'第一引数で指定されたフォーマットに沿って、可変数の引数をバイナリ文字列にシリアライズしたものを返す(§6.4.2 を参照)。'
745779
string.packsize =
746780
'指定されたフォーマットを用いて`string.pack`によって生成された文字列の長さを返す。フォーマット文字列には可変長オプション `s` または `z` を含めることはできない(§6.4.2 を参照)。'
781+
string.match['>5.2'] = -- TODO: need translate!
782+
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
783+
string.match['=5.1'] = -- TODO: need translate!
784+
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
785+
string.pack['>5.2'] = -- TODO: need translate!
786+
'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) .'
787+
string.packsize['>5.2'] = -- TODO: need translate!
788+
'Returns the size of a string resulting from `string.pack` with the given format string `fmt` (see §6.4.2) .'
747789
string.rep['>5.2'] =
748790
'`n` 個の文字列 `s` を文字列 `sep` で区切って連結した文字列を返す。デフォルトの `sep` は空文字列。`n` が正数でない場合は空文字列を返す。'
749791
string.rep['<5.1'] =

0 commit comments

Comments
 (0)