You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ced738d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: c-api/exceptions.po
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -554,7 +554,7 @@ msgid "The function then checks if the stack limit is reached. If this is the c
554
554
msgstr"سپس تابع بررسی میکند که آیا به حد پشته رسیده است یا خیر. اگر چنین باشد، یک :exc:`RecursionError` تنظیم میشود و مقدار غیرصفر بازگردانده میشود. در غیر این صورت، صفر بازگردانده میشود."
555
555
556
556
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`."
557
-
msgstr""
557
+
msgstr"این بررسی بر اساس فضای پشتهی C باقیمانده از نخ فعلی انجام میشود، نه بر اساس تعداد فراخوانیها، بنابراین تحتتأثیر :c:func:`Py_SetRecursionLimit` و :func:`sys.setrecursionlimit` قرار نمیگیرد."
558
558
559
559
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."
560
560
msgstr"*where* باید یک رشتهی کدگذاریشده با UTF-8 مانند ``\" in instance check\"`` باشد تا به پیام :exc:`RecursionError` که ناشی از محدودیت عمق بازگشت است، الحاق شود."
@@ -566,7 +566,7 @@ msgid "This function is now also available in the :ref:`limited API <limited-c-a
566
566
msgstr"این تابع اکنون در :ref:`API محدود <limited-c-api>` نیز در دسترس است."
567
567
568
568
msgid"The check is based on the remaining C stack space. Previously, a separate counter of C-level calls was used."
569
-
msgstr""
569
+
msgstr"این بررسی بر اساس فضای پشتهی C باقیمانده انجام میشود. پیش از این، از شمارندهی مجزایی برای فراخوانیهای سطح C استفاده میشد."
570
570
571
571
msgid"Ends a :c:func:`Py_EnterRecursiveCall`. Must be called once for each *successful* invocation of :c:func:`Py_EnterRecursiveCall`."
572
572
msgstr"یک :c:func:`Py_EnterRecursiveCall` را پایان میدهد. باید یکبار برای هر فراخوانی *موفق* :c:func:`Py_EnterRecursiveCall` فراخوانی شود."
Copy file name to clipboardExpand all lines: howto/abi3t-migration.po
+18-11Lines changed: 18 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -189,19 +189,19 @@ msgid "Setting up the build"
189
189
msgstr"تنظیم ساخت"
190
190
191
191
msgid"If you use a build tool, search its documentation for \"``abi3t``\", and follow any instructions to select the ABI. For reference, here are direct links for several popular build tools:"
192
-
msgstr""
192
+
msgstr"اگر از ابزار ساختی استفاده میکنید، مستندات آن را برای عبارت «``abi3t``» جستجو کنید و هرگونه دستورالعملی را برای انتخاب ABI دنبال کنید. برای ارجاع، در اینجا پیوندهای مستقیمی برای چند ابزار ساخت محبوب آورده شده است:"
msgid"You may want to verify that the tool set the right flag by temporarily adding the following just after ``#include <Python.h>``::"
204
-
msgstr""
204
+
msgstr"ممکن است بخواهید با افزودن موقت کد زیر درست پس از ``#include <Python.h>`` تأیید کنید که ابزار پرچم درست را تنظیم کرده است::"
205
205
206
206
msgid""
207
207
"#if Py_TARGET_ABI3T+0 <= 0x30f0000\n"
@@ -216,7 +216,7 @@ msgid "This should result in a different error than \"``abi3t`` define is not se
216
216
msgstr"این امر باید خطایی متفاوت از \"``abi3t`` define is not set\" ایجاد کند."
217
217
218
218
msgid"`Building and distributing abi3t extensions <https://py-free-threading.github.io/abi3t/>`__: Build configuration and wheel testing examples in the community-maintained Python Free-Threading Guide."
219
-
msgstr""
219
+
msgstr"`Building and distributing abi3t extensions <https://py-free-threading.github.io/abi3t/>`__: پیکربندی ساخت و نمونههای آزمایش ویل (wheel) در راهنمای پایتون بدون قفل (Free-Threading) که توسط کامیونیتی نگهداری میشود."
220
220
221
221
msgid"If your build tool doesn't support ``abi3t`` yet, set the following macro before including ``Python.h``::"
222
222
msgstr"اگر ابزار ساخت شما هنوز از ``abi3t`` پشتیبانی نمیکند، کلاندستور زیر را پیش از گنجاندن ``Python.h`` تنظیم کنید::"
#| 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`."
247
245
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`."
248
-
msgstr"مگر اینکه قبلاً این مرحله را انجام داده باشید، ماژول توسعهای شما یک :ref:`تابع مقداردهی اولیهی ماژول <extension-pyinit>` به نام :samp:`PyInit_{<module_name>}` را تعریف میکند. لازم است آن را به یک :ref:`قلاب اکسپورت ماژول <extension-export-hook>`، یعنی :samp:`PyModExport_{<module name>}` منتقل کنید که این ویژگی در سیپایتون ۳.۱۵ در :pep:`793` اضافه شده است."
246
+
msgstr"مگر اینکه قبلاً این مرحله را انجام داده باشید، ماژول توسعهای شما یک :ref:`تابع مقداردهی اولیهی ماژول <extension-pyinit>` به نام :samp:`PyInit_{<modname>}` (که در آن ``modname`` نام ماژول شما است) تعریف میکند. شما باید آن را به یک :ref:`هوک صادر کردن ماژول <extension-export-hook>` به نام :samp:`PyModExport_{<modname>}` منتقل کنید که این ویژگی در نسخهی ۳.۱۵ سیپایتون در :pep:`793` اضافه شده است."
249
247
250
248
msgid"Your existing init function should look like this (with your own names for ``<modname>`` and ``<moddef>``):"
251
249
msgstr"تابع اولیهی موجود شما باید به شکل زیر باشد (با نامهای دلخواه خودتان برای ``<modname>`` و ``<moddef>``):"
@@ -350,8 +348,9 @@ msgid "As in the example, your ``PyModExport_`` function should *only* return a
350
348
msgstr"همانند نمونه، تابع ``PyModExport_`` شما *فقط* باید یک اشارهگر به دادهی ایستا برگرداند. اگر نمیتوانید از کد اضافی جلوگیری کنید، به :ref:`موارد احتیاطی در مستندات PyModExport <pymodexport-api-caveats>` مراجعه کنید."
351
349
352
350
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:"
353
-
msgstr""
351
+
msgstr"هنگام ساخت برای ویندوز با استفاده از ابزار ساخت Setuptools_، حذف کردن تابع :samp:`PyInit_{<modname>}` ممکن است منجر به خطای پیونددهندهی :samp:`LINK : error LNK2001: unresolved external symbol PyInit_{<modname>}` شود. این مشکل به این دلیل رخ میدهد که Setuptools یک پرچم پیونددهندهی ``/EXPORT`` را ارسال میکند که از پایتون ۳.۱۵ به بعد اضافی است (نگاه کنید به :gh:`141671`). یک راه حل جایگزین این است که یک تابع :samp:`PyInit_{<modname>}` نمایشی (dummy) به کد خود اضافه کنید. پایتون ۳.۱۵ به بعد هرگز این تابع را در صورت وجود :samp:`PyModExport_{<modname>}` فراخوانی نخواهد کرد، بنابراین همیشه میتواند با خطا مواجه شود:"
354
352
353
+
#,fuzzy
355
354
msgid""
356
355
"// Workaround for https://github.com/pypa/distutils/issues/387\n"
357
356
"PyMODINIT_FUNC\n"
@@ -362,9 +361,17 @@ msgid ""
362
361
" return NULL;\n"
363
362
"}"
364
363
msgstr""
364
+
"// Workaround for https://github.com/pypa/distutils/issues/387\n"
365
+
"PyMODINIT_FUNC\n"
366
+
"PyInit_<modname>(void)\n"
367
+
"{\n"
368
+
" PyErr_SetString(PyExc_SystemError,\n"
369
+
" \"PyInit_* called for module with PyModExport_*\");\n"
370
+
" return NULL;\n"
371
+
"}"
365
372
366
373
msgid"(This issue is present in Setuptools 84.0.0; it might be fixed in newer versions.)"
367
-
msgstr""
374
+
msgstr"(این مسئله در نسخهی ۸۴.۰.۰ از Setuptools وجود دارد؛ ممکن است در نسخههای جدیدتر رفع شده باشد.)"
Copy file name to clipboardExpand all lines: library/tempfile.po
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -142,10 +142,10 @@ msgid "The *delete* parameter can be used to disable cleanup of the directory tr
142
142
msgstr"میتوان از پارامتر *delete* برای غیرفعال کردن پاکسازی درخت پوشهها هنگام خروج از زمینه استفاده کرد. اگرچه ممکن است غیرعادی به نظر برسد که یک مدیر زمینه عملیات انجامشده هنگام خروج از زمینه را غیرفعال کند، اما این کار میتواند در حین اشکالزدایی یا زمانی که نیاز دارید رفتار پاکسازی شما بر اساس منطق دیگری مشروط باشد، مفید باشد."
143
143
144
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""
145
+
msgstr"عملیات پاکسازی در برابر تغییر درخت در حین حذف شدن آن مقاوم نیست. ممکن است دسترسیها و پرچمهای پروندههای خارج از درخت بازنشانی شوند."
146
146
147
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""
148
+
msgstr"در سیستمهایی که :data:`shutil.rmtree.avoids_symlink_attacks` در آنها نادرست است، دستکاری پیوندهای نمادین در حین پاکسازی ممکن است باعث حذف پروندههای خارج از درخت شود."
149
149
150
150
msgid"Raises an :ref:`auditing event <auditing>` ``tempfile.mkdtemp`` with argument ``fullpath``."
151
151
msgstr"یک :ref:`رویداد حسابرسی <auditing>` ``tempfile.mkdtemp`` را با آرگومان ``fullpath`` پرتاب میکند."
0 commit comments