You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: locale/en-us/meta.lua
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -722,12 +722,29 @@ string.char =
722
722
'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.'
723
723
string.dump=
724
724
'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
727
string.find['>5.2'] =
726
728
'Looks for the first match of `pattern` (see §6.4.1) in the string.'
727
729
string.find['=5.1'] =
728
730
'Looks for the first match of `pattern` (see §5.4.1) in the string.'
729
731
string.format=
730
732
'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 ,并返回其副本。'
731
748
string.gmatch['>5.2'] =
732
749
[[
733
750
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 =
762
779
'Returns its length.'
763
780
string.lower=
764
781
'Returns a copy of this string with all uppercase letters changed to lowercase.'
Copy file name to clipboardExpand all lines: locale/es-419/meta.lua
+42-1Lines changed: 42 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -466,7 +466,6 @@ seekwhence.set =
466
466
'Sitúa la posición base está al inicio del archivo.'
467
467
seekwhence.cur=
468
468
'Sitúa la posición base en la actual.'
469
-
470
469
seekwhence['.end'] =
471
470
'Sitúa la posición base al final del archivo.'
472
471
@@ -724,6 +723,10 @@ string.dump =
724
723
'Retorna un string que contiene una representación binaria de la función provista.'
725
724
string.find=
726
725
'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.'
727
730
string.format=
728
731
'Retorna una versión formateada de su argumentos (en número variable) siguiendo la descripción dada en su primer argumento.'
729
732
string.gmatch=
@@ -741,6 +744,36 @@ Por ejemplo, el bucle siguiente itera sobre todas las palabras del sstring s, im
741
744
]]
742
745
string.gsub=
743
746
'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`.'
744
777
string.len=
745
778
'Retorna el largo.'
746
779
string.lower=
@@ -751,6 +784,14 @@ string.pack =
751
784
'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) .'
752
785
string.packsize=
753
786
'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) .'
754
795
string.rep['>5.2'] =
755
796
'Retorna el string que es la concatenación de `n` copias del string `s` separado por el string `sep`.'
"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."
183
188
config.completion.showParams=
184
189
"Muestra los parámetros en la lista de completado. Cuando la función tiene múltiples definiciones, se mostrarán por separado."
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`.'
'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) .'
0 commit comments