Skip to content

Commit 828c46f

Browse files
chore: sync msgids with CPython 3.15
1 parent 6206b3d commit 828c46f

6 files changed

Lines changed: 191 additions & 51 deletions

File tree

‎c-api/bytes.po‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.14\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2026-10-11 04:18+0000\n"
17+
"POT-Creation-Date: 2026-10-17 04:15+0000\n"
1818
"PO-Revision-Date: 2026-10-11 17:41+0330\n"
1919
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
2020
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -268,7 +268,9 @@ msgstr "رابط برمکی (API) نوع :c:type:`PyBytesWriter` را می‌ت
268268
msgid "A bytes writer instance."
269269
msgstr "یک نمونه‌ی نویسنده‌ی بایت (bytes writer)."
270270

271-
msgid "The API is **not thread safe**: a writer should only be used by a single thread at the same time."
271+
#, fuzzy
272+
#| msgid "The API is **not thread safe**: a writer should only be used by a single thread at the same time."
273+
msgid "The API is **not thread safe**. To share a writer with multiple threads, a critical section or a lock is needed."
272274
msgstr "این API **ایمن در برابر نخ (thread-safe) نیست**: یک نویسنده باید در هر لحظه تنها توسط یک نخ استفاده شود."
273275

274276
msgid "The instance must be destroyed by :c:func:`PyBytesWriter_Finish` on success, or :c:func:`PyBytesWriter_Discard` on error."
@@ -371,7 +373,9 @@ msgstr "بایت‌های تازه تخصیص‌یافته مقداردهی او
371373
msgid "Resize the writer by adding *grow* bytes to the current writer size. This function typically overallocates to achieve amortized performance when resizing multiple times."
372374
msgstr "با اضافه کردن *grow* بایت به اندازه‌ی فعلی نویسنده، اندازه‌ی آن را تغییر دهید. این تابع معمولاً برای دستیابی به کارایی سرشکن‌شده هنگام تغییر اندازه‌ی مکرر، حافظه را بیشتر تخصیص می‌دهد."
373375

374-
msgid "*size* can be negative to shrink the writer."
376+
#, fuzzy
377+
#| msgid "*size* can be negative to shrink the writer."
378+
msgid "*grow* can be negative to shrink the writer."
375379
msgstr "برای کوچک کردن نویسنده، *size* می‌تواند منفی باشد."
376380

377381
msgid "Similar to :c:func:`PyBytesWriter_Grow`, but update also the *buf* pointer."

‎c-api/unicode.po‎

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.14\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
17+
"POT-Creation-Date: 2026-10-17 04:15+0000\n"
1818
"PO-Revision-Date: 2026-09-14 16:24+0330\n"
1919
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
2020
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -37,6 +37,9 @@ msgstr "از زمان پیاده‌سازی :pep:`393` در پایتون 3.3،
3737
msgid "UTF-8 representation is created on demand and cached in the Unicode object."
3838
msgstr "بازنمایی UTF-8 به‌هنگام نیاز ایجاد می‌شود و در نهانگاه شیء یونیکد ذخیره می‌شود."
3939

40+
msgid "The internal buffer always includes an extra trailing null character for compatibility with null terminated C strings. This extra character is not counted in :c:func:`PyUnicode_GetLength` nor in the various *size* arguments of the functions below."
41+
msgstr ""
42+
4043
msgid "The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 with deprecated APIs. See :pep:`623` for more information."
4144
msgstr "نمایش :c:type:`Py_UNICODE` از پایتون 3.12 همراه با APIهای منسوخ حذف شده است. برای اطلاعات بیشتر به :pep:`623` مراجعه کنید."
4245

@@ -103,9 +106,14 @@ msgstr "مقدار *kind* و اشاره‌گر *data* باید به ترتیب
103106
msgid "The function performs no checks for any of its requirements, and is intended for usage in loops."
104107
msgstr "این تابع هیچ بررسی‌ای برای هیچ‌یک از نیازمندی‌های خود انجام نمی‌دهد و برای استفاده در حلقه‌ها در نظر گرفته شده است."
105108

106-
msgid "Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
109+
#, fuzzy
110+
#| msgid "Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
111+
msgid "Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks are performed."
107112
msgstr "یک نقطه‌کد را از نمایش کانونیکال *data* (که با :c:func:`PyUnicode_DATA` به دست آمده است) می‌خواند. هیچ بررسی یا فراخوانی ready انجام نمی‌شود."
108113

114+
msgid "Accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
115+
msgstr ""
116+
109117
msgid "Read a character from a Unicode object *unicode*, which must be in the \"canonical\" representation. This is less efficient than :c:func:`PyUnicode_READ` if you do multiple consecutive reads."
110118
msgstr "یک نویسه از شیء یونیکد *unicode* می‌خواند که باید در نمایش «کانونیکال» باشد. اگر چندین خواندن متوالی انجام می‌دهید، این کارایی کمتری نسبت به :c:func:`PyUnicode_READ` دارد."
111119

@@ -253,6 +261,9 @@ msgstr "یک شیء یونیکد جدید با *kind* داده‌شده ایجا
253261
msgid "If necessary, the input *buffer* is copied and transformed into the canonical representation. For example, if the *buffer* is a UCS4 string (:c:macro:`PyUnicode_4BYTE_KIND`) and it consists only of codepoints in the UCS1 range, it will be transformed into UCS1 (:c:macro:`PyUnicode_1BYTE_KIND`)."
254262
msgstr "در صورت نیاز، *بافر* ورودی کپی شده و به نمایش کانونیکال تبدیل می‌شود. برای مثال، اگر *بافر* یک رشته‌ی UCS4 باشد (:c:macro:`PyUnicode_4BYTE_KIND`) و تنها شامل نقطه‌کدهایی در محدوده‌ی UCS1 باشد، به UCS1 تبدیل می‌شود (:c:macro:`PyUnicode_1BYTE_KIND`)."
255263

264+
msgid "All characters must be in range [U+0000; U+10ffff]. If *kind* is :c:macro:`PyUnicode_4BYTE_KIND` and the string contains invalid characters, the behavior is undefined."
265+
msgstr ""
266+
256267
msgid "Create a Unicode object from the char buffer *str*. The bytes will be interpreted as being UTF-8 encoded. The buffer is copied into the new object. The return value might be a shared object, i.e. modification of the data is not allowed."
257268
msgstr "یک شیء یونیکد از بافر نویسه *str* ایجاد می‌کند. بایت‌ها به‌عنوان کدگذاری‌شده با UTF-8 تفسیر می‌شوند. بافر در شیء جدید کپی می‌شود. مقدار بازگشتی ممکن است یک شیء مشترک باشد، یعنی تغییر داده‌ها مجاز نیست."
258269

@@ -580,6 +591,9 @@ msgstr "طول شیء یونیکد را بر حسب نقطه‌کد برمی‌
580591
msgid "On error, set an exception and return ``-1``."
581592
msgstr "در صورت خطا، یک استثنا تنظیم شده و ``-1`` بازگردانده می‌شود."
582593

594+
msgid "The length does not count the trailing null character."
595+
msgstr ""
596+
583597
msgid "Copy characters from one Unicode object into another. This function performs character conversion when necessary and falls back to :c:func:`!memcpy` if possible. Returns ``-1`` and sets an exception on error, otherwise returns the number of copied characters."
584598
msgstr "نویسه‌ها را از یک شیء یونیکد به شیء یونیکد دیگر کپی می‌کند. این تابع در صورت نیاز تبدیل نویسه‌ها را انجام می‌دهد و در صورت امکان به :c:func:`!memcpy` روی می‌آورد. در صورت خطا ``-1`` برمی‌گرداند و یک استثنا تنظیم می‌کند، در غیر این صورت تعداد نویسه‌های کپی‌شده را برمی‌گرداند."
585599

@@ -619,6 +633,9 @@ msgstr "یک نویسه از یک رشته می‌خواند. این تابع ب
619633
msgid "Return character on success, ``-1`` on error with an exception set."
620634
msgstr "در صورت موفقیت نویسه و در صورت خطا ``-1`` را همراه با استثنای تنظیم‌شده برمی‌گرداند."
621635

636+
msgid "Do not accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
637+
msgstr ""
638+
622639
msgid "Return a substring of *unicode*, from character index *start* (included) to character index *end* (excluded). Negative indices are not supported. On error, set an exception and return ``NULL``."
623640
msgstr "زیررشته‌ای از *unicode* را برمی‌گرداند که از اندیس نویسه‌ی *start* (شامل) تا اندیس نویسه‌ی *end* (بدون) است. اندیس‌های منفی پشتیبانی نمی‌شوند. در صورت خطا، یک استثنا تنظیم کرده و ``NULL`` را برمی‌گرداند."
624641

@@ -1168,6 +1185,9 @@ msgstr "یک نمونه‌ی نوشتارگر یونیکد."
11681185
msgid "The instance must be destroyed by :c:func:`PyUnicodeWriter_Finish` on success, or :c:func:`PyUnicodeWriter_Discard` on error."
11691186
msgstr "نمونه باید در صورت موفقیت توسط :c:func:`PyUnicodeWriter_Finish` یا در صورت خطا توسط :c:func:`PyUnicodeWriter_Discard` نابود شود."
11701187

1188+
msgid "The API is **not thread safe**. To share a writer with multiple threads, a critical section or a lock is needed."
1189+
msgstr ""
1190+
11711191
msgid "Create a Unicode writer instance."
11721192
msgstr "یک نمونه از نویسنده یونیکد ایجاد کنید."
11731193

@@ -1219,12 +1239,17 @@ msgstr "رشته پهن *str* را در *writer* می‌نویسد."
12191239
msgid "*size* is a number of wide characters. If *size* is equal to ``-1``, call ``wcslen(str)`` to get the string length."
12201240
msgstr "*size* تعداد نویسه‌های پهن است. اگر *size* برابر با ``-1`` باشد، برای به‌دست آوردن طول رشته، ``wcslen(str)`` را فراخوانی کنید."
12211241

1222-
msgid "Writer the UCS4 string *str* into *writer*."
1242+
#, fuzzy
1243+
#| msgid "Writer the UCS4 string *str* into *writer*."
1244+
msgid "Write the UCS4 string *str* into *writer*."
12231245
msgstr "رشته UCS4 *str* را در *writer* می‌نویسد."
12241246

12251247
msgid "*size* is a number of UCS4 characters."
12261248
msgstr "*size* تعداد نویسه‌های UCS4 است."
12271249

1250+
msgid "All characters must be in range [U+0000; U+10ffff]. If the string contains invalid characters, the behavior is undefined."
1251+
msgstr ""
1252+
12281253
msgid "Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
12291254
msgstr ":c:func:`PyObject_Str` را روی *obj* فراخوانی می‌کند و خروجی را در *writer* می‌نویسد."
12301255

‎library/test.po‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-10-10 04:18+0000\n"
16+
"POT-Creation-Date: 2026-10-17 04:15+0000\n"
1717
"PO-Revision-Date: 2026-09-13 13:15+0330\n"
1818
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1919
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -198,7 +198,9 @@ msgstr "کتابی از کنت بک درباره‌ی نوشتن آزمون‌ه
198198
msgid "Running tests using the command-line interface"
199199
msgstr "اجرای آزمون‌ها با استفاده از رابط خط فرمان"
200200

201-
msgid "The :mod:`!test` package can be run as a script to drive Python's regression test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under the hood, it uses :mod:`!test.regrtest`; the call :program:`python -m test.regrtest` used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the :mod:`!test` package. It does this by finding all modules in the package whose name starts with ``test_``, importing them, and executing the function :func:`test_main` if present or loading the tests via unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. The names of tests to execute may also be passed to the script. Specifying a single regression test (:program:`python -m test test_spam`) will minimize output and only print whether the test passed or failed."
201+
#, fuzzy
202+
#| msgid "The :mod:`!test` package can be run as a script to drive Python's regression test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under the hood, it uses :mod:`!test.regrtest`; the call :program:`python -m test.regrtest` used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the :mod:`!test` package. It does this by finding all modules in the package whose name starts with ``test_``, importing them, and executing the function :func:`test_main` if present or loading the tests via unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. The names of tests to execute may also be passed to the script. Specifying a single regression test (:program:`python -m test test_spam`) will minimize output and only print whether the test passed or failed."
203+
msgid "The :mod:`!test` package can be run as a script to drive Python's regression test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under the hood, it uses :mod:`!test.regrtest`; the call :program:`python -m test.regrtest` used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the :mod:`!test` package. It does this by finding modules and packages whose names start with ``test_``, importing each one, and loading its tests with :meth:`unittest.TestLoader.loadTestsFromModule`. See the :ref:`load_tests protocol <load_tests-protocol>` for how a module or package can customize what is loaded. Defining a module-level ``test_main()`` function is not supported and causes the test to fail. The names of tests to execute may also be passed to the script. Specifying a single regression test (:program:`python -m test test_spam`) will minimize output and only print whether the test passed or failed."
202204
msgstr "بسته‌ی :mod:`!test` را می‌توان به‌کمک گزینه‌ی :option:`-m` به‌صورت یک اسکریپت برای اجرای بدنه‌ی آزمون‌های رگرسیون پایتون اجرا کرد: :program:`python -m test`. در پشت صحنه، این بسته از :mod:`!test.regrtest` استفاده می‌کند؛ فراخوانی :program:`python -m test.regrtest` که در نسخه‌های پیشین پایتون استفاده می‌شد، همچنان کار می‌کند. اجرای اسکریپت به‌تنهایی به‌طور خودکار اجرای همه‌ی آزمون‌های رگرسیون موجود در بسته‌ی :mod:`!test` را آغاز می‌کند. این کار با یافتن همه‌ی ماژول‌های موجود در بسته که نامشان با ``test_`` شروع می‌شود، ایمپورت کردن آن‌ها، و اجرای تابع :func:`test_main` در صورت وجود، یا بارگذاری آزمون‌ها از طریق unittest.TestLoader.loadTestsFromModule در صورت نبود ``test_main`` انجام می‌شود. نام آزمون‌های مورد نظر برای اجرا نیز می‌تواند به اسکریپت داده شود. مشخص کردن یک آزمون رگرسیون به‌صورت تکی (:program:`python -m test test_spam`) خروجی را به حداقل می‌رساند و فقط چاپ می‌کند که آزمون موفقیت‌آمیز بوده یا شکست خورده است."
203205

204206
msgid "Running :mod:`!test` directly allows what resources are available for tests to use to be set. You do this by using the ``-u`` command-line option. Specifying ``all`` as the value for the ``-u`` option enables all possible resources: :program:`python -m test -uall`. If all but one resource is desired (a more common case), a comma-separated list of resources that are not desired may be listed after ``all``. The command :program:`python -m test -uall,-audio,-largefile` will run :mod:`!test` with all resources except the ``audio`` and ``largefile`` resources. For a list of all resources and more command-line options, run :program:`python -m test -h`."
@@ -680,7 +682,9 @@ msgstr "آزمون خطاهای سینتکسی در *statement* با تلاش ب
680682
msgid "Open *url*. If open fails, raises :exc:`TestFailed`."
681683
msgstr "*url* را باز می‌کند. اگر باز کردن ناموفق باشد، :exc:`TestFailed` را پرتاب می‌کند."
682684

683-
msgid "Use this at the end of ``test_main`` whenever sub-processes are started. This will help ensure that no extra children (zombies) stick around to hog resources and create problems when looking for refleaks."
685+
#, fuzzy
686+
#| msgid "Use this at the end of ``test_main`` whenever sub-processes are started. This will help ensure that no extra children (zombies) stick around to hog resources and create problems when looking for refleaks."
687+
msgid "Call this from :meth:`~unittest.TestCase.setUp`, :meth:`~unittest.TestCase.tearDown`, or ``tearDownModule()`` in tests that start subprocesses. This will help ensure that no extra children (zombies) stick around to hog resources and create problems when looking for refleaks."
684688
msgstr "هر زمان که زیرفرایندها آغاز می‌شوند، از این در پایان ``test_main`` استفاده کنید. این کار کمک می‌کند تا اطمینان حاصل شود که هیچ‌کدام از فرزندان اضافی (زامبی‌ها) باقی نمی‌مانند که منابع را اشغال کنند و هنگام جست‌وجو برای نشت‌های مرجع (refleaks) مشکل ایجاد کنند."
685689

686690
msgid "Get an attribute, raising :exc:`unittest.SkipTest` if :exc:`AttributeError` is raised."

0 commit comments

Comments
 (0)