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 4c7447b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: c-api/bytes.po
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -268,10 +268,8 @@ msgstr "رابط برمکی (API) نوع :c:type:`PyBytesWriter` را میت
268
268
msgid"A bytes writer instance."
269
269
msgstr"یک نمونهی نویسندهی بایت (bytes writer)."
270
270
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
271
msgid"The API is **not thread safe**. To share a writer with multiple threads, a critical section or a lock is needed."
274
-
msgstr"این API **ایمن در برابر نخ (thread-safe) نیست**: یک نویسنده باید در هر لحظه تنها توسط یک نخ استفاده شود."
272
+
msgstr"این API **امن برای چندنخی (thread-safe) نیست**. برای اشتراکگذاری یک نویسنده با چندین نخ، یک بخش بحرانی (critical section) یا یک قفل مورد نیاز است."
275
273
276
274
msgid"The instance must be destroyed by :c:func:`PyBytesWriter_Finish` on success, or :c:func:`PyBytesWriter_Discard` on error."
277
275
msgstr"نمونه باید در صورت موفقیت توسط :c:func:`PyBytesWriter_Finish` و در صورت بروز خطا توسط :c:func:`PyBytesWriter_Discard` نابود شود."
@@ -373,10 +371,8 @@ msgstr "بایتهای تازه تخصیصیافته مقداردهی او
373
371
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."
374
372
msgstr"با اضافه کردن *grow* بایت به اندازهی فعلی نویسنده، اندازهی آن را تغییر دهید. این تابع معمولاً برای دستیابی به کارایی سرشکنشده هنگام تغییر اندازهی مکرر، حافظه را بیشتر تخصیص میدهد."
375
373
376
-
#,fuzzy
377
-
#| msgid "*size* can be negative to shrink the writer."
378
374
msgid"*grow* can be negative to shrink the writer."
379
-
msgstr"برای کوچک کردن نویسنده، *size* میتواند منفی باشد."
375
+
msgstr"مقدار *grow* میتواند منفی باشد تا نویسنده کوچک شود."
380
376
381
377
msgid"Similar to :c:func:`PyBytesWriter_Grow`, but update also the *buf* pointer."
382
378
msgstr"مشابه :c:func:`PyBytesWriter_Grow` است، اما اشارهگر *buf* را نیز بهروزرسانی میکند."
Copy file name to clipboardExpand all lines: c-api/import.po
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -249,7 +249,7 @@ msgid "On success, create and return a module object. This module will not be in
249
249
msgstr"در صورت موفقیت، یک شیء ماژول ایجاد کرده و برمیگرداند. این ماژول مقداردهی اولیه نخواهد شد؛ برای مقداردهی اولیه آن، :c:func:`PyModule_Exec` را فراخوانی کنید. (ایمپورتکنندههای سفارشی باید این کار را در متد :py:meth:`~importlib.abc.Loader.exec_module` خود انجام دهند.)"
250
250
251
251
msgid"If the spec's name is dotted and *initfunc* creates the module using only the last component of the name, the module's :attr:`~module.__name__` is set to the full name from the spec."
252
-
msgstr""
252
+
msgstr"اگر نام مشخصات (spec) نقطهگذاریشده باشد و *initfunc* ماژول را فقط با استفاده از آخرین جزء نام ایجاد کند، مقدار :attr:`~module.__name__` ماژول روی نام کامل مشخصات تنظیم میشود."
253
253
254
254
msgid"On error, return NULL with an exception set."
255
255
msgstr"در صورت بروز خطا، مقدار NULL را همراه با تنظیم یک استثنا برمیگرداند."
Copy file name to clipboardExpand all lines: c-api/unicode.po
+9-13Lines changed: 9 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ msgid "UTF-8 representation is created on demand and cached in the Unicode objec
38
38
msgstr"بازنمایی UTF-8 بههنگام نیاز ایجاد میشود و در نهانگاه شیء یونیکد ذخیره میشود."
39
39
40
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""
41
+
msgstr"بافر داخلی همیشه شامل یک نویسهی تهی پایانی اضافی برای سازگاری با رشتههای C ختمشده با نویسهی تهی است. این نویسهی اضافی در :c:func:`PyUnicode_GetLength` و همچنین در آرگومانهای *size* مختلف توابع زیر محاسبه نمیشود."
42
42
43
43
msgid"The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 with deprecated APIs. See :pep:`623` for more information."
44
44
msgstr"نمایش :c:type:`Py_UNICODE` از پایتون 3.12 همراه با APIهای منسوخ حذف شده است. برای اطلاعات بیشتر به :pep:`623` مراجعه کنید."
@@ -106,13 +106,11 @@ msgstr "مقدار *kind* و اشارهگر *data* باید به ترتیب
106
106
msgid"The function performs no checks for any of its requirements, and is intended for usage in loops."
107
107
msgstr"این تابع هیچ بررسیای برای هیچیک از نیازمندیهای خود انجام نمیدهد و برای استفاده در حلقهها در نظر گرفته شده است."
108
108
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
109
msgid"Read a code point from a canonical representation *data* (as obtained with :c:func:`PyUnicode_DATA`). No checks are performed."
112
-
msgstr"یک نقطهکد را از نمایش کانونیکال *data* (که با :c:func:`PyUnicode_DATA` به دست آمده است) میخواند. هیچ بررسی یا فراخوانی ready انجام نمیشود."
110
+
msgstr"یک نقطهکد را از دادههای بازنمایی کانونی *data* بخوانید (همانطور که با :c:func:`PyUnicode_DATA` به دست میآید). هیچ بررسی انجام نمیشود."
113
111
114
112
msgid"Accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
115
-
msgstr""
113
+
msgstr"خواندن نویسهی تهی پایانی در اندیس :c:func:`PyUnicode_GetLength` را بپذیرید."
116
114
117
115
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."
118
116
msgstr"یک نویسه از شیء یونیکد *unicode* میخواند که باید در نمایش «کانونیکال» باشد. اگر چندین خواندن متوالی انجام میدهید، این کارایی کمتری نسبت به :c:func:`PyUnicode_READ` دارد."
@@ -262,7 +260,7 @@ msgid "If necessary, the input *buffer* is copied and transformed into the canon
262
260
msgstr"در صورت نیاز، *بافر* ورودی کپی شده و به نمایش کانونیکال تبدیل میشود. برای مثال، اگر *بافر* یک رشتهی UCS4 باشد (:c:macro:`PyUnicode_4BYTE_KIND`) و تنها شامل نقطهکدهایی در محدودهی UCS1 باشد، به UCS1 تبدیل میشود (:c:macro:`PyUnicode_1BYTE_KIND`)."
263
261
264
262
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""
263
+
msgstr"تمام نویسهها باید در محدودهی [U+0000; U+10ffff] باشند. اگر *kind* برابر با :c:macro:`PyUnicode_4BYTE_KIND` باشد و رشته شامل نویسههای نامعتبر باشد، رفتار نامعلوم است."
266
264
267
265
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."
268
266
msgstr"یک شیء یونیکد از بافر نویسه *str* ایجاد میکند. بایتها بهعنوان کدگذاریشده با UTF-8 تفسیر میشوند. بافر در شیء جدید کپی میشود. مقدار بازگشتی ممکن است یک شیء مشترک باشد، یعنی تغییر دادهها مجاز نیست."
@@ -592,7 +590,7 @@ msgid "On error, set an exception and return ``-1``."
592
590
msgstr"در صورت خطا، یک استثنا تنظیم شده و ``-1`` بازگردانده میشود."
593
591
594
592
msgid"The length does not count the trailing null character."
595
-
msgstr""
593
+
msgstr"طول، نویسهی پایانی تهی را حساب نمیکند."
596
594
597
595
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."
598
596
msgstr"نویسهها را از یک شیء یونیکد به شیء یونیکد دیگر کپی میکند. این تابع در صورت نیاز تبدیل نویسهها را انجام میدهد و در صورت امکان به :c:func:`!memcpy` روی میآورد. در صورت خطا ``-1`` برمیگرداند و یک استثنا تنظیم میکند، در غیر این صورت تعداد نویسههای کپیشده را برمیگرداند."
@@ -634,7 +632,7 @@ msgid "Return character on success, ``-1`` on error with an exception set."
634
632
msgstr"در صورت موفقیت نویسه و در صورت خطا ``-1`` را همراه با استثنای تنظیمشده برمیگرداند."
635
633
636
634
msgid"Do not accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
637
-
msgstr""
635
+
msgstr"خواندن نویسهی پایانی تهی در اندیس :c:func:`PyUnicode_GetLength` پذیرفته نمیشود."
638
636
639
637
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``."
640
638
msgstr"زیررشتهای از *unicode* را برمیگرداند که از اندیس نویسهی *start* (شامل) تا اندیس نویسهی *end* (بدون) است. اندیسهای منفی پشتیبانی نمیشوند. در صورت خطا، یک استثنا تنظیم کرده و ``NULL`` را برمیگرداند."
@@ -1186,7 +1184,7 @@ msgid "The instance must be destroyed by :c:func:`PyUnicodeWriter_Finish` on suc
1186
1184
msgstr"نمونه باید در صورت موفقیت توسط :c:func:`PyUnicodeWriter_Finish` یا در صورت خطا توسط :c:func:`PyUnicodeWriter_Discard` نابود شود."
1187
1185
1188
1186
msgid"The API is **not thread safe**. To share a writer with multiple threads, a critical section or a lock is needed."
1189
-
msgstr""
1187
+
msgstr"این API **نخامن (thread safe) نیست**. برای اشتراکگذاری یک نویسنده (writer) با چند نخ، به یک بخش بحرانی (critical section) یا قفل نیاز است."
1190
1188
1191
1189
msgid"Create a Unicode writer instance."
1192
1190
msgstr"یک نمونه از نویسنده یونیکد ایجاد کنید."
@@ -1239,16 +1237,14 @@ msgstr "رشته پهن *str* را در *writer* مینویسد."
1239
1237
msgid"*size* is a number of wide characters. If *size* is equal to ``-1``, call ``wcslen(str)`` to get the string length."
1240
1238
msgstr"*size* تعداد نویسههای پهن است. اگر *size* برابر با ``-1`` باشد، برای بهدست آوردن طول رشته، ``wcslen(str)`` را فراخوانی کنید."
1241
1239
1242
-
#,fuzzy
1243
-
#| msgid "Writer the UCS4 string *str* into *writer*."
1244
1240
msgid"Write the UCS4 string *str* into *writer*."
1245
-
msgstr"رشته UCS4 *str* را در *writer* مینویسد."
1241
+
msgstr"رشتهی UCS4 با نام *str* را در *writer* بنویسید."
1246
1242
1247
1243
msgid"*size* is a number of UCS4 characters."
1248
1244
msgstr"*size* تعداد نویسههای UCS4 است."
1249
1245
1250
1246
msgid"All characters must be in range [U+0000; U+10ffff]. If the string contains invalid characters, the behavior is undefined."
1251
-
msgstr""
1247
+
msgstr"تمام نویسهها باید در محدودهی [U+0000; U+10ffff] باشند. اگر رشته شامل نویسههای نامعتبر باشد، رفتار نامعلوم است."
1252
1248
1253
1249
msgid"Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
1254
1250
msgstr":c:func:`PyObject_Str` را روی *obj* فراخوانی میکند و خروجی را در *writer* مینویسد."
Copy file name to clipboardExpand all lines: howto/remote_debugging.po
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,8 @@ msgstr "برای غیرفعال کردن پشتیبانی از اشکالزد
38
38
msgid"Set the :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` environment variable to ``1`` before starting the interpreter."
39
39
msgstr"متغیر محیطی :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` را پیش از راهاندازی مفسر روی ``1`` تنظیم کنید."
40
40
41
-
#,fuzzy
42
-
#| msgid "Use the :option:`-X disable_remote_debug` command-line option."
43
41
msgid"Use the :option:`-X disable-remote-debug` command-line option."
44
-
msgstr"از گزینهی خط فرمان :option:`-X disable_remote_debug` استفاده کنید."
42
+
msgstr"از گزینهی خط فرمان :option:`-X disable-remote-debug` استفاده کنید."
45
43
46
44
msgid"Compile Python with the :option:`--without-remote-debug` build flag."
47
45
msgstr"پایتون را با پرچم ساخت :option:`--without-remote-debug` کامپایل کنید."
@@ -805,10 +803,8 @@ msgstr "اگر فرایند پایتونِ در حال اشکالزدایی
805
803
msgid"When to use ``PYTHON_DISABLE_REMOTE_DEBUG``"
806
804
msgstr"زمان استفاده از ``PYTHON_DISABLE_REMOTE_DEBUG``"
807
805
808
-
#,fuzzy
809
-
#| msgid "The environment variable :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` (and the equivalent :option:`-X disable_remote_debug` flag) allows operators to disable the in-process side of the protocol as a **defence-in-depth** measure. This may be useful in hardened or sandboxed deployment environments where no debugging or profiling of the process is expected and reducing attack surface is a priority, even though the OS-level privilege checks already prevent unprivileged access."
810
806
msgid"The environment variable :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` (and the equivalent :option:`-X disable-remote-debug` flag) allows operators to disable the in-process side of the protocol as a **defence-in-depth** measure. This may be useful in hardened or sandboxed deployment environments where no debugging or profiling of the process is expected and reducing attack surface is a priority, even though the OS-level privilege checks already prevent unprivileged access."
811
-
msgstr"متغیر محیطی :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` (و پرچم معادل :option:`-X disable_remote_debug`) به راهبران اجازه میدهد سمت درونفرایندی پروتکل را بهعنوان تدبیری برای **دفاع در عمق** غیرفعال کنند. این ممکن است در محیطهای استقرار ایمنسازیشده یا سندباکسشده مفید باشد؛ محیطهایی که انتظار نمیرود هیچگونه اشکالزدایی یا پروفایلگیری از فرایند در آنها انجام شود و کاهش سطح حمله اولویت دارد، حتی اگر بررسیهای امتیاز در سطح سیستمعامل از پیش از دسترسی فاقد امتیاز جلوگیری کنند."
807
+
msgstr"متغیر محیطی :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` (و پرچم معادل آن یعنی :option:`-X disable-remote-debug`) به عملگران اجازه میدهد تا سمت درونفرایندی پروتکل را به عنوان یک راهکار **دفاع در عمق (defence-in-depth)** غیرفعال کنند. این کار ممکن است در محیطهای استقرار سختسازیشده (hardened) یا ایزوله (sandboxed) که هیچگونه اشکالزدایی یا پروفایلگیری از فرایند مورد انتظار نیست و کاهش سطح حمله اولویت دارد، مفید باشد؛ حتی اگر بررسیهای دسترسی در سطح سیستمعامل از قبل مانع دسترسیهای غیرمجاز شده باشند."
812
808
813
809
msgid"Setting this variable does **not** affect other OS-level debugging interfaces (``ptrace``, ``/proc``, ``task_for_pid``, etc.), which remain available according to their own permission models."
814
810
msgstr"تنظیم این متغیر بر سایر رابطهای اشکالزدایی در سطح سیستمعامل تأثیر **نمیگذارد** (``ptrace``، ``/proc``، ``task_for_pid`` و غیره)، که بر اساس مدلهای مجوز خود در دسترس باقی میمانند."
msgid"A :ref:`code object <code-objects>` ``__code__`` containing the compiled code for the annotate function."
453
453
msgstr"یک :ref:`شیء کد <code-objects>` ``__code__`` که شامل کد کامپایلشده برای تابع annotate است."
454
454
455
-
#,fuzzy
456
-
#| msgid "Optional: A tuple of the function's positional defaults ``__kwdefaults__``, if the function represented by ``__code__`` uses any positional defaults."
457
455
msgid"Optional: A tuple of the function's positional defaults ``__defaults__``, if the function represented by ``__code__`` uses any positional defaults."
458
-
msgstr"اختیاری: یک تاپل از پیشفرضهای جایگاهی تابع ``__kwdefaults__``، اگر تابع نشاندادهشده توسط ``__code__`` از هرگونه پیشفرض جایگاهی استفاده کند."
456
+
msgstr"اختیاری: تاپلی از مقادیر پیشفرض جایگاهی تابع ``__defaults__``، در صورتی که تابع نمایهشده توسط ``__code__`` از هرگونه مقادیر پیشفرض جایگاهی استفاده کند."
459
457
460
-
#,fuzzy
461
-
#| msgid "Optional: A dict of the function's keyword defaults ``__defaults__``, if the function represented by ``__code__`` uses any keyword defaults."
462
458
msgid"Optional: A dict of the function's keyword defaults ``__kwdefaults__``, if the function represented by ``__code__`` uses any keyword defaults."
463
-
msgstr"اختیاری: یک دیکشنری از مقادیر پیشفرض کلیدواژهای تابع ``__defaults__``، اگر تابع نشاندادهشده با ``__code__`` از مقادیر پیشفرض کلیدواژهای استفاده کند."
459
+
msgstr"اختیاری: دیکشنری از مقادیر پیشفرض کلیدواژهی تابع ``__kwdefaults__``، در صورتی که تابع نمایهشده توسط ``__code__`` از هرگونه مقادیر پیشفرض کلیدواژهای استفاده کند."
464
460
465
461
msgid"Optional: All other :ref:`function attributes <inspect-types>`."
466
462
msgstr"اختیاری: همهی :ref:`ویژگیهای دیگر تابع <inspect-types>`."
0 commit comments