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 aa82036
Browse filesBrowse the repository at this point in the historyBrowse files
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -199,8 +199,8 @@ msgstr "در صورت خطا، خطا را در *config* تنظیم کرده و
199
199
msgid"Get a string configuration option as a null-terminated UTF-8 encoded string."
200
200
msgstr"یک گزینه پیکربندی رشتهای را بهصورت رشتهای کدگذاریشده با UTF-8 و پایانیافته با تهی دریافت میکند."
201
201
202
-
msgid"*\\*value* can be set to ``NULL`` if the option is an optional string and the option is unset."
203
-
msgstr"اگر گزینه یک رشتهی اختیاری باشد و تنظیم نشده باشد، میتوان *\\*value* را برابر ``NULL`` قرار داد."
202
+
msgid"*\\*value* can be set to ``NULL`` if the option is unset or if the option is an optional string. Optional strings are documented with the type ``str | None`` in the :ref:`Configuration Options <pyinitconfig-opts>` table."
203
+
msgstr""
204
204
205
205
msgid"On success, the string must be released with ``free(value)`` if it's not ``NULL``."
206
206
msgstr"در صورت موفقیت، اگر رشته ``NULL`` نباشد، باید با ``free(value)`` آزاد شود."
@@ -234,6 +234,9 @@ msgstr "در صورت موفقیت ``0`` را برمیگرداند."
234
234
msgid"Set a string configuration option from a null-terminated UTF-8 encoded string. The string is copied."
235
235
msgstr"یک گزینه پیکربندی رشتهای را از یک رشتهی کدگذاریشده با UTF-8 و خاتمهیافته با نویسه تهی تنظیم میکند. رشته کپی میشود."
236
236
237
+
msgid"Options documented with the type ``str | None`` in the :ref:`Configuration Options <pyinitconfig-opts>` table can be set to ``NULL``."
238
+
msgstr""
239
+
237
240
msgid"Set a string list configuration option from an array of null-terminated UTF-8 encoded strings. The string list is copied."
238
241
msgstr"یک گزینه پیکربندی فهرست رشتهای را از آرایهای از رشتههای کدگذاریشده با UTF-8 و پایانیافته با نویسه تهی تنظیم میکند. فهرست رشتهها کپی میشود."
msgid"A value of ``-1`` keeps the default behaviour, where only imports marked with the ``lazy`` keyword are lazy. A value of ``1`` makes every import lazy. ``0`` is rejected."
1671
+
msgstr""
1672
+
1673
+
#,fuzzy
1674
+
#| msgid "Configured by the :option:`-X int_max_str_digits <-X>` command line flag or the :envvar:`PYTHONINTMAXSTRDIGITS` environment variable."
1675
+
msgid"Configured by the :option:`-X lazy_imports <-X>` command line option or the :envvar:`PYTHON_LAZY_IMPORTS` environment variable."
1676
+
msgstr"با پرچم خط فرمان :option:`-X int_max_str_digits <-X>` یا متغیر محیطی :envvar:`PYTHONINTMAXSTRDIGITS` پیکربندی میشود."
1677
+
1646
1678
msgid"If non-zero, use :class:`io.FileIO` instead of :class:`!io._WindowsConsoleIO` for :data:`sys.stdin`, :data:`sys.stdout` and :data:`sys.stderr`."
1647
1679
msgstr"اگر غیر صفر باشد، بهجای :class:`!io._WindowsConsoleIO` از :class:`io.FileIO` برای :data:`sys.stdin`، :data:`sys.stdout` و :data:`sys.stderr` استفاده میشود."
1648
1680
@@ -2457,6 +2489,9 @@ msgstr "main()"
2457
2489
msgid"argv (in module sys)"
2458
2490
msgstr"argv (در ماژول sys)"
2459
2491
2492
+
#~ msgid "*\\*value* can be set to ``NULL`` if the option is an optional string and the option is unset."
2493
+
#~ msgstr "اگر گزینه یک رشتهی اختیاری باشد و تنظیم نشده باشد، میتوان *\\*value* را برابر ``NULL`` قرار داد."
2494
+
2460
2495
#~ msgid "Set to ``0`` by the :option:`-E` environment variable."
2461
2496
#~ msgstr "توسط متغیر محیطی :option:`-E` روی ``0`` تنظیم میشود."
msgid"You may want to verify that the tool set the right flag by temporarily adding the following just after ``#include <Python.h>``::"
205
205
msgstr"ممکن است بخواهید با افزودن موقت کد زیر درست پس از ``#include <Python.h>`` تأیید کنید که ابزار پرچم درست را تنظیم کرده است::"
206
206
207
+
#,fuzzy
208
+
#| msgid ""
209
+
#| "#if Py_TARGET_ABI3T+0 <= 0x30f0000\n"
210
+
#| "#error \"abi3t define is not set!\"\n"
211
+
#| "#endif"
207
212
msgid""
208
-
"#if Py_TARGET_ABI3T+0 <= 0x30f0000\n"
213
+
"#if Py_TARGET_ABI3T+0 < 0x30f0000\n"
209
214
"#error \"abi3t define is not set!\"\n"
210
215
"#endif"
211
216
msgstr""
212
217
"#if Py_TARGET_ABI3T+0 <= 0x30f0000\n"
213
218
"#error \"abi3t define is not set!\"\n"
214
219
"#endif"
215
220
216
-
msgid"This should result in a different error than \"``abi3t`` define is not set\"."
217
-
msgstr"این امر باید خطایی متفاوت از \"``abi3t`` define is not set\" ایجاد کند."
221
+
msgid"This should result in a different error than \"``abi3t`` define is not set\". (If you get no error at all, either the module is already ported or you're not compiling the code you changed.)"
222
+
msgstr""
218
223
219
224
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."
220
225
msgstr"`Building and distributing abi3t extensions <https://py-free-threading.github.io/abi3t/>`__: پیکربندی ساخت و نمونههای آزمایش ویل (wheel) در راهنمای پایتون بدون قفل (Free-Threading) که توسط کامیونیتی نگهداری میشود."
@@ -379,6 +384,20 @@ msgstr "جایگاههای موجود"
379
384
msgid"If you have a ``Py_mod_slots`` slot, check the array it refers to. It should be a :c:type:`PyModuleDef_Slot` array like the following:"
380
385
msgstr"اگر یک جایگاه (slot) به نام ``Py_mod_slots`` دارید، آرایهای را که به آن اشاره میکند بررسی کنید. این آرایه باید مشابه نمونهی زیر یک آرایهی :c:type:`PyModuleDef_Slot` باشد:"
msgid"If you have a :c:macro:`Py_mod_create` entry, make sure the function can be called with ``NULL`` as its second argument (instead of the :c:type:`PyModuleDef`, which you are removing). Often, this argument isn't used at all; you can check by renaming it:"
msgid"If the argument is used, find a different way to pass in the data. Commonly, the information is static and you can refer to it directly. (If you're reusing a single function for several different modules, consider defining several functions instead.)"
419
440
msgstr"اگر از آرگومان استفاده میشود، روش دیگری برای ارسال دادهها پیدا کنید. معمولاً اطلاعات به صورت ایستا هستند و میتوانید مستقیماً به آنها ارجاع دهید. (اگر از یک تابع واحد برای چند ماژول مختلف استفاده مجدد میکنید، به جای آن تعریف چندین تابع را در نظر بگیرید.)"
420
441
421
-
msgid"Multiple ``py_mod_exec``"
442
+
#,fuzzy
443
+
#| msgid "Multiple ``py_mod_exec``"
444
+
msgid"Multiple ``Py_mod_exec``"
422
445
msgstr"چندین ``py_mod_exec``"
423
446
424
447
msgid"If you have *more than one* :c:macro:`Py_mod_exec` entry, consolidate them: create a new function that calls the others, and replace existing slots with it."
425
448
msgstr"اگر *بیش از یک* ورودی :c:macro:`Py_mod_exec` دارید، آنها را یکپارچه کنید: تابعی جدید ایجاد کنید که بقیه را فراخوانی کند و جایگاههای موجود را با آن جایگزین کنید."
426
449
450
+
#,fuzzy
451
+
#| msgid ""
452
+
#| "static int my_module_exec(PyObject *module) {\n"
453
+
#| " if (my_first_module_exec(module) < 0) return -1;\n"
454
+
#| " if (my_second_module_exec(module) < 0) return -1;\n"
455
+
#| "}\n"
456
+
#| "\n"
457
+
#| "static PyModuleDef_Slot my_slots[] = {\n"
458
+
#| " ...\n"
459
+
#| " /* (remove other Py_mod_exec slots) */\n"
460
+
#| " ...\n"
461
+
#| " {Py_mod_exec, my_module_exec},\n"
462
+
#| " {0, NULL}\n"
463
+
#| "};"
427
464
msgid""
428
465
"static int my_module_exec(PyObject *module) {\n"
429
466
" if (my_first_module_exec(module) < 0) return -1;\n"
430
467
" if (my_second_module_exec(module) < 0) return -1;\n"
msgid"Optionally, when you break compatibility with Python 3.14, you may clean up the code by moving slots into the :c:type:`PySlot` array, and converting the definitions to :c:macro:`PySlot_DATA` and :c:macro:`PySlot_FUNC`:"
461
499
msgstr"به صورت اختیاری، هنگامی که سازگاری با نسخهی ۳.۱۴ پایتون را قطع میکنید، میتوانید با انتقال جایگاهها به آرایهی :c:type:`PySlot` و تبدیل تعاریف به :c:macro:`PySlot_DATA` و :c:macro:`PySlot_FUNC`، کد را پاکسازی کنید:"
@@ -816,5 +885,8 @@ msgstr "حتماً آزمونها را روی هر دو ساخت نخآز
816
885
msgid"If they pass, congratulations! You have an ``abi3t`` extension."
817
886
msgstr"اگر با موفقیت انجام شدند، تبریک میگوییم! شما یک افزونهی ``abi3t`` دارید."
818
887
888
+
#~ msgid "This should result in a different error than \"``abi3t`` define is not set\"."
889
+
#~ msgstr "این امر باید خطایی متفاوت از \"``abi3t`` define is not set\" ایجاد کند."
890
+
819
891
#~ msgid "If you use a build tool (such as setuptools, meson-python, scikit-build-core), search its documentation for a way to select ``abi3t``. At the time of writing, not all of them have this; but if your tool does, use it. You may want to verify that it set the right flag by temporarily adding the following just after ``#include <Python.h>``::"
820
892
#~ msgstr "اگر از یک ابزار ساخت (مانند setuptools، meson-python، scikit-build-core) استفاده میکنید، مستندات آن را برای یافتن روشی جهت انتخاب ``abi3t`` جستجو کنید. در زمان نگارش این متن، همه آنها این ویژگی را ندارند؛ اما اگر ابزار شما دارد، از آن استفاده کنید. ممکن است بخواهید با افزودن موقت کد زیر بلافاصله پس از ``#include <Python.h>`` بررسی کنید که آیا پرچم مناسب را تنظیم کرده است یا خیر::"
0 commit comments