Skip to content

Commit 76295c2

Browse files
committed
translate
1 parent 90fe364 commit 76295c2

File tree

7 files changed

+25
-1
lines changed

7 files changed

+25
-1
lines changed

locale/en-us/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ PARSER_NESTING_LONG_MARK =
315315
'Nesting of `[[...]]` is not allowed in Lua 5.1 .'
316316
PARSER_LOCAL_LIMIT =
317317
'Only 200 active local variables and upvalues can be existed at the same time.'
318+
PARSER_VARIABLE_NOT_DECLARED =
319+
'Variable `{name}` is not declared. (Use `global *` to allow undefined variables, or declare it with `global {name}`)'
320+
PARSER_ASSIGN_CONST_GLOBAL =
321+
'Cannot assign to const global variable `{name}`.'
318322
PARSER_LUADOC_MISS_CLASS_NAME =
319323
'<class name> expected.'
320324
PARSER_LUADOC_MISS_EXTENDS_SYMBOL =

locale/es-419/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ PARSER_NESTING_LONG_MARK =
309309
'La anidación de `[[...]]` no está permitida en Lua 5.1 .'
310310
PARSER_LOCAL_LIMIT =
311311
'Solo 200 variables locales activas y valores anteriores pueden existir al mismo tiempo.'
312+
PARSER_VARIABLE_NOT_DECLARED =
313+
'Variable `{name}` no está declarada. (Use `global *` para permitir variables indefinidas, o declárela con `global {name}`)'
314+
PARSER_ASSIGN_CONST_GLOBAL =
315+
'No se puede asignar a la variable global constante `{name}`.'
312316
PARSER_LUADOC_MISS_CLASS_NAME =
313317
'Se esperaba <class name>.'
314318
PARSER_LUADOC_MISS_EXTENDS_SYMBOL =

locale/ja-jp/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ PARSER_NESTING_LONG_MARK =
311311
'Lua 5.1 ではネストされた `[[...]]` は使用できません。'
312312
PARSER_LOCAL_LIMIT =
313313
'同時に存在できるローカル変数とアップバリューの数は200個までです。'
314+
PARSER_VARIABLE_NOT_DECLARED =
315+
'変数 `{name}` は宣言されていません。(`global *` を使用して未定義の変数を許可するか、`global {name}` で宣言してください)'
316+
PARSER_ASSIGN_CONST_GLOBAL =
317+
'定数グローバル変数 `{name}` に代入できません。'
314318
PARSER_LUADOC_MISS_CLASS_NAME =
315319
'クラス名が不足しています。'
316320
PARSER_LUADOC_MISS_EXTENDS_SYMBOL =

locale/pt-br/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ PARSER_NESTING_LONG_MARK = -- TODO: need translate!
311311
'Nesting of `[[...]]` is not allowed in Lua 5.1 .'
312312
PARSER_LOCAL_LIMIT = -- TODO: need translate!
313313
'Only 200 active local variables and upvalues can be existed at the same time.'
314+
PARSER_VARIABLE_NOT_DECLARED =
315+
'Variável `{name}` não foi declarada. (Use `global *` para permitir variáveis indefinidas, ou declare com `global {name}`)'
316+
PARSER_ASSIGN_CONST_GLOBAL =
317+
'Não é possível atribuir à variável global constante `{name}`.'
314318
PARSER_LUADOC_MISS_CLASS_NAME =
315319
'Esperado <class name>.'
316320
PARSER_LUADOC_MISS_EXTENDS_SYMBOL =

locale/zh-cn/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ PARSER_NESTING_LONG_MARK =
315315
'Lua 5.1 中不允许使用嵌套的 `[[...]]` 。'
316316
PARSER_LOCAL_LIMIT =
317317
'只能同时存在200个活跃的局部变量与上值。'
318+
PARSER_VARIABLE_NOT_DECLARED =
319+
'变量 `{name}` 未声明。(使用 `global *` 允许未定义变量,或使用 `global {name}` 声明)'
320+
PARSER_ASSIGN_CONST_GLOBAL =
321+
'无法对常量全局变量 `{name}` 赋值。'
318322
PARSER_LUADOC_MISS_CLASS_NAME =
319323
'缺少类名称。'
320324
PARSER_LUADOC_MISS_EXTENDS_SYMBOL =

locale/zh-tw/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ PARSER_NESTING_LONG_MARK =
311311
'Lua 5.1 不允許使用巢狀的 `[[...]]` 。'
312312
PARSER_LOCAL_LIMIT =
313313
'只能同時存在200個活躍的區域變數與上值。'
314+
PARSER_VARIABLE_NOT_DECLARED =
315+
'變數 `{name}` 未宣告。(使用 `global *` 允許未定義變數,或使用 `global {name}` 宣告)'
316+
PARSER_ASSIGN_CONST_GLOBAL =
317+
'無法對常數全域變數 `{name}` 賦值。'
314318
PARSER_LUADOC_MISS_CLASS_NAME =
315319
'缺少類別名稱。'
316320
PARSER_LUADOC_MISS_EXTENDS_SYMBOL =

script/parser/compile.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ end
755755

756756
---@param obj table
757757
local function createGlobal(obj, attrs)
758-
obj.type = 'global'
758+
obj.type = 'globaldeclare'
759759

760760
if attrs then
761761
obj.attrs = attrs

0 commit comments

Comments
 (0)