@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.14\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-05-30 14:22 +0000\n "
15+ "POT-Creation-Date : 2025-06-13 14:21 +0000\n "
1616"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1717"Last-Translator : Danial Behzadi <dani.behzi@ubuntu.com>, 2025\n "
1818"Language-Team : Persian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -2176,10 +2176,10 @@ msgid "Write the single Unicode character *ch* into *writer*."
21762176msgstr ""
21772177
21782178#: ../../c-api/unicode.rst:1786 ../../c-api/unicode.rst:1796
2179- #: ../../c-api/unicode.rst:1808 ../../c-api/unicode.rst:1817
2180- #: ../../c-api/unicode.rst:1824 ../../c-api/unicode.rst:1831
2181- #: ../../c-api/unicode.rst:1842 ../../c-api/unicode.rst:1849
2182- #: ../../c-api/unicode.rst:1868
2179+ #: ../../c-api/unicode.rst:1811 ../../c-api/unicode.rst:1823
2180+ #: ../../c-api/unicode.rst:1832 ../../c-api/unicode.rst:1839
2181+ #: ../../c-api/unicode.rst:1846 ../../c-api/unicode.rst:1857
2182+ #: ../../c-api/unicode.rst:1864 ../../c-api/unicode.rst:1883
21832183msgid ""
21842184"On success, return ``0``. On error, set an exception, leave the writer "
21852185"unchanged, and return ``-1``."
@@ -2191,7 +2191,8 @@ msgid ""
21912191"*writer*."
21922192msgstr ""
21932193
2194- #: ../../c-api/unicode.rst:1793 ../../c-api/unicode.rst:1857
2194+ #: ../../c-api/unicode.rst:1793 ../../c-api/unicode.rst:1805
2195+ #: ../../c-api/unicode.rst:1872
21952196msgid ""
21962197"*size* is the string length in bytes. If *size* is equal to ``-1``, call "
21972198"``strlen(str)`` to get the string length."
@@ -2202,115 +2203,125 @@ msgid "See also :c:func:`PyUnicodeWriter_DecodeUTF8Stateful`."
22022203msgstr ""
22032204
22042205#: ../../c-api/unicode.rst:1803
2205- msgid "Writer the wide string *str* into *writer*."
2206+ msgid "Write the ASCII string *str* into *writer*."
22062207msgstr ""
22072208
2208- #: ../../c-api/unicode.rst:1805
2209+ #: ../../c-api/unicode.rst:1808
2210+ msgid ""
2211+ "*str* must only contain ASCII characters. The behavior is undefined if *str* "
2212+ "contains non-ASCII characters."
2213+ msgstr ""
2214+
2215+ #: ../../c-api/unicode.rst:1818
2216+ msgid "Write the wide string *str* into *writer*."
2217+ msgstr ""
2218+
2219+ #: ../../c-api/unicode.rst:1820
22092220msgid ""
22102221"*size* is a number of wide characters. If *size* is equal to ``-1``, call "
22112222"``wcslen(str)`` to get the string length."
22122223msgstr ""
22132224
2214- #: ../../c-api/unicode.rst:1813
2225+ #: ../../c-api/unicode.rst:1828
22152226msgid "Writer the UCS4 string *str* into *writer*."
22162227msgstr ""
22172228
2218- #: ../../c-api/unicode.rst:1815
2229+ #: ../../c-api/unicode.rst:1830
22192230msgid "*size* is a number of UCS4 characters."
22202231msgstr ""
22212232
2222- #: ../../c-api/unicode.rst:1822
2233+ #: ../../c-api/unicode.rst:1837
22232234msgid ""
22242235"Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
22252236msgstr ""
22262237
2227- #: ../../c-api/unicode.rst:1829
2238+ #: ../../c-api/unicode.rst:1844
22282239msgid ""
22292240"Call :c:func:`PyObject_Repr` on *obj* and write the output into *writer*."
22302241msgstr ""
22312242
2232- #: ../../c-api/unicode.rst:1836
2243+ #: ../../c-api/unicode.rst:1851
22332244msgid "Write the substring ``str[start:end]`` into *writer*."
22342245msgstr ""
22352246
2236- #: ../../c-api/unicode.rst:1838
2247+ #: ../../c-api/unicode.rst:1853
22372248msgid ""
22382249"*str* must be Python :class:`str` object. *start* must be greater than or "
22392250"equal to 0, and less than or equal to *end*. *end* must be less than or "
22402251"equal to *str* length."
22412252msgstr ""
22422253
2243- #: ../../c-api/unicode.rst:1847
2254+ #: ../../c-api/unicode.rst:1862
22442255msgid ""
22452256"Similar to :c:func:`PyUnicode_FromFormat`, but write the output directly "
22462257"into *writer*."
22472258msgstr ""
22482259
2249- #: ../../c-api/unicode.rst:1854
2260+ #: ../../c-api/unicode.rst:1869
22502261msgid ""
22512262"Decode the string *str* from UTF-8 with *errors* error handler and write the "
22522263"output into *writer*."
22532264msgstr ""
22542265
2255- #: ../../c-api/unicode.rst:1860
2266+ #: ../../c-api/unicode.rst:1875
22562267msgid ""
22572268"*errors* is an :ref:`error handler <error-handlers>` name, such as "
22582269"``\" replace\" ``. If *errors* is ``NULL``, use the strict error handler."
22592270msgstr ""
22602271
2261- #: ../../c-api/unicode.rst:1863
2272+ #: ../../c-api/unicode.rst:1878
22622273msgid ""
22632274"If *consumed* is not ``NULL``, set *\\ *consumed* to the number of decoded "
22642275"bytes on success. If *consumed* is ``NULL``, treat trailing incomplete UTF-8 "
22652276"byte sequences as an error."
22662277msgstr ""
22672278
2268- #: ../../c-api/unicode.rst:1871
2279+ #: ../../c-api/unicode.rst:1886
22692280msgid "See also :c:func:`PyUnicodeWriter_WriteUTF8`."
22702281msgstr ""
22712282
2272- #: ../../c-api/unicode.rst:1874
2283+ #: ../../c-api/unicode.rst:1889
22732284msgid "Deprecated API"
22742285msgstr ""
22752286
2276- #: ../../c-api/unicode.rst:1876
2287+ #: ../../c-api/unicode.rst:1891
22772288msgid "The following API is deprecated."
22782289msgstr ""
22792290
2280- #: ../../c-api/unicode.rst:1880
2291+ #: ../../c-api/unicode.rst:1895
22812292msgid ""
22822293"This is a typedef of :c:type:`wchar_t`, which is a 16-bit type or 32-bit "
22832294"type depending on the platform. Please use :c:type:`wchar_t` directly "
22842295"instead."
22852296msgstr ""
22862297
2287- #: ../../c-api/unicode.rst:1884
2298+ #: ../../c-api/unicode.rst:1899
22882299msgid ""
22892300"In previous versions, this was a 16-bit type or a 32-bit type depending on "
22902301"whether you selected a \" narrow\" or \" wide\" Unicode version of Python at "
22912302"build time."
22922303msgstr ""
22932304
2294- #: ../../c-api/unicode.rst:1894
2305+ #: ../../c-api/unicode.rst:1909
22952306msgid ""
22962307"Do nothing and return ``0``. This API is kept only for backward "
22972308"compatibility, but there are no plans to remove it."
22982309msgstr ""
22992310
2300- #: ../../c-api/unicode.rst:1900
2311+ #: ../../c-api/unicode.rst:1915
23012312msgid ""
23022313"This API does nothing since Python 3.12. Previously, this needed to be "
23032314"called for each string created using the old API (:c:func:`!"
23042315"PyUnicode_FromUnicode` or similar)."
23052316msgstr ""
23062317
2307- #: ../../c-api/unicode.rst:1908
2318+ #: ../../c-api/unicode.rst:1923
23082319msgid ""
23092320"Do nothing and return ``1``. This API is kept only for backward "
23102321"compatibility, but there are no plans to remove it."
23112322msgstr ""
23122323
2313- #: ../../c-api/unicode.rst:1914
2324+ #: ../../c-api/unicode.rst:1929
23142325msgid ""
23152326"This API does nothing since Python 3.12. Previously, this could be called to "
23162327"check if :c:func:`PyUnicode_READY` is necessary."
0 commit comments