forked from GDQuest/learn-gdscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror_database.pot
474 lines (431 loc) · 16.2 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
# Translations template for Learn GDScript From Zero.
# Copyright (C) 2022 GDQuest
# This file is distributed under the same license as the Learn GDScript From
# Zero project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, 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: 2022-02-18 17:25+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"
#. Reference: CYCLIC_REFERENCE
#: ./lsp/error_database.csv:38
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
#: ./lsp/error_database.csv:38
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
#: ./lsp/error_database.csv:45
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
#: ./lsp/error_database.csv:45
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
#: ./lsp/error_database.csv:54
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
#: ./lsp/error_database.csv:54
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
#: ./lsp/error_database.csv:57
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
#: ./lsp/error_database.csv:57
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
#: ./lsp/error_database.csv:58
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
#: ./lsp/error_database.csv:58
msgid ""
"You need to read the error message and add the missing character or value"
" it requests."
msgstr ""
#. Reference: MISPLACED_IDENTIFIER
#: ./lsp/error_database.csv:68
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
#: ./lsp/error_database.csv:68
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
#: ./lsp/error_database.csv:73
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
#: ./lsp/error_database.csv:73
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
#: ./lsp/error_database.csv:82
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
#: ./lsp/error_database.csv:82
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
#: ./lsp/error_database.csv:87
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
#: ./lsp/error_database.csv:87
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
#: ./lsp/error_database.csv:92
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
#: ./lsp/error_database.csv:92
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
#: ./lsp/error_database.csv:97
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
#: ./lsp/error_database.csv:97
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
#: ./lsp/error_database.csv:102
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_DECLARATION
#: ./lsp/error_database.csv:102
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
#: ./lsp/error_database.csv:107
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
#: ./lsp/error_database.csv:107
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
#: ./lsp/error_database.csv:108
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
#: ./lsp/error_database.csv:108
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
#: ./lsp/error_database.csv:119
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
#: ./lsp/error_database.csv:119
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
#: ./lsp/error_database.csv:124
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
#: ./lsp/error_database.csv:124
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
#: ./lsp/error_database.csv:130
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
#: ./lsp/error_database.csv:130
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: CANNOT_CONNECT_TO_LSP
#: ./lsp/error_database.csv:132
msgid ""
"The server or your computer may currently be disconnected. Also, an app "
"or browser add-on may be blocking the connection. If you use an ad "
"blocker or script blocker, please disable it for this website."
msgstr ""
#. Reference: CANNOT_CONNECT_TO_LSP
#: ./lsp/error_database.csv:132
msgid ""
"Please make sure you're connected to the internet. If you use an ad "
"blocker or script blocker, please ensure it is turned off on this page."
msgstr ""
#. Reference: LSP_UNDETECTED_ERROR
#: ./lsp/error_database.csv:133
msgid ""
"Godot was unable to load your script, yet the language checker server "
"found nothing wrong. It's possible you are not online"
msgstr ""
#. Reference: LSP_UNDETECTED_ERROR
#: ./lsp/error_database.csv:133
msgid ""
"If you're offline, this error is expected. Otherwise, please click on the"
" \"report\" button at the top and please let us know"
msgstr ""
#. Reference: LSP_TIMED_OUT
#: ./lsp/error_database.csv:134
msgid ""
"Either your connection is very slow, or the Language Verifier server is "
"under load"
msgstr ""
#. Reference: LSP_TIMED_OUT
#: ./lsp/error_database.csv:134
msgid ""
"Please try again, and if it happens again, warn us with the \"report\" "
"button at the top. Thank you!"
msgstr ""
#. Reference: RECURSIVE_FUNCTION
#: ./lsp/error_database.csv:135
msgid "You called a function inside itself. This will loop forever."
msgstr ""
#. Reference: RECURSIVE_FUNCTION
#: ./lsp/error_database.csv:135
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 ""