Update error messages and french translation.

[DEVELOPMENT ENVIRONMENT]
* NEW: Update error messages.
* NEW: Update french translation.
* BUG: Fix a warning.
This commit is contained in:
gambas 2018-02-28 19:15:02 +01:00
parent 4ae717707e
commit b5491d432d
4 changed files with 389 additions and 546 deletions

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -271,7 +271,7 @@ Public Sub Javascript(sText As String) As String
SubstIdent(sIdent)
Else
If Right(sRes) = "." Then Goto NO_SUBST
If Left(RTrim(Mid$(sText, iPos))) = ":" And InStr(",{", Right(RTrim(sRes))) Then Goto NO_SUBST
If Left(RTrim(Mid$(sText, iPos))) = ":" And If InStr(",{", Right(RTrim(sRes))) Then Goto NO_SUBST
Endif
sSubst = GetSubstIdent(sIdent)

View file

@ -101,152 +101,152 @@ Private Const ERR_097 As String = ("File or directory does not exist")
Private Const ERR_098 As String = ("Forbidden GOSUB")
Private Const ERR_099 As String = ("Forbidden GOTO")
Private Const ERR_100 As String = ("Illegal instruction")
Private Const ERR_101 As String = ("Integer expected")
Private Const ERR_102 As String = ("Internal compiler error: bad stack usage computed!")
Private Const ERR_103 As String = ("Invalid assignment")
Private Const ERR_104 As String = ("Invalid date")
Private Const ERR_105 As String = ("Invalid object")
Private Const ERR_106 As String = ("Invalid path")
Private Const ERR_107 As String = ("IsMissing() requires a function argument")
Private Const ERR_108 As String = ("Jump is too far")
Private Const ERR_109 As String = ("Label '&1' not declared")
Private Const ERR_110 As String = ("Library name must be a string")
Private Const ERR_111 As String = ("Loop variable already in use")
Private Const ERR_112 As String = ("Loop variable must be local")
Private Const ERR_113 As String = ("ME cannot be used in a static function")
Private Const ERR_114 As String = ("Mathematic error")
Private Const ERR_115 As String = ("Missing #Endif")
Private Const ERR_116 As String = ("Missing ']'")
Private Const ERR_117 As String = ("Missing '}'")
Private Const ERR_118 As String = ("Missing operator")
Private Const ERR_119 As String = ("Missing right brace")
Private Const ERR_120 As String = ("NEW cannot have arguments passed by reference")
Private Const ERR_121 As String = ("No instantiation method")
Private Const ERR_122 As String = ("No parent class")
Private Const ERR_123 As String = ("No return value")
Private Const ERR_124 As String = ("No startup method")
Private Const ERR_125 As String = ("Non terminated string")
Private Const ERR_126 As String = ("Not a directory: &1")
Private Const ERR_127 As String = ("Not a function")
Private Const ERR_128 As String = ("Not a procedure")
Private Const ERR_129 As String = ("Not an array")
Private Const ERR_130 As String = ("Not an enumeration")
Private Const ERR_131 As String = ("Not an object")
Private Const ERR_132 As String = ("Not enough argument to New()")
Private Const ERR_133 As String = ("Not enough arguments")
Private Const ERR_134 As String = ("Not enough arguments to &1()")
Private Const ERR_135 As String = ("Not implemented yet")
Private Const ERR_136 As String = ("Not supported")
Private Const ERR_137 As String = ("Null object")
Private Const ERR_138 As String = ("Number")
Private Const ERR_139 As String = ("Number or Date expected")
Private Const ERR_140 As String = ("Number or date")
Private Const ERR_141 As String = ("Number, Date or String")
Private Const ERR_142 As String = ("Number, String or Object")
Private Const ERR_143 As String = ("Object")
Private Const ERR_144 As String = ("Out of bounds")
Private Const ERR_145 As String = ("Out of memory")
Private Const ERR_146 As String = ("Out of range")
Private Const ERR_147 As String = ("Overflow")
Private Const ERR_148 As String = ("Overriding an already inherited class is forbidden")
Private Const ERR_149 As String = ("Pointer")
Private Const ERR_150 As String = ("Read error")
Private Const ERR_151 As String = ("Return value datatype not specified in function declaration")
Private Const ERR_152 As String = ("STOP instruction encountered")
Private Const ERR_153 As String = ("SUPER cannot be used alone")
Private Const ERR_154 As String = ("Serialization error")
Private Const ERR_155 As String = ("Stack overflow")
Private Const ERR_156 As String = ("Standard type")
Private Const ERR_157 As String = ("Stream is closed")
Private Const ERR_158 As String = ("String")
Private Const ERR_159 As String = ("String expected")
Private Const ERR_160 As String = ("Structures must be public")
Private Const ERR_161 As String = ("Subroutine arguments cannot be passed by reference")
Private Const ERR_162 As String = ("Syntax error")
Private Const ERR_163 As String = ("Syntax error at function declaration")
Private Const ERR_164 As String = ("Syntax error in event name")
Private Const ERR_165 As String = ("Syntax error in file open mode")
Private Const ERR_166 As String = ("Syntax error in return type")
Private Const ERR_167 As String = ("Syntax error. &1 expected")
Private Const ERR_168 As String = ("Syntax error. '...' must be the last argument")
Private Const ERR_169 As String = ("Syntax error. Bad property type")
Private Const ERR_170 As String = ("Syntax error. CASE or DEFAULT expected after SELECT")
Private Const ERR_171 As String = ("Syntax error. CLASS needs an identifier")
Private Const ERR_172 As String = ("Syntax error. Cannot use this syntax in assignment")
Private Const ERR_173 As String = ("Syntax error. INHERITS needs a class name")
Private Const ERR_174 As String = ("Syntax error. Identifier expected.")
Private Const ERR_175 As String = ("Syntax error. Invalid identifier in function name")
Private Const ERR_176 As String = ("Syntax error. Invalid identifier in property name")
Private Const ERR_177 As String = ("Syntax error. Invalid optional parameter")
Private Const ERR_178 As String = ("Syntax error. Invalid return type")
Private Const ERR_179 As String = ("Syntax error. Invalid type description of &1 argument")
Private Const ERR_180 As String = ("Syntax error. Invalid type description of &1 field")
Private Const ERR_181 As String = ("Syntax error. Needless arguments")
Private Const ERR_182 As String = ("Syntax error. Point syntax used outside of WITH / END WITH")
Private Const ERR_183 As String = ("Syntax error. STRUCT needs an identifier")
Private Const ERR_184 As String = ("Syntax error. The &1 argument is not a valid identifier")
Private Const ERR_185 As String = ("Syntax error. The &1 field is not a valid identifier")
Private Const ERR_186 As String = ("Syntax error. VarPtr() takes only one identifier")
Private Const ERR_187 As String = ("System error #&1: &2")
Private Const ERR_188 As String = ("The '!' operator must be followed by an identifier")
Private Const ERR_189 As String = ("The '.' operator must be followed by an identifier")
Private Const ERR_190 As String = ("The function must take a fixed number of arguments")
Private Const ERR_191 As String = ("The special method &1 cannot be a function")
Private Const ERR_192 As String = ("The special method &1 cannot be implemented")
Private Const ERR_193 As String = ("The special method &1 cannot be static")
Private Const ERR_194 As String = ("The special method &1 must be a function")
Private Const ERR_195 As String = ("The special method &1 must be public")
Private Const ERR_196 As String = ("The special method &1 must be static")
Private Const ERR_197 As String = ("The special method &1 must return a boolean")
Private Const ERR_198 As String = ("The special method &1 must take a variable number of arguments only")
Private Const ERR_199 As String = ("The special method &1 must take at least one argument")
Private Const ERR_200 As String = ("The special method &1 takes no arguments")
Private Const ERR_201 As String = ("The special method must return an integer")
Private Const ERR_202 As String = ("The special method must take exactly one argument")
Private Const ERR_203 As String = ("The special method must take exactly two arguments")
Private Const ERR_204 As String = ("The special method signature is incorrect")
Private Const ERR_205 As String = ("This expression cannot be a statement")
Private Const ERR_206 As String = ("This expression cannot be passed by reference")
Private Const ERR_207 As String = ("Too many arguments")
Private Const ERR_208 As String = ("Too many arguments to &1()")
Private Const ERR_209 As String = ("Too many array declarations")
Private Const ERR_210 As String = ("Too many constants")
Private Const ERR_211 As String = ("Too many different classes used")
Private Const ERR_212 As String = ("Too many dimensions")
Private Const ERR_213 As String = ("Too many dynamic variables")
Private Const ERR_214 As String = ("Too many events")
Private Const ERR_215 As String = ("Too many expressions in CASE")
Private Const ERR_216 As String = ("Too many external functions")
Private Const ERR_217 As String = ("Too many functions")
Private Const ERR_218 As String = ("Too many imbricated #If...#Endif")
Private Const ERR_219 As String = ("Too many labels")
Private Const ERR_220 As String = ("Too many local variables")
Private Const ERR_221 As String = ("Too many nested control structures.")
Private Const ERR_222 As String = ("Too many property synonymous")
Private Const ERR_223 As String = ("Too many simultaneous new strings")
Private Const ERR_224 As String = ("Too many static variables")
Private Const ERR_225 As String = ("Too many unknown symbols")
Private Const ERR_226 As String = ("Trailing backslash")
Private Const ERR_227 As String = ("Type mismatch")
Private Const ERR_228 As String = ("Type mismatch: wanted &1, got &2 instead")
Private Const ERR_229 As String = ("Unable to create closure")
Private Const ERR_230 As String = ("Unable to get file position")
Private Const ERR_231 As String = ("Unable to load class file")
Private Const ERR_232 As String = ("Unable to prepare function description")
Private Const ERR_233 As String = ("Unexpected &1")
Private Const ERR_234 As String = ("Unexpected end of line")
Private Const ERR_235 As String = ("Unexpected string")
Private Const ERR_236 As String = ("Unknown error")
Private Const ERR_237 As String = ("Unknown file extension")
Private Const ERR_238 As String = ("Unknown identifier: &1")
Private Const ERR_239 As String = ("Unknown operator")
Private Const ERR_240 As String = ("Unknown symbol '&2' in class '&1'")
Private Const ERR_241 As String = ("Unknown user or group")
Private Const ERR_242 As String = ("Unsupported datatype")
Private Const ERR_243 As String = ("Unsupported string conversion")
Private Const ERR_244 As String = ("Useless LOCK")
Private Const ERR_245 As String = ("VarPtr() argument must be a dynamic, a static or a local variable")
Private Const ERR_246 As String = ("Variant")
Private Const ERR_101 As String = ("Internal compiler error: bad stack usage computed!")
Private Const ERR_102 As String = ("Invalid assignment")
Private Const ERR_103 As String = ("Invalid date")
Private Const ERR_104 As String = ("Invalid object")
Private Const ERR_105 As String = ("Invalid path")
Private Const ERR_106 As String = ("IsMissing() requires a function argument")
Private Const ERR_107 As String = ("Jump is too far")
Private Const ERR_108 As String = ("Label '&1' not declared")
Private Const ERR_109 As String = ("Library name must be a string")
Private Const ERR_110 As String = ("Loop variable already in use")
Private Const ERR_111 As String = ("Loop variable must be local")
Private Const ERR_112 As String = ("ME cannot be used in a static function")
Private Const ERR_113 As String = ("Mathematic error")
Private Const ERR_114 As String = ("Missing #Endif")
Private Const ERR_115 As String = ("Missing ']'")
Private Const ERR_116 As String = ("Missing '}'")
Private Const ERR_117 As String = ("Missing operator")
Private Const ERR_118 As String = ("Missing right brace")
Private Const ERR_119 As String = ("NEW cannot have arguments passed by reference")
Private Const ERR_120 As String = ("No instantiation method")
Private Const ERR_121 As String = ("No parent class")
Private Const ERR_122 As String = ("No return value")
Private Const ERR_123 As String = ("No startup method")
Private Const ERR_124 As String = ("Non terminated string")
Private Const ERR_125 As String = ("Not a directory: &1")
Private Const ERR_126 As String = ("Not a function")
Private Const ERR_127 As String = ("Not a procedure")
Private Const ERR_128 As String = ("Not an array")
Private Const ERR_129 As String = ("Not an enumeration")
Private Const ERR_130 As String = ("Not an object")
Private Const ERR_131 As String = ("Not enough argument to New()")
Private Const ERR_132 As String = ("Not enough arguments")
Private Const ERR_133 As String = ("Not enough arguments to &1()")
Private Const ERR_134 As String = ("Not implemented yet")
Private Const ERR_135 As String = ("Not supported")
Private Const ERR_136 As String = ("Null object")
Private Const ERR_137 As String = ("Number")
Private Const ERR_138 As String = ("Number or Date expected")
Private Const ERR_139 As String = ("Number or date")
Private Const ERR_140 As String = ("Number, Date or String")
Private Const ERR_141 As String = ("Number, String or Object")
Private Const ERR_142 As String = ("Object")
Private Const ERR_143 As String = ("Out of bounds")
Private Const ERR_144 As String = ("Out of memory")
Private Const ERR_145 As String = ("Out of range")
Private Const ERR_146 As String = ("Overflow")
Private Const ERR_147 As String = ("Overriding an already inherited class is forbidden")
Private Const ERR_148 As String = ("Pointer")
Private Const ERR_149 As String = ("Read error")
Private Const ERR_150 As String = ("Return value datatype not specified in function declaration")
Private Const ERR_151 As String = ("STOP instruction encountered")
Private Const ERR_152 As String = ("SUPER cannot be used alone")
Private Const ERR_153 As String = ("Serialization error")
Private Const ERR_154 As String = ("Stack overflow")
Private Const ERR_155 As String = ("Standard type")
Private Const ERR_156 As String = ("Stream is closed")
Private Const ERR_157 As String = ("String")
Private Const ERR_158 As String = ("String expected")
Private Const ERR_159 As String = ("Structures must be public")
Private Const ERR_160 As String = ("Subroutine arguments cannot be passed by reference")
Private Const ERR_161 As String = ("Syntax error")
Private Const ERR_162 As String = ("Syntax error at function declaration")
Private Const ERR_163 As String = ("Syntax error in event name")
Private Const ERR_164 As String = ("Syntax error in file open mode")
Private Const ERR_165 As String = ("Syntax error in return type")
Private Const ERR_166 As String = ("Syntax error. &1 expected")
Private Const ERR_167 As String = ("Syntax error. '...' must be the last argument")
Private Const ERR_168 As String = ("Syntax error. Bad property type")
Private Const ERR_169 As String = ("Syntax error. CASE or DEFAULT expected after SELECT")
Private Const ERR_170 As String = ("Syntax error. CLASS needs an identifier")
Private Const ERR_171 As String = ("Syntax error. Cannot use this syntax in assignment")
Private Const ERR_172 As String = ("Syntax error. INHERITS needs a class name")
Private Const ERR_173 As String = ("Syntax error. Identifier expected.")
Private Const ERR_174 As String = ("Syntax error. Invalid identifier in function name")
Private Const ERR_175 As String = ("Syntax error. Invalid identifier in property name")
Private Const ERR_176 As String = ("Syntax error. Invalid optional parameter")
Private Const ERR_177 As String = ("Syntax error. Invalid return type")
Private Const ERR_178 As String = ("Syntax error. Invalid type description of &1 argument")
Private Const ERR_179 As String = ("Syntax error. Invalid type description of &1 field")
Private Const ERR_180 As String = ("Syntax error. Needless arguments")
Private Const ERR_181 As String = ("Syntax error. Point syntax used outside of WITH / END WITH")
Private Const ERR_182 As String = ("Syntax error. STRUCT needs an identifier")
Private Const ERR_183 As String = ("Syntax error. The &1 argument is not a valid identifier")
Private Const ERR_184 As String = ("Syntax error. The &1 field is not a valid identifier")
Private Const ERR_185 As String = ("Syntax error. VarPtr() takes only one identifier")
Private Const ERR_186 As String = ("System error #&1: &2")
Private Const ERR_187 As String = ("The '!' operator must be followed by an identifier")
Private Const ERR_188 As String = ("The '.' operator must be followed by an identifier")
Private Const ERR_189 As String = ("The function must take a fixed number of arguments")
Private Const ERR_190 As String = ("The special method &1 cannot be a function")
Private Const ERR_191 As String = ("The special method &1 cannot be implemented")
Private Const ERR_192 As String = ("The special method &1 cannot be static")
Private Const ERR_193 As String = ("The special method &1 must be a function")
Private Const ERR_194 As String = ("The special method &1 must be public")
Private Const ERR_195 As String = ("The special method &1 must be static")
Private Const ERR_196 As String = ("The special method &1 must return a boolean")
Private Const ERR_197 As String = ("The special method &1 must take a variable number of arguments only")
Private Const ERR_198 As String = ("The special method &1 must take at least one argument")
Private Const ERR_199 As String = ("The special method &1 takes no arguments")
Private Const ERR_200 As String = ("The special method must return an integer")
Private Const ERR_201 As String = ("The special method must take exactly one argument")
Private Const ERR_202 As String = ("The special method must take exactly two arguments")
Private Const ERR_203 As String = ("The special method signature is incorrect")
Private Const ERR_204 As String = ("This expression cannot be a statement")
Private Const ERR_205 As String = ("This expression cannot be passed by reference")
Private Const ERR_206 As String = ("Too many arguments")
Private Const ERR_207 As String = ("Too many arguments to &1()")
Private Const ERR_208 As String = ("Too many array declarations")
Private Const ERR_209 As String = ("Too many constants")
Private Const ERR_210 As String = ("Too many different classes used")
Private Const ERR_211 As String = ("Too many dimensions")
Private Const ERR_212 As String = ("Too many dynamic variables")
Private Const ERR_213 As String = ("Too many events")
Private Const ERR_214 As String = ("Too many expressions in CASE")
Private Const ERR_215 As String = ("Too many external functions")
Private Const ERR_216 As String = ("Too many functions")
Private Const ERR_217 As String = ("Too many imbricated #If...#Endif")
Private Const ERR_218 As String = ("Too many labels")
Private Const ERR_219 As String = ("Too many local variables")
Private Const ERR_220 As String = ("Too many nested control structures.")
Private Const ERR_221 As String = ("Too many property synonymous")
Private Const ERR_222 As String = ("Too many simultaneous new strings")
Private Const ERR_223 As String = ("Too many static variables")
Private Const ERR_224 As String = ("Too many unknown symbols")
Private Const ERR_225 As String = ("Trailing backslash")
Private Const ERR_226 As String = ("Type mismatch")
Private Const ERR_227 As String = ("Type mismatch: wanted &1, got &2 instead")
Private Const ERR_228 As String = ("Unable to create closure")
Private Const ERR_229 As String = ("Unable to get file position")
Private Const ERR_230 As String = ("Unable to load class file")
Private Const ERR_231 As String = ("Unable to prepare function description")
Private Const ERR_232 As String = ("Unexpected &1")
Private Const ERR_233 As String = ("Unexpected end of line")
Private Const ERR_234 As String = ("Unexpected string")
Private Const ERR_235 As String = ("Unknown error")
Private Const ERR_236 As String = ("Unknown file extension")
Private Const ERR_237 As String = ("Unknown identifier: &1")
Private Const ERR_238 As String = ("Unknown operator")
Private Const ERR_239 As String = ("Unknown symbol '&2' in class '&1'")
Private Const ERR_240 As String = ("Unknown user or group")
Private Const ERR_241 As String = ("Unsupported datatype")
Private Const ERR_242 As String = ("Unsupported string conversion")
Private Const ERR_243 As String = ("Useless LOCK")
Private Const ERR_244 As String = ("VarPtr() argument must be a dynamic, a static or a local variable")
Private Const ERR_245 As String = ("Variant")
Private Const ERR_246 As String = ("Void identifier")
Private Const ERR_247 As String = ("Void key")
Private Const ERR_248 As String = ("Write error")
Private Const ERR_249 As String = ("cannot find component")
@ -257,14 +257,15 @@ Private Const ERR_253 As String = ("constant hidden by local declaration: &1")
Private Const ERR_254 As String = ("extern function hidden by local declaration: &1")
Private Const ERR_255 As String = ("function hidden by local declaration: &1")
Private Const ERR_256 As String = ("global variable hidden by local declaration: &1")
Private Const ERR_257 As String = ("uninitialized global variable: &1")
Private Const ERR_258 As String = ("uninitialized variable: &1")
Private Const ERR_259 As String = ("unknown error")
Private Const ERR_260 As String = ("unused argument: &1")
Private Const ERR_261 As String = ("unused extern function: &1")
Private Const ERR_262 As String = ("unused function: &1")
Private Const ERR_263 As String = ("unused global variable: &1")
Private Const ERR_264 As String = ("unused variable: &1")
Private Const ERR_257 As String = ("integer and boolean mixed with `&1' operator")
Private Const ERR_258 As String = ("uninitialized global variable: &1")
Private Const ERR_259 As String = ("uninitialized variable: &1")
Private Const ERR_260 As String = ("unknown error")
Private Const ERR_261 As String = ("unused argument: &1")
Private Const ERR_262 As String = ("unused extern function: &1")
Private Const ERR_263 As String = ("unused function: &1")
Private Const ERR_264 As String = ("unused global variable: &1")
Private Const ERR_265 As String = ("unused variable: &1")
'}
' E_CHILD specific errors, updated by hand