-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
error_database.pot
551 lines (502 loc) · 19.4 KB
/
error_database.pot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# Translations template for Learn GDScript From Zero.
# Copyright (C) 2024 GDQuest
# This file is distributed under the same license as the Learn GDScript From
# Zero project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Learn GDScript From Zero \n"
"Report-Msgid-Bugs-To: https://github.com/GDQuest/learn-gdscript\n"
"POT-Creation-Date: 2024-12-12 14:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.1\n"
#. Reference: IN_EXPECTED_AFTER_IDENTIFIER
#: ./script_checking/error_database.csv:40
msgid ""
"You get this error when the name between the [code]for[/code] and "
"[code]in[/code] is not a valid variable name, or you are missing the "
"[code]in[/code] keyword.\n"
"\n"
"In a [code]for[/code] loop, the [code]in[/code] keyword only accepts a "
"valid temporary variable name to assign values in each loop iteration. "
"The loop creates a new variable with the desired name and assigns each "
"element of the array to it."
msgstr ""
#. Reference: IN_EXPECTED_AFTER_IDENTIFIER
#: ./script_checking/error_database.csv:40
msgid ""
"To fix this error, you need to ensure that the name between the "
"[code]for[/code] and [code]in[/code] keywords is a valid variable name "
"with no punctuation or spaces.\n"
"\n"
"For example, this code is invalid: [code]for cell_position.x in "
"cell_positions_array:[/code] because [code]cell_position.x[/code] isn't a"
" valid variable name.\n"
"\n"
"To access the [code]x[/code] sub-component of the variable, you need to "
"do that inside of the loop's body:\n"
"\n"
"[code]for cell_position in cell_positions_array:\n"
" cell_position.x += 1.0[/code]"
msgstr ""
#. Reference: ASSIGNING_TO_EXPRESSION
#: ./script_checking/error_database.csv:47
msgid ""
"If you get this error, you are most likely trying to assign a value to "
"something other than a variable, which is impossible. You can only assign"
" values to variables.\n"
"\n"
"Another possibility is that you want to check for equality in a condition"
" but wrote a single = instead of ==."
msgstr ""
#. Reference: ASSIGNING_TO_EXPRESSION
#: ./script_checking/error_database.csv:47
msgid ""
"If you want to assign a value to a variable, double-check that what you "
"have on the left side of the = sign is a variable and not a function.\n"
"\n"
"You also need to ensure the syntax is correct. For example, there "
"shouldn't be parentheses on the left side of the equal sign.\n"
"\n"
"In the case of a condition, ensure that you are using two equal signs to "
"check for equality (==)."
msgstr ""
#. Reference: CYCLIC_REFERENCE
#: ./script_checking/error_database.csv:57
msgid ""
"A cyclic reference is when a class references itself, directly or "
"indirectly.\n"
"\n"
"It has two possible causes:\n"
"\n"
"1. You used the class name in the class itself.\n"
"2. Your code refers to another class that refers to this class, causing "
"an endless reference cycle.\n"
"\n"
"Either way, due to how GDScript works in Godot 3, unfortunately,you "
"cannot do this. Godot 4 should solve this problem, but you need to work "
"around it in the meantime."
msgstr ""
#. Reference: CYCLIC_REFERENCE
#: ./script_checking/error_database.csv:57
msgid ""
"Erase the type hint in the error line, and the problem should disappear."
" \n"
"\n"
"At GDQuest, when we face this error, we remove the type hints on lines "
"causing cyclic references. It solves the problem in the vast majority of "
"cases."
msgstr ""
#. Reference: INVALID_INDENTATION
#: ./script_checking/error_database.csv:64
msgid ""
"The indentation of your code (the number of tab characters at the start "
"of the line) is incorrect.\n"
"\n"
"You are missing one or more tabs, or you inserted too many.\n"
"\n"
"The computer uses those leading tab characters on code lines to know "
"which lines of code are part of a code block, like a function."
msgstr ""
#. Reference: INVALID_INDENTATION
#: ./script_checking/error_database.csv:64
msgid ""
"If the line of code with the error is right after a line ending with a "
"colon, like a function definition, you need one extra indent level "
"compared to the previous line.\n"
"\n"
"In other words, your line should have one more leading tab character than"
" the function definition."
msgstr ""
#. Reference: UNEXPECTED_CHARACTER
#: ./script_checking/error_database.csv:73
msgid ""
"You get this error when you wrote something that is syntactically "
"invalid, or you are missing something to complete this line or previous "
"lines of code.\n"
"\n"
"You need to be extremely precise when you write code for the computer. "
"This kind of error is easy to get as all it takes is one wrong character."
"\n"
"\n"
"Note that this error can appear [b]after[/b] the line causing it due to "
"how the computer reads and analyzes your code."
msgstr ""
#. Reference: UNEXPECTED_CHARACTER
#: ./script_checking/error_database.csv:73
msgid ""
"The way to solve this kind of error is highly contextual. The error "
"message should tell you which character or element it's missing.\n"
"\n"
"If the error says \"expected,\" then you're likely missing something in "
"one of the [b]previous[/b] code lines. It could be a punctuation mark, a "
"parenthesis, or something else.\n"
"\n"
"If it says \"unterminated,\" you are missing some character at the end of"
" an expression, like a closing bracket. In this case, it most likely "
"comes from the line with the error."
msgstr ""
#. Reference: UNEXPECTED_CHARACTER_IN_KEYWORD
#: ./script_checking/error_database.csv:76
msgid ""
"This error tells you that you are missing a parenthesis (or sometimes a "
"comma or a path).\n"
"\n"
"Three keywords in GDScript work like function calls and require "
"parentheses: [code]yield()[/code], [code]preload()[/code], and "
"[code]assert()[/code]."
msgstr ""
#. Reference: UNEXPECTED_CHARACTER_IN_KEYWORD
#: ./script_checking/error_database.csv:76
msgid ""
"To address the error, you want to add the missing opening parenthesis, "
"the closing parenthesis, or the comma."
msgstr ""
#. Reference: UNEXPECTED_CHARACTER_IN_EXPORT_HINT
#: ./script_checking/error_database.csv:77
msgid ""
"This error tells you you are missing some parenthesis, a comma, or some "
"value in your export hint."
msgstr ""
#. Reference: UNEXPECTED_CHARACTER_IN_EXPORT_HINT
#: ./script_checking/error_database.csv:77
msgid ""
"You need to read the error message and add the missing character or value"
" it requests."
msgstr ""
#. Reference: MISPLACED_IDENTIFIER
#: ./script_checking/error_database.csv:86
msgid ""
"This error happens in several cases:\n"
"\n"
"1. You wrote an identifier (variable or function name) in the wrong "
"place.\n"
"2. You wrote a keyword like [code]var[/code], [code]func[/code], "
"[code]for[/code], or [code]signal[/code], and you did not follow it by a "
"name.\n"
"3. You wrote a function definition but forgot the parentheses before the "
"colon."
msgstr ""
#. Reference: MISPLACED_IDENTIFIER
#: ./script_checking/error_database.csv:86
msgid ""
"If the error tells you it expected something, you likely forgot to write "
"a name after a keyword like [code]var[/code], [code]func[/code], "
"[code]for[/code], or [code]signal[/code], making your code invalid. Or "
"you forgot parentheses in a function definition. You can address the "
"error by adding the missing name or parentheses.\n"
"\n"
"If the error says you have something unexpected, you are likely missing a"
" keyword like [code]var[/code], [code]func[/code], [code]for[/code], etc."
"\n"
"\n"
"Another possibility is that you need to write a colon at the end of a "
"function definition, [code]for[/code] loop, or a line starting with "
"[code]if[/code], [code]elif[/code], or [code]else[/code]."
msgstr ""
#. Reference: MISPLACED_TYPE_IDENTIFIER
#: ./script_checking/error_database.csv:91
msgid ""
"This error tells you that you are missing a type somewhere. A type can be"
" [code]int[/code], [code]float[/code], [code]String[/code], "
"[code]Array[/code], [code]Vector2[/code], and many identifiers "
"representing a data structure.\n"
"\n"
"Most of the time, this error occurs when you wrote a colon after a "
"variable name but did not follow it with a type name.\n"
"\n"
"It also occurs when you write an arrow ([code]->[/code]) after the "
"parentheses of a function definition but do not follow it with a type "
"name."
msgstr ""
#. Reference: MISPLACED_TYPE_IDENTIFIER
#: ./script_checking/error_database.csv:91
msgid ""
"To solve this, you need to write the name of the type after the colon, "
"arrow (in the case of function return types), inside parentheses (for "
"export types), or after the [code]as[/code] keyword."
msgstr ""
#. Reference: NONEXISTENT_IDENTIFIER
#: ./script_checking/error_database.csv:100
msgid ""
"The variable, function name, or class name you are trying to use does not"
" exist.\n"
"\n"
"You most often get this error when you make typos. Maybe you swapped two "
"letters, forgot a letter... sometimes, it's hard to spot.\n"
"\n"
"The other cause for this error is that you didn't define the variable, "
"function, or class you're trying to access."
msgstr ""
#. Reference: NONEXISTENT_IDENTIFIER
#: ./script_checking/error_database.csv:100
msgid ""
"To solve this error, triple-check that there is no typo in the line.\n"
"\n"
"If you can, try to go to the variable or function definition, double-"
"click the name, copy it, and paste it where you see the error.\n"
"\n"
"If you don't see any typo, then you need to ensure that you defined the "
"variable, function, or class you are referring to."
msgstr ""
#. Reference: MISPLACED_KEYWORD
#: ./script_checking/error_database.csv:105
msgid ""
"You can only use keywords like [code]break[/code] or "
"[code]continue[/code] in a loop. Outside a loop, they are invalid.\n"
"\n"
"The [code]continue[/code] keyword means \"jump to the next iteration of "
"the loop.\" And the [code]break[/code] keyword means \"end the loop right"
" now and jump to the first line of code after the loop block."
msgstr ""
#. Reference: MISPLACED_KEYWORD
#: ./script_checking/error_database.csv:105
msgid ""
"If you wrote one of these keywords outside a loop, you need to remove it."
"\n"
"\n"
"If you are trying to use it inside a loop, your indentation is most "
"likely at fault. You may need to insert one or more leading tab "
"characters to the keyword."
msgstr ""
#. Reference: EXPECTED_CONSTANT_EXPRESSION
#: ./script_checking/error_database.csv:110
msgid ""
"When the computer talks about a constant expression, it expects a fixed "
"value, a fixed calculation, or the name of an existing constant.\n"
"\n"
"In other words, it wants something that can never change. This is why the"
" computer will reject function calls and variables where it needs a "
"constant expression."
msgstr ""
#. Reference: EXPECTED_CONSTANT_EXPRESSION
#: ./script_checking/error_database.csv:110
msgid ""
"You need to replace function calls or variables with a constant value "
"like a whole number, decimal number, string, vector, a predefined array, "
"etc.\n"
"\n"
"You can also use arithmetic operators like multiplications (*), additions"
" (+), and so on."
msgstr ""
#. Reference: INVALID_CLASS_DECLARATION
#: ./script_checking/error_database.csv:115
msgid ""
"When defining a new class, you need to follow a specific pattern. You "
"must write the name in plain text, starting with a letter.\n"
"\n"
"We typically write class names in PascalCase: with a capital letter at "
"the start of every word that composes the class name."
msgstr ""
#. Reference: INVALID_CLASS_DECLARATION
#: ./script_checking/error_database.csv:115
msgid ""
"To fix this error, replace whatever you put after the 'extends' or "
"'class_name' keyword by a name without spaces and starting with a capital"
" letter.\n"
"\n"
"You can optionally use numbers in the name, but not in the first position."
msgstr ""
#. Reference: DUPLICATE_DECLARATION
#: ./script_checking/error_database.csv:120
msgid ""
"You are trying to define a function or variable that already exists; You "
"can't do that.\n"
"\n"
"Perhaps the function or variable already exists in the current code file,"
" but it may also be in a parent class that this GDScript code extends."
msgstr ""
#. Reference: DUPLICATE_DECLARATION
#: ./script_checking/error_database.csv:120
msgid ""
"In the app, your code extends some built-in Godot code that's not visible"
" to you.\n"
"\n"
"When that happens, you need to either rename your function or variable to"
" one that will not collide with an existing one or remove this line of "
"code."
msgstr ""
#. Reference: DUPLICATE_SIGNAL_DECLARATION
#: ./script_checking/error_database.csv:125
msgid ""
"You are trying to define a signal that already exists; You can't do that."
"\n"
"\n"
"Perhaps the signal already exists in the current code file, but it may "
"also be in a parent class that this GDScript code extends."
msgstr ""
#. Reference: DUPLICATE_SIGNAL_DECLARATION
#: ./script_checking/error_database.csv:125
msgid ""
"In the app, your code extends some built-in Godot code that's not visible"
" to you.\n"
"\n"
"When that happens, you need to either rename your signal to one that will"
" not collide with an existing one or remove this line of code."
msgstr ""
#. Reference: SIGNATURE_MISMATCH
#: ./script_checking/error_database.csv:130
msgid ""
"The function you're trying to define exists in a parent class, so your "
"definition overrides the parent class's function.\n"
"\n"
"When you override a parent class's function, the new function must match "
"the parent. The new function should have the same number and type of "
"parameters as the parent class.\n"
"\n"
"For example, if the parent has two arguments, you need your new function "
"also to have two arguments. If you use type hints in your function "
"definitions, the argument types must match the parent class."
msgstr ""
#. Reference: SIGNATURE_MISMATCH
#: ./script_checking/error_database.csv:130
msgid ""
"You need to check the parent class's function and its definition in the "
"code reference. Then, you need to edit your function definition to have "
"the same number and type of parameters as the parent class."
msgstr ""
#. Reference: INVALID_ARGUMENTS
#: ./script_checking/error_database.csv:131
msgid ""
"This whole class of errors has to do with calling functions with either "
"the wrong number of arguments or the wrong kind of argument. You will "
"need to use the error message to see what is going wrong."
msgstr ""
#. Reference: INVALID_ARGUMENTS
#: ./script_checking/error_database.csv:131
msgid ""
"You need to either remove, add, or change the values you're trying to "
"pass to the function to solve this issue. To know exactly how many "
"arguments you need, you need to check the code reference. It will show "
"you the function definition and the mandatory arguments."
msgstr ""
#. Reference: TYPE_MISMATCH
#: ./script_checking/error_database.csv:142
msgid ""
"All the values in your code have a specific type. That type can be a "
"whole number (int), a decimal number (float), text (String), and so on. "
"There are tons of possible types, and you can even define your own!\n"
"\n"
"When you make any operation, the computer compares the types you are "
"using.\n"
"\n"
"Some types are compatible, and some are not. For example, you cannot "
"directly add a whole number to a text string. You first need to convert "
"the number into text.\n"
"\n"
"You'll need to read the error message to see what is not matching because"
" there are many possible cases."
msgstr ""
#. Reference: TYPE_MISMATCH
#: ./script_checking/error_database.csv:142
msgid ""
"If the error mentions the assigned value type not matching the variable, "
"the problem is on the right side of the equal sign (=).\n"
"\n"
"If the error talks about the return type not matching the function, then "
"it is the value after the return keyword that is problematic.\n"
"\n"
"If the computer talks about an invalid operand, then the issue is that "
"the operation does not exist for the type you're trying to use. For "
"example, while you can add two 2D vectors, you can't add a whole number "
"or text to a 2D vector."
msgstr ""
#. Reference: TYPE_CANNOT_BE_INFERRED
#: ./script_checking/error_database.csv:147
msgid ""
"GDScript supports type inference. The computer will automatically "
"recognize the type of value you are working with. In some cases, though, "
"it can't figure it out.\n"
"\n"
"When that happens, you need to specify the type yourself or remove type "
"inference altogether for this variable."
msgstr ""
#. Reference: TYPE_CANNOT_BE_INFERRED
#: ./script_checking/error_database.csv:147
msgid ""
"The simplest way to solve this error is to remove types for this variable"
" or this function's arguments. Otherwise, you can manually specify the "
"value type after the colon.\n"
"\n"
"We recommend specifying the type whenever possible to reap the typing "
"system's benefits."
msgstr ""
#. Reference: RETURN_VALUE_MISMATCH
#: ./script_checking/error_database.csv:153
msgid ""
"There is an issue with the return value of your function. There are two "
"main cases here:\n"
"\n"
"1. Your function is a void function, thus it should not return a value. "
"This includes functions with the '-> void' syntax and class constructors "
"('_init()').\n"
"2. You specified a return type for your function, but you are not "
"returning a value in all possible branches (if, elif, and else blocks) or"
" at the end."
msgstr ""
#. Reference: RETURN_VALUE_MISMATCH
#: ./script_checking/error_database.csv:153
msgid ""
"When your function is 'void', you should never return a value. You can "
"use the 'return' keyword to end the function early, but you should never "
"write anything after that.\n"
"\n"
"When you use a return type, you must always return something at the end "
"of the function or in every branch (if, elif, and else block) of the "
"function."
msgstr ""
#. Reference: INVALID_NO_CATCH
#: ./script_checking/error_database.csv:154
msgid ""
"Godot was unable to load your script, yet the language checker found "
"nothing wrong."
msgstr ""
#. Reference: INVALID_NO_CATCH
#: ./script_checking/error_database.csv:154
msgid "Please click on the \"report\" button at the top and please let us know."
msgstr ""
#. Reference: RECURSIVE_FUNCTION
#: ./script_checking/error_database.csv:155
msgid "You called a function inside itself. This will loop forever."
msgstr ""
#. Reference: RECURSIVE_FUNCTION
#: ./script_checking/error_database.csv:155
msgid ""
"There are valid reasons for using recursive functions, but none of them "
"are part of this course, so this cannot be a valid solution."
msgstr ""
#. Reference: UNEXPECTED_EOL
#: ./script_checking/error_database.csv:157
msgid ""
"The computer reached the end of the line of code, but the line had a "
"syntax error.\n"
"The most common case is when you forget to close a string: you have "
"opening quotes, but you forget to add a matching closing quote."
msgstr ""
#. Reference: UNEXPECTED_EOL
#: ./script_checking/error_database.csv:157
msgid ""
"Double-check that you are not missing a quote character or that the quote"
" character you used to start the string is the same as the one you used "
"to close the string."
msgstr ""
#. Reference: CANT_GET_INDEX
#: ./script_checking/error_database.csv:160
msgid "The sub-variable you are trying to access does not exist."
msgstr ""
#. Reference: CANT_GET_INDEX
#: ./script_checking/error_database.csv:160
msgid ""
"You probably have a typo in the name of the sub-variable that you are "
"trying to access.\n"
"\n"
"Ensure that you don't have a capital letter where you should have a "
"lowercase letter and vice versa."
msgstr ""