Skip to content

Commit ec48462

Browse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent 75da3d2 commit ec48462

File tree

2 files changed

+76
-5
lines changed

2 files changed

+76
-5
lines changed

library/pyexpat.po

Lines changed: 64 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: 2025-12-07 15:45+0000\n"
14+
"POT-Creation-Date: 2025-12-17 16:12+0000\n"
1515
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -76,6 +76,13 @@ msgid ""
7676
"implicit or explicit encoding of the document."
7777
msgstr ""
7878

79+
msgid ""
80+
"Parsers created through :func:`!ParserCreate` are called \"root\" parsers, "
81+
"in the sense that they do not have any parent parser attached. Non-root "
82+
"parsers are created by :meth:`parser.ExternalEntityParserCreate <xmlparser."
83+
"ExternalEntityParserCreate>`."
84+
msgstr ""
85+
7986
msgid ""
8087
"Expat can optionally do XML namespace processing for you, enabled by "
8188
"providing a value for *namespace_separator*. The value must be a one-"
@@ -237,6 +244,62 @@ msgid ""
237244
"parser instance."
238245
msgstr ""
239246

247+
msgid ""
248+
":class:`!xmlparser` objects have the following methods to mitigate some "
249+
"common XML vulnerabilities."
250+
msgstr ""
251+
252+
msgid ""
253+
"Sets the number of allocated bytes of dynamic memory needed to activate "
254+
"protection against disproportionate use of RAM."
255+
msgstr ""
256+
257+
msgid ""
258+
"By default, parser objects have an allocation activation threshold of 64 "
259+
"MiB, or equivalently 67,108,864 bytes."
260+
msgstr ""
261+
262+
msgid ""
263+
"An :exc:`ExpatError` is raised if this method is called on a |xml-non-root-"
264+
"parser| parser. The corresponding :attr:`~ExpatError.lineno` and :attr:"
265+
"`~ExpatError.offset` should not be used as they may have no special meaning."
266+
msgstr ""
267+
268+
msgid ""
269+
"Sets the maximum amplification factor between direct input and bytes of "
270+
"dynamic memory allocated."
271+
msgstr ""
272+
273+
msgid ""
274+
"The amplification factor is calculated as ``allocated / direct`` while "
275+
"parsing, where ``direct`` is the number of bytes read from the primary "
276+
"document in parsing and ``allocated`` is the number of bytes of dynamic "
277+
"memory allocated in the parser hierarchy."
278+
msgstr ""
279+
280+
msgid ""
281+
"The *max_factor* value must be a non-NaN :class:`float` value greater than "
282+
"or equal to 1.0. Amplification factors greater than 100.0 can be observed "
283+
"near the start of parsing even with benign files in practice. In particular, "
284+
"the activation threshold should be carefully chosen to avoid false positives."
285+
msgstr ""
286+
287+
msgid ""
288+
"By default, parser objects have a maximum amplification factor of 100.0."
289+
msgstr ""
290+
291+
msgid ""
292+
"An :exc:`ExpatError` is raised if this method is called on a |xml-non-root-"
293+
"parser| parser or if *max_factor* is outside the valid range. The "
294+
"corresponding :attr:`~ExpatError.lineno` and :attr:`~ExpatError.offset` "
295+
"should not be used as they may have no special meaning."
296+
msgstr ""
297+
298+
msgid ""
299+
"The maximum amplification factor is only considered if the threshold that "
300+
"can be adjusted by :meth:`.SetAllocTrackerActivationThreshold` is exceeded."
301+
msgstr ""
302+
240303
msgid ":class:`xmlparser` objects have the following attributes:"
241304
msgstr ""
242305

whatsnew/changelog.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.12\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2025-12-15 15:57+0000\n"
15+
"POT-Creation-Date: 2025-12-17 16:12+0000\n"
1616
"PO-Revision-Date: 2025-07-18 19:59+0000\n"
1717
"Last-Translator: python-doc bot, 2025\n"
1818
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -53,6 +53,17 @@ msgid ""
5353
"memory (OOM) killed processes or containers, or even system crashes."
5454
msgstr ""
5555

56+
msgid "Library"
57+
msgstr "Biblioteka"
58+
59+
msgid ""
60+
":gh:`90949`: Add :meth:`~xml.parsers.expat.xmlparser."
61+
"SetAllocTrackerActivationThreshold` and :meth:`~xml.parsers.expat.xmlparser."
62+
"SetAllocTrackerMaximumAmplification` to :ref:`xmlparser <xmlparser-objects>` "
63+
"objects to prevent use of disproportional amounts of dynamic memory from "
64+
"within an Expat parser. Patch by Bénédikt Tran."
65+
msgstr ""
66+
5667
msgid "Python 3.12.12 final"
5768
msgstr ""
5869

@@ -147,9 +158,6 @@ msgid ""
147158
"the ``<script>`` tag is not closed. Patch by Waylan Limberg."
148159
msgstr ""
149160

150-
msgid "Library"
151-
msgstr "Biblioteka"
152-
153161
msgid ":gh:`139312`: Upgrade bundled libexpat to 2.7.3"
154162
msgstr ""
155163

0 commit comments

Comments
 (0)