Skip to content

Commit 94604ea

Browse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent 2f9cee2 commit 94604ea

File tree

177 files changed

+30013
-1522
lines changed

Some content is hidden

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

177 files changed

+30013
-1522
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-
![63.20% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-63.20%25-0.svg)
19-
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.60%25-0.svg)
18+
![50.74% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-50.74%25-0.svg)
19+
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.18%25-0.svg)
2020
![6 tłumaczy](https://img.shields.io/badge/tłumaczy-6-0.svg)
2121
<!-- [[[end]]] -->
2222

c-api/arg.po

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-23 14:51+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"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 "
@@ -742,11 +745,29 @@ msgid ""
742745
"the :mod:`!_weakref` helper module for weak references::"
743746
msgstr ""
744747

748+
msgid ""
749+
"static PyObject *\n"
750+
"weakref_ref(PyObject *self, PyObject *args)\n"
751+
"{\n"
752+
" PyObject *object;\n"
753+
" PyObject *callback = NULL;\n"
754+
" PyObject *result = NULL;\n"
755+
"\n"
756+
" if (PyArg_UnpackTuple(args, \"ref\", 1, 2, &object, &callback)) {\n"
757+
" result = PyWeakref_NewRef(object, callback);\n"
758+
" }\n"
759+
" return result;\n"
760+
"}"
761+
msgstr ""
762+
745763
msgid ""
746764
"The call to :c:func:`PyArg_UnpackTuple` in this example is entirely "
747765
"equivalent to this call to :c:func:`PyArg_ParseTuple`::"
748766
msgstr ""
749767

768+
msgid "PyArg_ParseTuple(args, \"O|O:ref\", &object, &callback)"
769+
msgstr ""
770+
750771
msgid "Building values"
751772
msgstr "Budowanie wartości"
752773

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.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:48+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\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.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:48+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@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 "
@@ -191,6 +195,9 @@ msgid ""
191195
"Currently equivalent to::"
192196
msgstr ""
193197

198+
msgid "(Py_ssize_t)(nargsf & ~PY_VECTORCALL_ARGUMENTS_OFFSET)"
199+
msgstr ""
200+
194201
msgid ""
195202
"However, the function ``PyVectorcall_NARGS`` should be used to allow for "
196203
"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.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:48+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 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
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-23 14:51+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -56,6 +56,13 @@ msgstr ""
5656
msgid "The structure is defined as::"
5757
msgstr ""
5858

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

c-api/dict.po

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:48+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -177,12 +177,42 @@ msgstr ""
177177
msgid "For example::"
178178
msgstr "Dla przykładu::"
179179

180+
msgid ""
181+
"PyObject *key, *value;\n"
182+
"Py_ssize_t pos = 0;\n"
183+
"\n"
184+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
185+
" /* do something interesting with the values... */\n"
186+
" ...\n"
187+
"}"
188+
msgstr ""
189+
180190
msgid ""
181191
"The dictionary *p* should not be mutated during iteration. It is safe to "
182192
"modify the values of the keys as you iterate over the dictionary, but only "
183193
"so long as the set of keys does not change. For example::"
184194
msgstr ""
185195

196+
msgid ""
197+
"PyObject *key, *value;\n"
198+
"Py_ssize_t pos = 0;\n"
199+
"\n"
200+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
201+
" long i = PyLong_AsLong(value);\n"
202+
" if (i == -1 && PyErr_Occurred()) {\n"
203+
" return -1;\n"
204+
" }\n"
205+
" PyObject *o = PyLong_FromLong(i + 1);\n"
206+
" if (o == NULL)\n"
207+
" return -1;\n"
208+
" if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
209+
" Py_DECREF(o);\n"
210+
" return -1;\n"
211+
" }\n"
212+
" Py_DECREF(o);\n"
213+
"}"
214+
msgstr ""
215+
186216
msgid ""
187217
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
188218
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -208,6 +238,13 @@ msgid ""
208238
"if an exception was raised. Equivalent Python (except for the return value)::"
209239
msgstr ""
210240

241+
msgid ""
242+
"def PyDict_MergeFromSeq2(a, seq2, override):\n"
243+
" for key, value in seq2:\n"
244+
" if override or key not in a:\n"
245+
" a[key] = value"
246+
msgstr ""
247+
211248
msgid ""
212249
"Register *callback* as a dictionary watcher. Return a non-negative integer "
213250
"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
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:48+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -70,7 +70,7 @@ msgstr ""
7070
"sposoby."
7171

7272
msgid ""
73-
"The error indicator is **not** the result of :func:`sys.exc_info()`. The "
73+
"The error indicator is **not** the result of :func:`sys.exc_info`. The "
7474
"former corresponds to an exception that is not yet caught (and is therefore "
7575
"still propagating), while the latter returns an exception after it is caught "
7676
"(and has therefore stopped propagating)."
@@ -419,6 +419,16 @@ msgstr ""
419419
msgid "For example::"
420420
msgstr "Dla przykładu::"
421421

422+
msgid ""
423+
"{\n"
424+
" PyObject *exc = PyErr_GetRaisedException();\n"
425+
"\n"
426+
" /* ... code that might produce other errors ... */\n"
427+
"\n"
428+
" PyErr_SetRaisedException(exc);\n"
429+
"}"
430+
msgstr ""
431+
422432
msgid ""
423433
":c:func:`PyErr_GetHandledException`, to save the exception currently being "
424434
"handled."
@@ -448,6 +458,17 @@ msgid ""
448458
"exceptions or save and restore the error indicator temporarily."
449459
msgstr ""
450460

461+
msgid ""
462+
"{\n"
463+
" PyObject *type, *value, *traceback;\n"
464+
" PyErr_Fetch(&type, &value, &traceback);\n"
465+
"\n"
466+
" /* ... code that might produce other errors ... */\n"
467+
"\n"
468+
" PyErr_Restore(type, value, traceback);\n"
469+
"}"
470+
msgstr ""
471+
451472
msgid "Use :c:func:`PyErr_SetRaisedException` instead."
452473
msgstr ""
453474

@@ -489,6 +510,12 @@ msgid ""
489510
"appropriately is desired, the following additional snippet is needed::"
490511
msgstr ""
491512

513+
msgid ""
514+
"if (tb != NULL) {\n"
515+
" PyException_SetTraceback(val, tb);\n"
516+
"}"
517+
msgstr ""
518+
492519
msgid ""
493520
"Retrieve the active exception instance, as would be returned by :func:`sys."
494521
"exception`. This refers to an exception that was *already caught*, not to an "

c-api/import.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-16 14:48+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -181,7 +181,7 @@ msgid ""
181181
msgstr ""
182182

183183
msgid ""
184-
"Uses :func:`!imp.source_from_cache()` in calculating the source path if only "
184+
"Uses :func:`!imp.source_from_cache` in calculating the source path if only "
185185
"the bytecode path is provided."
186186
msgstr ""
187187

@@ -247,6 +247,15 @@ msgid ""
247247
"h`, is::"
248248
msgstr ""
249249

250+
msgid ""
251+
"struct _frozen {\n"
252+
" const char *name;\n"
253+
" const unsigned char *code;\n"
254+
" int size;\n"
255+
" bool is_package;\n"
256+
"};"
257+
msgstr ""
258+
250259
msgid ""
251260
"The new ``is_package`` field indicates whether the module is a package or "
252261
"not. This replaces setting the ``size`` field to a negative value."

0 commit comments

Comments
 (0)