Skip to content

Commit 1b8e1f0

Browse files
Translation sync
1 parent 0d5f2f8 commit 1b8e1f0

File tree

271 files changed

+21808
-16352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+21808
-16352
lines changed

crowdin/translated/api.ca.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,7 @@
34603460
"description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34613461
},
34623462
"microbit.spi.read.summary": {
3463-
"message": "Llegeix bytes",
3463+
"message": "Llegeix com a màxim {{nbytes}} mentre escriu contínuament l'únic byte donat per {{out}}.",
34643464
"description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34653465
},
34663466
"microbit.spi.read.param-name.nbytes": {
@@ -3476,7 +3476,7 @@
34763476
"description": "(parameter name) The byte value to write (default 0)."
34773477
},
34783478
"microbit.spi.read.param-doc.out": {
3479-
"message": "The byte value to write (default 0).",
3479+
"message": "El valor del byte a escriure (per defecte 0).",
34803480
"description": "Parameter docs"
34813481
},
34823482
"microbit.spi.write": {

crowdin/translated/api.de.json

Lines changed: 91 additions & 91 deletions
Large diffs are not rendered by default.

crowdin/translated/api.es-es.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,7 @@
34603460
"description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34613461
},
34623462
"microbit.spi.read.summary": {
3463-
"message": "Lee bytes.",
3463+
"message": "Lee como máximo {{nbytes}} mientras está escribiendo continuamente el byte individual dado por {{out}}.",
34643464
"description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34653465
},
34663466
"microbit.spi.read.param-name.nbytes": {
@@ -3472,11 +3472,11 @@
34723472
"description": "Parameter docs"
34733473
},
34743474
"microbit.spi.read.param-name.out": {
3475-
"message": "a",
3475+
"message": "salida",
34763476
"description": "(parameter name) The byte value to write (default 0)."
34773477
},
34783478
"microbit.spi.read.param-doc.out": {
3479-
"message": "The byte value to write (default 0).",
3479+
"message": "El valor del byte a escribir (por defecto 0).",
34803480
"description": "Parameter docs"
34813481
},
34823482
"microbit.spi.write": {

crowdin/translated/api.fr.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3472,11 +3472,11 @@
34723472
"description": "Parameter docs"
34733473
},
34743474
"microbit.spi.read.param-name.out": {
3475-
"message": "out",
3475+
"message": "Sortie",
34763476
"description": "(parameter name) The byte value to write (default 0)."
34773477
},
34783478
"microbit.spi.read.param-doc.out": {
3479-
"message": "The byte value to write (default 0).",
3479+
"message": "La valeur d'octet à écrire (0 par défaut).",
34803480
"description": "Parameter docs"
34813481
},
34823482
"microbit.spi.write": {

crowdin/translated/api.ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3476,7 +3476,7 @@
34763476
"description": "(parameter name) The byte value to write (default 0)."
34773477
},
34783478
"microbit.spi.read.param-doc.out": {
3479-
"message": "The byte value to write (default 0).",
3479+
"message": "書き込むバイト値(初期値は'0')",
34803480
"description": "Parameter docs"
34813481
},
34823482
"microbit.spi.write": {

crowdin/translated/api.nl.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,7 @@
34603460
"description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34613461
},
34623462
"microbit.spi.read.summary": {
3463-
"message": "Lees bytes.",
3463+
"message": "Lees minstens {{nbytes}} terwijl het enkele byte gegeven in {{out}} continu geschreven wordt.",
34643464
"description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34653465
},
34663466
"microbit.spi.read.param-name.nbytes": {
@@ -3476,7 +3476,7 @@
34763476
"description": "(parameter name) The byte value to write (default 0)."
34773477
},
34783478
"microbit.spi.read.param-doc.out": {
3479-
"message": "The byte value to write (default 0).",
3479+
"message": "De byte-waarde om te schrijven (standaard 0).",
34803480
"description": "Parameter docs"
34813481
},
34823482
"microbit.spi.write": {

crowdin/translated/api.pl.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "(module name) Control the garbage collector"
55
},
66
"gc.summary": {
7-
"message": "Steruj zbieraniem sieci",
7+
"message": "Steruj zbieraniem śmieci",
88
"description": "Control the garbage collector"
99
},
1010
"gc.enable": {
@@ -3460,7 +3460,7 @@
34603460
"description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34613461
},
34623462
"microbit.spi.read.summary": {
3463-
"message": "Czytaj bajty.",
3463+
"message": "Przeczytaj co najwyżej {{nbytes}} podczas ciągłego pisania pojedynczego bajtu danego przez {{out}}.",
34643464
"description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``."
34653465
},
34663466
"microbit.spi.read.param-name.nbytes": {
@@ -3476,7 +3476,7 @@
34763476
"description": "(parameter name) The byte value to write (default 0)."
34773477
},
34783478
"microbit.spi.read.param-doc.out": {
3479-
"message": "The byte value to write (default 0).",
3479+
"message": "Wartość bajtu do zapisu (domyślnie 0).",
34803480
"description": "Parameter docs"
34813481
},
34823482
"microbit.spi.write": {

lang/ca/typeshed/stdlib/gc.pyi

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,73 @@
1-
"""Controla el recol·lector de memòria brossa"""
1+
"""Control the garbage collector"""
2+
23
from typing import overload
34

45
def enable() -> None:
5-
"""Habilita la recol·lecció automàtica de la memòria brossa (habilita)"""
6+
"""Enable automatic garbage collection."""
67
...
78

89
def disable() -> None:
9-
"""Inhabilita la recol·lecció automàtica de la memòria brossa (desactiva)
10+
"""Disable automatic garbage collection.
1011
11-
Heap memory can still be allocated,
12-
and garbage collection can still be initiated manually using ``gc.collect``."""
12+
Heap memory can still be allocated,
13+
and garbage collection can still be initiated manually using ``gc.collect``."""
1314

1415
def collect() -> None:
15-
"""Executa la recol·lecció automàtica de la memòria brossa (Recull)"""
16+
"""Run a garbage collection."""
1617
...
1718

1819
def mem_alloc() -> int:
19-
"""Obté el nombre de bytes assignats a la memòria dinàmica. (espai de memòria)
20+
"""Get the number of bytes of heap RAM that are allocated.
2021
21-
:return: The number of bytes allocated.
22+
:return: The number of bytes allocated.
2223
23-
This function is MicroPython extension."""
24+
This function is MicroPython extension.
25+
"""
2426
...
2527

2628
def mem_free() -> int:
27-
"""Obté el nombre disponible de bytes de la memòria dinàmica, o -1 si no es coneix la quantitat. (memòria lliure)
29+
"""Get the number of bytes of available heap RAM, or -1 if this amount is not known.
2830
29-
:return: The number of bytes free.
31+
:return: The number of bytes free.
3032
31-
This function is MicroPython extension."""
33+
This function is MicroPython extension.
34+
"""
3235
...
3336

3437
@overload
3538
def threshold() -> int:
36-
"""Consulta l'assignació del llindar del col·lector d'escombraries. (llindar)
39+
"""Query the additional GC allocation threshold.
3740
38-
:return: The GC allocation threshold.
41+
:return: The GC allocation threshold.
3942
40-
This function is a MicroPython extension. CPython has a similar
41-
function - ``set_threshold()``, but due to different GC
42-
implementations, its signature and semantics are different."""
43+
This function is a MicroPython extension. CPython has a similar
44+
function - ``set_threshold()``, but due to different GC
45+
implementations, its signature and semantics are different.
46+
"""
4347
...
4448

4549
@overload
4650
def threshold(amount: int) -> None:
47-
"""Assigna un espai adicional al llindar del col·lector d'escombraries. (llindar)
48-
49-
Normally, a collection is triggered only when a new allocation
50-
cannot be satisfied, i.e. on an out-of-memory (OOM) condition.
51-
If this function is called, in addition to OOM, a collection
52-
will be triggered each time after ``amount`` bytes have been
53-
allocated (in total, since the previous time such an amount of bytes
54-
have been allocated). ``amount`` is usually specified as less than the
55-
full heap size, with the intention to trigger a collection earlier than when the
56-
heap becomes exhausted, and in the hope that an early collection will prevent
57-
excessive memory fragmentation. This is a heuristic measure, the effect
58-
of which will vary from application to application, as well as
59-
the optimal value of the ``amount`` parameter.
60-
61-
A value of -1 means a disabled allocation threshold.
62-
63-
This function is a MicroPython extension. CPython has a similar
64-
function - ``set_threshold()``, but due to different GC
65-
implementations, its signature and semantics are different.
66-
67-
:param amount: (quantitat) El nombre de bytes després del qual s'activarà la recol·lecció de la memòria brossa."""
68-
...
51+
"""Set the additional GC allocation threshold.
52+
53+
Normally, a collection is triggered only when a new allocation
54+
cannot be satisfied, i.e. on an out-of-memory (OOM) condition.
55+
If this function is called, in addition to OOM, a collection
56+
will be triggered each time after ``amount`` bytes have been
57+
allocated (in total, since the previous time such an amount of bytes
58+
have been allocated). ``amount`` is usually specified as less than the
59+
full heap size, with the intention to trigger a collection earlier than when the
60+
heap becomes exhausted, and in the hope that an early collection will prevent
61+
excessive memory fragmentation. This is a heuristic measure, the effect
62+
of which will vary from application to application, as well as
63+
the optimal value of the ``amount`` parameter.
64+
65+
A value of -1 means a disabled allocation threshold.
66+
67+
This function is a MicroPython extension. CPython has a similar
68+
function - ``set_threshold()``, but due to different GC
69+
implementations, its signature and semantics are different.
70+
71+
:param amount: The number of bytes after which a garbage collection should be triggered.
72+
"""
73+
...

lang/ca/typeshed/stdlib/log.pyi

Lines changed: 63 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,104 @@
1-
"""Registre dades en la micro:bit V2 (registre)"""
1+
"""Log data to your micro:bit V2."""
2+
23
from typing import Literal, Mapping, Optional, Union, overload
4+
35
MILLISECONDS = 1
4-
"""Format de marca de temps de mil·lisegons. (mil·lisegons)"""
6+
"""Milliseconds timestamp format."""
7+
58
SECONDS = 10
6-
"""Format de marca de temps de segons. (segons)"""
9+
"""Seconds timestamp format."""
10+
711
MINUTES = 600
8-
"""Format de marca de temps de minuts. (minuts)"""
12+
"""Minutes timestamp format."""
13+
914
HOURS = 36000
10-
"""Format de marca de temps d'hores. (hores)"""
15+
"""Hours timestamp format."""
16+
1117
DAYS = 864000
12-
"""Format de marca de temps de dies. (dies)"""
18+
"""Days timestamp format."""
1319

14-
def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None:
15-
"""Defineix la capçalera del fitxer de registre. (Defineix l'etiqueta)
20+
def set_labels(
21+
*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]] = SECONDS
22+
) -> None:
23+
"""Set up the log file header.
1624
17-
Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)``
25+
Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)``
1826
19-
Ideally this function should be called a single time, before any data is
20-
logged, to configure the data table header once.
27+
Ideally this function should be called a single time, before any data is
28+
logged, to configure the data table header once.
2129
22-
If a log file already exists when the program starts, or if this function
23-
is called multiple times, it will check the labels already defined in the
24-
log file. If this function call contains any new labels not already
25-
present, it will generate a new header row with the additional columns.
30+
If a log file already exists when the program starts, or if this function
31+
is called multiple times, it will check the labels already defined in the
32+
log file. If this function call contains any new labels not already
33+
present, it will generate a new header row with the additional columns.
2634
27-
By default the first column contains a timestamp for each row. The time
28-
unit can be selected via the timestamp argument.
35+
By default the first column contains a timestamp for each row. The time
36+
unit can be selected via the timestamp argument.
2937
30-
:param *labels: Qualsevol nombre d'arguments posicionals, corresponent cadascun a una entrada en la capçalera del registre.
31-
:param timestamp: (marca horària) Selecciona la unitat de la marca del temps que serà automaticament afegida com a primera columna de cada fila. Els valors de la marca del temps pot ser un de ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` o ``None`` per desactivar la marca del temps. El valor per defecte es ``log.SECONDS``."""
38+
:param *labels: Any number of positional arguments, each corresponding to an entry in the log header.
39+
:param timestamp: Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``.
40+
"""
3241
...
3342

3443
@overload
35-
def add(data_dictionary: Optional[Mapping[str, Union[str, int, float]]]) -> None:
36-
"""Afegeix una fila de dades al registre passant un diccionari de capçaleres i valors. (afegeix)
44+
def add(
45+
data_dictionary: Optional[Mapping[str, Union[str, int, float]]],
46+
) -> None:
47+
"""Add a data row to the log by passing a dictionary of headers and values.
3748
38-
Example: ``log.add({ 'temp': temperature() })``
49+
Example: ``log.add({ 'temp': temperature() })``
3950
40-
Each call to this function adds a row to the log.
51+
Each call to this function adds a row to the log.
4152
42-
New labels not previously specified via the set_labels function, or by a
43-
previous call to this function, will trigger a new header entry to be added
44-
to the log with the extra labels.
53+
New labels not previously specified via the set_labels function, or by a
54+
previous call to this function, will trigger a new header entry to be added
55+
to the log with the extra labels.
4556
46-
Labels previously specified and not present in a call to this function will
47-
be skipped with an empty value in the log row.
57+
Labels previously specified and not present in a call to this function will
58+
be skipped with an empty value in the log row.
4859
49-
:param data_dictionary: (diccionari de dades) Les dades a ser registrades com un diccionari amb una clau per cada capçalera."""
60+
:param data_dictionary: The data to log as a dictionary with a key for each header.
61+
"""
5062
...
5163

5264
@overload
5365
def add(**kwargs: Union[str, int, float]) -> None:
54-
"""Afegeix una fila de dades al registre fent servir arguments de paraula clau. (afegeix)
66+
"""Add a data row to the log using keyword arguments.
5567
56-
Example: ``log.add(temp=temperature())``
68+
Example: ``log.add(temp=temperature())``
5769
58-
Each call to this function adds a row to the log.
70+
Each call to this function adds a row to the log.
5971
60-
New labels not previously specified via the set_labels function, or by a
61-
previous call to this function, will trigger a new header entry to be added
62-
to the log with the extra labels.
72+
New labels not previously specified via the set_labels function, or by a
73+
previous call to this function, will trigger a new header entry to be added
74+
to the log with the extra labels.
6375
64-
Labels previously specified and not present in a call to this function will
65-
be skipped with an empty value in the log row."""
76+
Labels previously specified and not present in a call to this function will
77+
be skipped with an empty value in the log row.
78+
"""
6679
...
6780

6881
def delete(full=False):
69-
"""Suprimeix el contingut del registre, incloses les capçaleres. (suprimeix)
82+
"""Deletes the contents of the log, including headers.
7083
71-
Example: ``log.delete()``
84+
Example: ``log.delete()``
7285
73-
To add the log headers again the ``set_labels`` function should to be called after this function.
86+
To add the log headers again the ``set_labels`` function should to be called after this function.
7487
75-
There are two erase modes; “full” completely removes the data from the physical storage,
76-
and “fast” invalidates the data without removing it.
88+
There are two erase modes; “full” completely removes the data from the physical storage,
89+
and “fast” invalidates the data without removing it.
7790
78-
:param full: (ple) ``True`` selecciona un esborrat "total" ``False`` selecciona un mètode d'esborrat "ràpid"."""
91+
:param full: ``True`` selects a “full” erase and ``False`` selects the “fast” erase method.
92+
"""
7993
...
8094

8195
def set_mirroring(serial: bool):
82-
"""Configura la duplicació de l'activitat de registre de dades a la sortida en sèrie. (estableix mirall)
96+
"""Configure mirroring of the data logging activity to the serial output.
8397
84-
Example: ``log.set_mirroring(True)``
98+
Example: ``log.set_mirroring(True)``
8599
86-
Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file.
100+
Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file.
87101
88-
:param serial: ``True`` permet la duplicació de les dades a la sortida sèrie."""
89-
...
102+
:param serial: ``True`` enables mirroring data to the serial output.
103+
"""
104+
...

0 commit comments

Comments
 (0)