Skip to content

Commit 6089823

Browse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent 60e20f1 commit 6089823

File tree

173 files changed

+30591
-1626
lines changed

Some content is hidden

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

173 files changed

+30591
-1626
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ f'''![build](https://github.com/python/python-docs-pl/workflows/.github/workflow
1515
![{translators} tłumaczy](https://img.shields.io/badge/tłumaczy-{translators}-0.svg)''')
1616
]]] -->
1717
![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
18-
![62.79% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-62.79%25-0.svg)
19-
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.36%25-0.svg)
18+
![50.55% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-50.55%25-0.svg)
19+
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-2.96%25-0.svg)
2020
![21 tłumaczy](https://img.shields.io/badge/tłumaczy-21-0.svg)
2121
<!-- [[[end]]] -->
2222

c-api/arg.po

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
15+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
1717
"Last-Translator: Waldemar Stoczkowski, 2023\n"
1818
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -541,6 +541,9 @@ msgid ""
541541
"*converter* function in turn is called as follows::"
542542
msgstr ""
543543

544+
msgid "status = converter(object, address);"
545+
msgstr ""
546+
544547
msgid ""
545548
"where *object* is the Python object to be converted and *address* is the :c:"
546549
"expr:`void*` argument that was passed to the ``PyArg_Parse*`` function. The "
@@ -732,6 +735,19 @@ msgstr ""
732735
msgid "Example::"
733736
msgstr ""
734737

738+
msgid ""
739+
"// Function using METH_O calling convention\n"
740+
"static PyObject*\n"
741+
"my_function(PyObject *module, PyObject *arg)\n"
742+
"{\n"
743+
" int value;\n"
744+
" if (!PyArg_Parse(arg, \"i:my_function\", &value)) {\n"
745+
" return NULL;\n"
746+
" }\n"
747+
" // ... use value ...\n"
748+
"}"
749+
msgstr ""
750+
735751
msgid ""
736752
"A simpler form of parameter retrieval which does not use a format string to "
737753
"specify the types of the arguments. Functions which use this method to "
@@ -754,11 +770,29 @@ msgid ""
754770
"the :mod:`!_weakref` helper module for weak references::"
755771
msgstr ""
756772

773+
msgid ""
774+
"static PyObject *\n"
775+
"weakref_ref(PyObject *self, PyObject *args)\n"
776+
"{\n"
777+
" PyObject *object;\n"
778+
" PyObject *callback = NULL;\n"
779+
" PyObject *result = NULL;\n"
780+
"\n"
781+
" if (PyArg_UnpackTuple(args, \"ref\", 1, 2, &object, &callback)) {\n"
782+
" result = PyWeakref_NewRef(object, callback);\n"
783+
" }\n"
784+
" return result;\n"
785+
"}"
786+
msgstr ""
787+
757788
msgid ""
758789
"The call to :c:func:`PyArg_UnpackTuple` in this example is entirely "
759790
"equivalent to this call to :c:func:`PyArg_ParseTuple`::"
760791
msgstr ""
761792

793+
msgid "PyArg_ParseTuple(args, \"O|O:ref\", &object, &callback)"
794+
msgstr ""
795+
762796
msgid ""
763797
"The value to be inserted, if any, before :c:expr:`char * const *` in the "
764798
"*keywords* parameter declaration of :c:func:`PyArg_ParseTupleAndKeywords` "

c-api/buffer.po

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:15+0000\n"
14+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
1616
"Last-Translator: Maciej Olko <maciej.olko@gmail.com>, 2021\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -433,12 +433,46 @@ msgid ""
433433
"dimensional array as follows:"
434434
msgstr ""
435435

436+
msgid ""
437+
"ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
438+
"strides[n-1];\n"
439+
"item = *((typeof(item) *)ptr);"
440+
msgstr ""
441+
436442
msgid ""
437443
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
438444
"the actual memory block. An exporter can check the validity of a buffer with "
439445
"this function:"
440446
msgstr ""
441447

448+
msgid ""
449+
"def verify_structure(memlen, itemsize, ndim, shape, strides, offset):\n"
450+
" \"\"\"Verify that the parameters represent a valid array within\n"
451+
" the bounds of the allocated memory:\n"
452+
" char *mem: start of the physical memory block\n"
453+
" memlen: length of the physical memory block\n"
454+
" offset: (char *)buf - mem\n"
455+
" \"\"\"\n"
456+
" if offset % itemsize:\n"
457+
" return False\n"
458+
" if offset < 0 or offset+itemsize > memlen:\n"
459+
" return False\n"
460+
" if any(v % itemsize for v in strides):\n"
461+
" return False\n"
462+
"\n"
463+
" if ndim <= 0:\n"
464+
" return ndim == 0 and not shape and not strides\n"
465+
" if 0 in shape:\n"
466+
" return True\n"
467+
"\n"
468+
" imin = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
469+
" if strides[j] <= 0)\n"
470+
" imax = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
471+
" if strides[j] > 0)\n"
472+
"\n"
473+
" return 0 <= offset+imin and offset+imax+itemsize <= memlen"
474+
msgstr ""
475+
442476
msgid "PIL-style: shape, strides and suboffsets"
443477
msgstr ""
444478

@@ -458,6 +492,21 @@ msgid ""
458492
"strides and suboffsets::"
459493
msgstr ""
460494

495+
msgid ""
496+
"void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,\n"
497+
" Py_ssize_t *suboffsets, Py_ssize_t *indices) {\n"
498+
" char *pointer = (char*)buf;\n"
499+
" int i;\n"
500+
" for (i = 0; i < ndim; i++) {\n"
501+
" pointer += strides[i] * indices[i];\n"
502+
" if (suboffsets[i] >=0 ) {\n"
503+
" pointer = *((char**)pointer) + suboffsets[i];\n"
504+
" }\n"
505+
" }\n"
506+
" return (void*)pointer;\n"
507+
"}"
508+
msgstr ""
509+
461510
msgid "Buffer-related functions"
462511
msgstr ""
463512

c-api/call.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-09 16:36+0000\n"
14+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
1616
"Last-Translator: Maciej Olko <maciej.olko@gmail.com>, 2024\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -38,6 +38,10 @@ msgid ""
3838
"callable. The signature of the slot is::"
3939
msgstr ""
4040

41+
msgid ""
42+
"PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);"
43+
msgstr ""
44+
4145
msgid ""
4246
"A call is made using a tuple for the positional arguments and a dict for the "
4347
"keyword arguments, similarly to ``callable(*args, **kwargs)`` in Python "
@@ -180,6 +184,9 @@ msgid ""
180184
"Currently equivalent to::"
181185
msgstr ""
182186

187+
msgid "(Py_ssize_t)(nargsf & ~PY_VECTORCALL_ARGUMENTS_OFFSET)"
188+
msgstr ""
189+
183190
msgid ""
184191
"However, the function ``PyVectorcall_NARGS`` should be used to allow for "
185192
"future extensions."

c-api/capsule.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-09 16:36+0000\n"
14+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
1616
"Last-Translator: haaritsubaki, 2024\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -42,6 +42,9 @@ msgstr ""
4242
msgid "The type of a destructor callback for a capsule. Defined as::"
4343
msgstr ""
4444

45+
msgid "typedef void (*PyCapsule_Destructor)(PyObject *);"
46+
msgstr ""
47+
4548
msgid ""
4649
"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "
4750
"callbacks."

c-api/complex.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.13\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
16+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1818
"Last-Translator: Maciej Olko <maciej.olko@gmail.com>, 2024\n"
1919
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -58,6 +58,13 @@ msgstr ""
5858
msgid "The structure is defined as::"
5959
msgstr ""
6060

61+
msgid ""
62+
"typedef struct {\n"
63+
" double real;\n"
64+
" double imag;\n"
65+
"} Py_complex;"
66+
msgstr ""
67+
6168
msgid ""
6269
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "
6370
"representation."

c-api/dict.po

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.13\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
17+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1919
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
2020
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -255,18 +255,56 @@ msgstr ""
255255
msgid "For example::"
256256
msgstr "Dla przykładu::"
257257

258+
msgid ""
259+
"PyObject *key, *value;\n"
260+
"Py_ssize_t pos = 0;\n"
261+
"\n"
262+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
263+
" /* do something interesting with the values... */\n"
264+
" ...\n"
265+
"}"
266+
msgstr ""
267+
258268
msgid ""
259269
"The dictionary *p* should not be mutated during iteration. It is safe to "
260270
"modify the values of the keys as you iterate over the dictionary, but only "
261271
"so long as the set of keys does not change. For example::"
262272
msgstr ""
263273

274+
msgid ""
275+
"PyObject *key, *value;\n"
276+
"Py_ssize_t pos = 0;\n"
277+
"\n"
278+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
279+
" long i = PyLong_AsLong(value);\n"
280+
" if (i == -1 && PyErr_Occurred()) {\n"
281+
" return -1;\n"
282+
" }\n"
283+
" PyObject *o = PyLong_FromLong(i + 1);\n"
284+
" if (o == NULL)\n"
285+
" return -1;\n"
286+
" if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
287+
" Py_DECREF(o);\n"
288+
" return -1;\n"
289+
" }\n"
290+
" Py_DECREF(o);\n"
291+
"}"
292+
msgstr ""
293+
264294
msgid ""
265295
"The function is not thread-safe in the :term:`free-threaded <free "
266296
"threading>` build without external synchronization. You can use :c:macro:"
267297
"`Py_BEGIN_CRITICAL_SECTION` to lock the dictionary while iterating over it::"
268298
msgstr ""
269299

300+
msgid ""
301+
"Py_BEGIN_CRITICAL_SECTION(self->dict);\n"
302+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
303+
" ...\n"
304+
"}\n"
305+
"Py_END_CRITICAL_SECTION();"
306+
msgstr ""
307+
270308
msgid ""
271309
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
272310
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -292,6 +330,13 @@ msgid ""
292330
"if an exception was raised. Equivalent Python (except for the return value)::"
293331
msgstr ""
294332

333+
msgid ""
334+
"def PyDict_MergeFromSeq2(a, seq2, override):\n"
335+
" for key, value in seq2:\n"
336+
" if override or key not in a:\n"
337+
" a[key] = value"
338+
msgstr ""
339+
295340
msgid ""
296341
"Register *callback* as a dictionary watcher. Return a non-negative integer "
297342
"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "

c-api/exceptions.po

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-08-16 14:15+0000\n"
15+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1717
"Last-Translator: Stefan Ocetkiewicz <stefan.ocetkiewicz@gmail.com>, 2023\n"
1818
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -71,7 +71,7 @@ msgstr ""
7171
"sposoby."
7272

7373
msgid ""
74-
"The error indicator is **not** the result of :func:`sys.exc_info()`. The "
74+
"The error indicator is **not** the result of :func:`sys.exc_info`. The "
7575
"former corresponds to an exception that is not yet caught (and is therefore "
7676
"still propagating), while the latter returns an exception after it is caught "
7777
"(and has therefore stopped propagating)."
@@ -428,6 +428,16 @@ msgstr ""
428428
msgid "For example::"
429429
msgstr "Na przykład::"
430430

431+
msgid ""
432+
"{\n"
433+
" PyObject *exc = PyErr_GetRaisedException();\n"
434+
"\n"
435+
" /* ... code that might produce other errors ... */\n"
436+
"\n"
437+
" PyErr_SetRaisedException(exc);\n"
438+
"}"
439+
msgstr ""
440+
431441
msgid ""
432442
":c:func:`PyErr_GetHandledException`, to save the exception currently being "
433443
"handled."
@@ -457,6 +467,17 @@ msgid ""
457467
"exceptions or save and restore the error indicator temporarily."
458468
msgstr ""
459469

470+
msgid ""
471+
"{\n"
472+
" PyObject *type, *value, *traceback;\n"
473+
" PyErr_Fetch(&type, &value, &traceback);\n"
474+
"\n"
475+
" /* ... code that might produce other errors ... */\n"
476+
"\n"
477+
" PyErr_Restore(type, value, traceback);\n"
478+
"}"
479+
msgstr ""
480+
460481
msgid "Use :c:func:`PyErr_SetRaisedException` instead."
461482
msgstr ""
462483

@@ -498,6 +519,12 @@ msgid ""
498519
"appropriately is desired, the following additional snippet is needed::"
499520
msgstr ""
500521

522+
msgid ""
523+
"if (tb != NULL) {\n"
524+
" PyException_SetTraceback(val, tb);\n"
525+
"}"
526+
msgstr ""
527+
501528
msgid ""
502529
"Retrieve the active exception instance, as would be returned by :func:`sys."
503530
"exception`. This refers to an exception that was *already caught*, not to an "

0 commit comments

Comments
 (0)