Skip to content

Commit fb52c19

Browse files
chore: sync msgids with CPython 3.15
1 parent 573da00 commit fb52c19

5 files changed

Lines changed: 49 additions & 10 deletions

File tree

‎c-api/exceptions.po‎

Lines changed: 7 additions & 1 deletion
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-01 14:41+0330\n"
16+
"POT-Creation-Date: 2026-10-07 04:46+0000\n"
1717
"PO-Revision-Date: 2026-09-15 13:22+0330\n"
1818
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1919
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -552,6 +552,9 @@ msgstr "نقطه‌ای را نشان‌گذاری می‌کند که در آن
552552
msgid "The function then checks if the stack limit is reached. If this is the case, a :exc:`RecursionError` is set and a nonzero value is returned. Otherwise, zero is returned."
553553
msgstr "سپس تابع بررسی می‌کند که آیا به حد پشته رسیده است یا خیر. اگر چنین باشد، یک :exc:`RecursionError` تنظیم می‌شود و مقدار غیرصفر بازگردانده می‌شود. در غیر این صورت، صفر بازگردانده می‌شود."
554554

555+
msgid "The check is based on the remaining C stack space of the current thread, not on a count of calls, so it is unaffected by :c:func:`Py_SetRecursionLimit` and :func:`sys.setrecursionlimit`."
556+
msgstr ""
557+
555558
msgid "*where* should be a UTF-8 encoded string such as ``\" in instance check\"`` to be concatenated to the :exc:`RecursionError` message caused by the recursion depth limit."
556559
msgstr "*where* باید یک رشته‌ی کدگذاری‌شده با UTF-8 مانند ``\" in instance check\"`` باشد تا به پیام :exc:`RecursionError` که ناشی از محدودیت عمق بازگشت است، الحاق شود."
557560

@@ -561,6 +564,9 @@ msgstr "تابع :c:func:`PyUnstable_ThreadState_SetStackProtection`."
561564
msgid "This function is now also available in the :ref:`limited API <limited-c-api>`."
562565
msgstr "این تابع اکنون در :ref:`API محدود <limited-c-api>` نیز در دسترس است."
563566

567+
msgid "The check is based on the remaining C stack space. Previously, a separate counter of C-level calls was used."
568+
msgstr ""
569+
564570
msgid "Ends a :c:func:`Py_EnterRecursiveCall`. Must be called once for each *successful* invocation of :c:func:`Py_EnterRecursiveCall`."
565571
msgstr "یک :c:func:`Py_EnterRecursiveCall` را پایان می‌دهد. باید یک‌بار برای هر فراخوانی *موفق* :c:func:`Py_EnterRecursiveCall` فراخوانی شود."
566572

‎howto/abi3t-migration.po‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.15\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
10+
"POT-Creation-Date: 2026-10-07 04:46+0000\n"
1111
"PO-Revision-Date: 2026-10-01 14:41+0330\n"
1212
"Last-Translator: Automatically generated\n"
1313
"Language-Team: none\n"
@@ -223,7 +223,9 @@ msgstr "این راهنما از شما می‌خواهد مجموعه‌ای ا
223223
msgid "Module export hook"
224224
msgstr "قلاب اکسپورت ماژول"
225225

226-
msgid "Unless you've done this step already, your extension module defines a :ref:`module initialization function <extension-pyinit>` named :samp:`PyInit_{<module_name>}`. You will need to port it to a :ref:`module export hook <extension-export-hook>`, :samp:`PyModExport_{<module name>}`, a feature added in CPython 3.15 in :pep:`793`."
226+
#, fuzzy
227+
#| msgid "Unless you've done this step already, your extension module defines a :ref:`module initialization function <extension-pyinit>` named :samp:`PyInit_{<module_name>}`. You will need to port it to a :ref:`module export hook <extension-export-hook>`, :samp:`PyModExport_{<module name>}`, a feature added in CPython 3.15 in :pep:`793`."
228+
msgid "Unless you've done this step already, your extension module defines a :ref:`module initialization function <extension-pyinit>` named :samp:`PyInit_{<modname>}` (where ``modname`` is the name of your module). You will need to port it to a :ref:`module export hook <extension-export-hook>`, :samp:`PyModExport_{<modname>}`, a feature added in CPython 3.15 in :pep:`793`."
227229
msgstr "مگر اینکه قبلاً این مرحله را انجام داده باشید، ماژول توسعه‌ای شما یک :ref:`تابع مقداردهی اولیه‌ی ماژول <extension-pyinit>` به نام :samp:`PyInit_{<module_name>}` را تعریف می‌کند. لازم است آن را به یک :ref:`قلاب اکسپورت ماژول <extension-export-hook>`، یعنی :samp:`PyModExport_{<module name>}` منتقل کنید که این ویژگی در سی‌پایتون ۳.۱۵ در :pep:`793` اضافه شده است."
228230

229231
msgid "Your existing init function should look like this (with your own names for ``<modname>`` and ``<moddef>``):"
@@ -328,6 +330,23 @@ msgstr "برای جزئیات این API، مستندات :c:type:`PySlot` و :c
328330
msgid "As in the example, your ``PyModExport_`` function should *only* return a pointer to static data. If you cannot avoid additional code, refer to the :ref:`caveats in PyModExport documentation <pymodexport-api-caveats>`."
329331
msgstr "همانند نمونه، تابع ``PyModExport_`` شما *فقط* باید یک اشاره‌گر به داده‌ی ایستا برگرداند. اگر نمی‌توانید از کد اضافی جلوگیری کنید، به :ref:`موارد احتیاطی در مستندات PyModExport <pymodexport-api-caveats>` مراجعه کنید."
330332

333+
msgid "When building for Windows using the Setuptools_ build tool, removing the :samp:`PyInit_{<modname>}` function may result in the linker error :samp:`LINK : error LNK2001: unresolved external symbol PyInit_{<modname>}`. This is caused by Setuptools passing an ``/EXPORT`` linker flag, which is redundant since Python 3.15 (see :gh:`141671`). A workaround is to add a dummy :samp:`PyInit_{<modname>}` function to your code. Python 3.15+ will never call this function if :samp:`PyModExport_{<modname>}` is present, so it can always fail:"
334+
msgstr ""
335+
336+
msgid ""
337+
"// Workaround for https://github.com/pypa/distutils/issues/387\n"
338+
"PyMODINIT_FUNC\n"
339+
"PyInit_<modname>(void)\n"
340+
"{\n"
341+
" PyErr_SetString(PyExc_SystemError,\n"
342+
" \"PyInit_* called for module with PyModExport_*\");\n"
343+
" return NULL;\n"
344+
"}"
345+
msgstr ""
346+
347+
msgid "(This issue is present in Setuptools 84.0.0; it might be fixed in newer versions.)"
348+
msgstr ""
349+
331350
msgid "Existing slots"
332351
msgstr "جایگاه‌های موجود"
333352

‎library/tempfile.po‎

Lines changed: 7 additions & 1 deletion
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-09-21 11:59+0000\n"
16+
"POT-Creation-Date: 2026-10-07 04:46+0000\n"
1717
"PO-Revision-Date: 2026-09-14 15:36+0330\n"
1818
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1919
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -141,6 +141,12 @@ msgstr "پوشه را می‌توان با فراخوانی متد :meth:`!clean
141141
msgid "The *delete* parameter can be used to disable cleanup of the directory tree upon exiting the context. While it may seem unusual for a context manager to disable the action taken when exiting the context, it can be useful during debugging or when you need your cleanup behavior to be conditional based on other logic."
142142
msgstr "می‌توان از پارامتر *delete* برای غیرفعال کردن پاک‌سازی درخت پوشه‌ها هنگام خروج از زمینه استفاده کرد. اگرچه ممکن است غیرعادی به نظر برسد که یک مدیر زمینه عملیات انجام‌شده هنگام خروج از زمینه را غیرفعال کند، اما این کار می‌تواند در حین اشکال‌زدایی یا زمانی که نیاز دارید رفتار پاک‌سازی شما بر اساس منطق دیگری مشروط باشد، مفید باشد."
143143

144+
msgid "Cleanup is not robust against the tree being modified while it is removed. Files outside of the tree may have their permissions and file flags reset."
145+
msgstr ""
146+
147+
msgid "On systems where :data:`shutil.rmtree.avoids_symlink_attacks` is false, manipulating symbolic links during cleanup may cause files outside of the tree to be removed."
148+
msgstr ""
149+
144150
msgid "Raises an :ref:`auditing event <auditing>` ``tempfile.mkdtemp`` with argument ``fullpath``."
145151
msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``tempfile.mkdtemp`` را با آرگومان ``fullpath`` پرتاب می‌کند."
146152

‎sphinx.po‎

Lines changed: 1 addition & 2 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-04 17:29+0330\n"
17+
"POT-Creation-Date: 2026-10-07 04:46+0000\n"
1818
"PO-Revision-Date: 2026-08-28 10:54+0330\n"
1919
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
2020
"Language-Team: Persian (https://github.com/python/python-docs-fa/fa/)\n"
@@ -378,7 +378,6 @@ msgstr ""
378378
"این سند مربوط به نسخه‌ای قدیمی از پایتون است که دیگر پشتیبانی نمی‌شود.\n"
379379
" شما باید نسخه‌ی خود را ارتقا دهید و مطالب مربوط به"
380380

381-
382381
msgid "Python documentation for the current stable release"
383382
msgstr "مستندات پایتون برای نسخه‌ی پایدار فعلی"
384383

‎whatsnew/3.15.po‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.15\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
10+
"POT-Creation-Date: 2026-10-07 04:46+0000\n"
1111
"PO-Revision-Date: 2026-10-06 19:50+0330\n"
1212
"Last-Translator: Automatically generated\n"
1313
"Language-Team: none\n"
@@ -143,14 +143,23 @@ msgstr "پایتون اکنون راه‌حل تمیزتری را از طریق
143143
msgid "The ``lazy`` keyword works with both ``import`` and ``from ... import`` statements. When you write ``lazy import heavy_module``, Python does not immediately load the module. Instead, it creates a lightweight proxy object. The actual module loading happens transparently when you first access the name:"
144144
msgstr "کلیدواژه ``lazy`` با دستورهای ``import`` و ``from ... import`` کار می‌کند. وقتی می‌نویسید ``lazy import heavy_module``، پایتون بلافاصله ماژول را بارگذاری نمی‌کند. در عوض، یک شیء پراکسی سبک‌وزن ایجاد می‌کند. بارگذاری واقعی ماژول به صورت شفاف هنگام دسترسی اولیه‌ی شما به نام اتفاق می‌افتد:"
145145

146+
#, fuzzy
147+
#| msgid ""
148+
#| "lazy import json\n"
149+
#| "lazy from pathlib import Path\n"
150+
#| "\n"
151+
#| "print(\"Starting up...\") # json and pathlib not loaded yet\n"
152+
#| "\n"
153+
#| "data = json.loads('{\"key\": \"value\"}') # json loads here\n"
154+
#| "p = Path(\".\") # pathlib loads here"
146155
msgid ""
147156
"lazy import json\n"
148157
"lazy from pathlib import Path\n"
149158
"\n"
150-
"print(\"Starting up...\") # json and pathlib not loaded yet\n"
159+
"print(\"Starting up...\") # json and pathlib are not fully imported yet\n"
151160
"\n"
152-
"data = json.loads('{\"key\": \"value\"}') # json loads here\n"
153-
"p = Path(\".\") # pathlib loads here"
161+
"data = json.loads('{\"key\": \"value\"}') # json gets fully imported here\n"
162+
"p = Path(\".\") # pathlib gets fully imported here"
154163
msgstr ""
155164
"lazy import json\n"
156165
"lazy from pathlib import Path\n"

0 commit comments

Comments
 (0)