《星际争霸2》Galaxy脚本语言错误信息列表及翻译


《星际争霸2》Galaxy脚本语言错误信息列表及翻译


位于Core.SC2Mod\enUS.SC2Data(如果是台湾版的话是zhTW.SC2Data)的Error.txt 。以下只是其中的Galaxy部分 。
[::星际争霸核心社区 BBS.SC2.CC::]
由于台湾版的同样没有翻译~~故此翻译一下~~
【《星际争霸2》Galaxy脚本语言错误信息列表及翻译】
// Galaxy
e_badLValue=http://www.wybk.com/youxi/Cannot assign to the left side of assignment expression
错误的左值
无法对等号左边的表达式赋值 。
e_badParameterType=Can only pass basic types
错误的参数类型
只能传递基础类型的参数 。
e_cantFindInclude=Include file not found
无法找到要inculde的文件 。
e_cantTakeAddress=Cannot use ’&’ on an object which has no address
无法获取地址
无法对没有地址的对象使用&操作符 。
e_constAssigned=Const variable already assigned
常量已赋值
常量已经被被赋值过了 。
e_constInitRequired=Must initialize const variables
需要初始化常量
常量必须经过初始化 。
e_constNotAllowedHere=Cannot use const here
不允许常数
无法在此使用常量 。
e_derefNotPointer=Cannot use ’->’ on a non-pointer object
解引用非指针
无法将->操作符用于非指针对象 。
e_expectedArrayIndex=Expected an array index: ’[’
缺少数组索引 。
e_expectedBoolExpr=Expected a boolean expression
缺少布尔(boolean)表达式
e_expectedCloseBrace=Expected a closing brace: ’}’
缺少结束大括号:’}’
e_expectedComma=Expected a comma: ’,’
缺少逗号:’,’
e_expectedConstExpr=Non-constant initialization of constant object
缺少常量表达式
试图用非常量表达式对常量进行初始化 。
e_expectedExpr=Expected an expression
缺少表达式
e_expectedFieldName=Expected a field name inside a structure
缺少字段名
缺少结构中的字段名 。
e_expectedFieldType=Expected a field type inside a structure
缺少字段类型
缺少结构中的字段类型 。
e_expectedFuncBody=Expected ’;’ or function body
缺少函数体
缺少’;’或函数体 。
e_expectedGlobalName=Expected unused global variable or function name
缺少全局名
缺少没使用过的全局变量名或函数名 。
e_expectedInclude=Expected an include file name
缺少需要include的文件名 。
e_expectedIntType=Shift operator requires integer value
需要int型
位移操作需要整型值 。
e_expectedLeftParen=Expected ’(’
缺少左括号
缺少’(’ 。
e_expectedNativeName=Expected a registered native function name
缺少Native函数名
缺少注册过的Native函数名 。
e_expectedOpenBrace=Expected an opening brace: ’{’
缺少开始大括号
缺少开始大括号:’{’
e_expectedParams=Invalid parameter list
缺少参数
无效的参数列表 。
e_expectedReturn=Expected a return value
缺少返回
缺少返回值 。
e_expectedRightParen=Expected ’)’
缺少右括号
缺少’)’
e_expectedSemicolon=Expected a semicolon: ’;’
缺少分号
缺少分号’;’
e_expectedStructIdent=Structure requires an identifier
缺少结构标识符
结构需要一个标识符 。
e_expectedType=Expected type name
缺少类型
缺少类型名 。
e_expectedTypedefIdent=Typedef requires an unused identifier
Typedef缺少标识符
Typedef需要一个没使用过的标识符来定义新类型 。

推荐阅读