Skip to content

Commit 4c7447b

Browse files
Rmaawnsepehr-rs
authored andcommitted
Sync and update translations with upstream
1 parent 828c46f commit 4c7447b

16 files changed

Lines changed: 282 additions & 389 deletions

‎builtins/stdtypes.po‎

Lines changed: 73 additions & 70 deletions
Large diffs are not rendered by default.

‎c-api/bytes.po‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,8 @@ msgstr "رابط برمکی (API) نوع :c:type:`PyBytesWriter` را می‌ت
268268
msgid "A bytes writer instance."
269269
msgstr "یک نمونه‌ی نویسنده‌ی بایت (bytes writer)."
270270

271-
#, fuzzy
272-
#| msgid "The API is **not thread safe**: a writer should only be used by a single thread at the same time."
273271
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) یا یک قفل مورد نیاز است."
275273

276274
msgid "The instance must be destroyed by :c:func:`PyBytesWriter_Finish` on success, or :c:func:`PyBytesWriter_Discard` on error."
277275
msgstr "نمونه باید در صورت موفقیت توسط :c:func:`PyBytesWriter_Finish` و در صورت بروز خطا توسط :c:func:`PyBytesWriter_Discard` نابود شود."
@@ -373,10 +371,8 @@ msgstr "بایت‌های تازه تخصیص‌یافته مقداردهی او
373371
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."
374372
msgstr "با اضافه کردن *grow* بایت به اندازه‌ی فعلی نویسنده، اندازه‌ی آن را تغییر دهید. این تابع معمولاً برای دستیابی به کارایی سرشکن‌شده هنگام تغییر اندازه‌ی مکرر، حافظه را بیشتر تخصیص می‌دهد."
375373

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

381377
msgid "Similar to :c:func:`PyBytesWriter_Grow`, but update also the *buf* pointer."
382378
msgstr "مشابه :c:func:`PyBytesWriter_Grow` است، اما اشاره‌گر *buf* را نیز به‌روزرسانی می‌کند."

‎c-api/import.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ msgid "On success, create and return a module object. This module will not be in
249249
msgstr "در صورت موفقیت، یک شیء ماژول ایجاد کرده و برمی‌گرداند. این ماژول مقداردهی اولیه نخواهد شد؛ برای مقداردهی اولیه آن، :c:func:`PyModule_Exec` را فراخوانی کنید. (ایمپورت‌کننده‌های سفارشی باید این کار را در متد :py:meth:`~importlib.abc.Loader.exec_module` خود انجام دهند.)"
250250

251251
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__` ماژول روی نام کامل مشخصات تنظیم می‌شود."
253253

254254
msgid "On error, return NULL with an exception set."
255255
msgstr "در صورت بروز خطا، مقدار NULL را همراه با تنظیم یک استثنا برمی‌گرداند."

‎c-api/unicode.po‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ msgid "UTF-8 representation is created on demand and cached in the Unicode objec
3838
msgstr "بازنمایی UTF-8 به‌هنگام نیاز ایجاد می‌شود و در نهانگاه شیء یونیکد ذخیره می‌شود."
3939

4040
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* مختلف توابع زیر محاسبه نمی‌شود."
4242

4343
msgid "The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 with deprecated APIs. See :pep:`623` for more information."
4444
msgstr "نمایش :c:type:`Py_UNICODE` از پایتون 3.12 همراه با APIهای منسوخ حذف شده است. برای اطلاعات بیشتر به :pep:`623` مراجعه کنید."
@@ -106,13 +106,11 @@ msgstr "مقدار *kind* و اشاره‌گر *data* باید به ترتیب
106106
msgid "The function performs no checks for any of its requirements, and is intended for usage in loops."
107107
msgstr "این تابع هیچ بررسی‌ای برای هیچ‌یک از نیازمندی‌های خود انجام نمی‌دهد و برای استفاده در حلقه‌ها در نظر گرفته شده است."
108108

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."
111109
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` به دست می‌آید). هیچ بررسی انجام نمی‌شود."
113111

114112
msgid "Accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
115-
msgstr ""
113+
msgstr "خواندن نویسه‌ی تهی پایانی در اندیس :c:func:`PyUnicode_GetLength` را بپذیرید."
116114

117115
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."
118116
msgstr "یک نویسه از شیء یونیکد *unicode* می‌خواند که باید در نمایش «کانونیکال» باشد. اگر چندین خواندن متوالی انجام می‌دهید، این کارایی کمتری نسبت به :c:func:`PyUnicode_READ` دارد."
@@ -262,7 +260,7 @@ msgid "If necessary, the input *buffer* is copied and transformed into the canon
262260
msgstr "در صورت نیاز، *بافر* ورودی کپی شده و به نمایش کانونیکال تبدیل می‌شود. برای مثال، اگر *بافر* یک رشته‌ی UCS4 باشد (:c:macro:`PyUnicode_4BYTE_KIND`) و تنها شامل نقطه‌کدهایی در محدوده‌ی UCS1 باشد، به UCS1 تبدیل می‌شود (:c:macro:`PyUnicode_1BYTE_KIND`)."
263261

264262
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` باشد و رشته شامل نویسه‌های نامعتبر باشد، رفتار نامعلوم است."
266264

267265
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."
268266
msgstr "یک شیء یونیکد از بافر نویسه *str* ایجاد می‌کند. بایت‌ها به‌عنوان کدگذاری‌شده با UTF-8 تفسیر می‌شوند. بافر در شیء جدید کپی می‌شود. مقدار بازگشتی ممکن است یک شیء مشترک باشد، یعنی تغییر داده‌ها مجاز نیست."
@@ -592,7 +590,7 @@ msgid "On error, set an exception and return ``-1``."
592590
msgstr "در صورت خطا، یک استثنا تنظیم شده و ``-1`` بازگردانده می‌شود."
593591

594592
msgid "The length does not count the trailing null character."
595-
msgstr ""
593+
msgstr "طول، نویسه‌ی پایانی تهی را حساب نمی‌کند."
596594

597595
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."
598596
msgstr "نویسه‌ها را از یک شیء یونیکد به شیء یونیکد دیگر کپی می‌کند. این تابع در صورت نیاز تبدیل نویسه‌ها را انجام می‌دهد و در صورت امکان به :c:func:`!memcpy` روی می‌آورد. در صورت خطا ``-1`` برمی‌گرداند و یک استثنا تنظیم می‌کند، در غیر این صورت تعداد نویسه‌های کپی‌شده را برمی‌گرداند."
@@ -634,7 +632,7 @@ msgid "Return character on success, ``-1`` on error with an exception set."
634632
msgstr "در صورت موفقیت نویسه و در صورت خطا ``-1`` را همراه با استثنای تنظیم‌شده برمی‌گرداند."
635633

636634
msgid "Do not accept reading the trailing null character at index :c:func:`PyUnicode_GetLength`."
637-
msgstr ""
635+
msgstr "خواندن نویسه‌ی پایانی تهی در اندیس :c:func:`PyUnicode_GetLength` پذیرفته نمی‌شود."
638636

639637
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``."
640638
msgstr "زیررشته‌ای از *unicode* را برمی‌گرداند که از اندیس نویسه‌ی *start* (شامل) تا اندیس نویسه‌ی *end* (بدون) است. اندیس‌های منفی پشتیبانی نمی‌شوند. در صورت خطا، یک استثنا تنظیم کرده و ``NULL`` را برمی‌گرداند."
@@ -1186,7 +1184,7 @@ msgid "The instance must be destroyed by :c:func:`PyUnicodeWriter_Finish` on suc
11861184
msgstr "نمونه باید در صورت موفقیت توسط :c:func:`PyUnicodeWriter_Finish` یا در صورت خطا توسط :c:func:`PyUnicodeWriter_Discard` نابود شود."
11871185

11881186
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) یا قفل نیاز است."
11901188

11911189
msgid "Create a Unicode writer instance."
11921190
msgstr "یک نمونه از نویسنده یونیکد ایجاد کنید."
@@ -1239,16 +1237,14 @@ msgstr "رشته پهن *str* را در *writer* می‌نویسد."
12391237
msgid "*size* is a number of wide characters. If *size* is equal to ``-1``, call ``wcslen(str)`` to get the string length."
12401238
msgstr "*size* تعداد نویسه‌های پهن است. اگر *size* برابر با ``-1`` باشد، برای به‌دست آوردن طول رشته، ``wcslen(str)`` را فراخوانی کنید."
12411239

1242-
#, fuzzy
1243-
#| msgid "Writer the UCS4 string *str* into *writer*."
12441240
msgid "Write the UCS4 string *str* into *writer*."
1245-
msgstr "رشته UCS4 *str* را در *writer* می‌نویسد."
1241+
msgstr "رشته‌ی UCS4 با نام *str* را در *writer* بنویسید."
12461242

12471243
msgid "*size* is a number of UCS4 characters."
12481244
msgstr "*size* تعداد نویسه‌های UCS4 است."
12491245

12501246
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] باشند. اگر رشته شامل نویسه‌های نامعتبر باشد، رفتار نامعلوم است."
12521248

12531249
msgid "Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
12541250
msgstr ":c:func:`PyObject_Str` را روی *obj* فراخوانی می‌کند و خروجی را در *writer* می‌نویسد."

‎howto/remote_debugging.po‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ msgstr "برای غیرفعال کردن پشتیبانی از اشکال‌زد
3838
msgid "Set the :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` environment variable to ``1`` before starting the interpreter."
3939
msgstr "متغیر محیطی :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` را پیش از راه‌اندازی مفسر روی ``1`` تنظیم کنید."
4040

41-
#, fuzzy
42-
#| msgid "Use the :option:`-X disable_remote_debug` command-line option."
4341
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` استفاده کنید."
4543

4644
msgid "Compile Python with the :option:`--without-remote-debug` build flag."
4745
msgstr "پایتون را با پرچم ساخت :option:`--without-remote-debug` کامپایل کنید."
@@ -805,10 +803,8 @@ msgstr "اگر فرایند پایتونِ در حال اشکال‌زدایی
805803
msgid "When to use ``PYTHON_DISABLE_REMOTE_DEBUG``"
806804
msgstr "زمان استفاده از ``PYTHON_DISABLE_REMOTE_DEBUG``"
807805

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."
810806
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) که هیچ‌گونه اشکال‌زدایی یا پروفایل‌گیری از فرایند مورد انتظار نیست و کاهش سطح حمله اولویت دارد، مفید باشد؛ حتی اگر بررسی‌های دسترسی در سطح سیستم‌عامل از قبل مانع دسترسی‌های غیرمجاز شده باشند."
812808

813809
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."
814810
msgstr "تنظیم این متغیر بر سایر رابط‌های اشکال‌زدایی در سطح سیستم‌عامل تأثیر **نمی‌گذارد** (``ptrace``، ``/proc``، ``task_for_pid`` و غیره)، که بر اساس مدل‌های مجوز خود در دسترس باقی می‌مانند."

‎library/annotationlib.po‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,15 +452,11 @@ msgstr "یک ``__call__`` فراخوانی‌پذیر با امضای ``__call__
452452
msgid "A :ref:`code object <code-objects>` ``__code__`` containing the compiled code for the annotate function."
453453
msgstr "یک :ref:`شیء کد <code-objects>` ``__code__`` که شامل کد کامپایل‌شده برای تابع annotate است."
454454

455-
#, fuzzy
456-
#| msgid "Optional: A tuple of the function's positional defaults ``__kwdefaults__``, if the function represented by ``__code__`` uses any positional defaults."
457455
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__`` از هرگونه مقادیر پیش‌فرض جایگاهی استفاده کند."
459457

460-
#, fuzzy
461-
#| msgid "Optional: A dict of the function's keyword defaults ``__defaults__``, if the function represented by ``__code__`` uses any keyword defaults."
462458
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__`` از هرگونه مقادیر پیش‌فرض کلیدواژه‌ای استفاده کند."
464460

465461
msgid "Optional: All other :ref:`function attributes <inspect-types>`."
466462
msgstr "اختیاری: همه‌ی :ref:`ویژگی‌های دیگر تابع <inspect-types>`."

0 commit comments

Comments
 (0)