Skip to content

Commit 4fc71f0

Browse files
Rmaawnsepehr-rs
authored andcommitted
Sync and update translations with upstream
1 parent 3d65817 commit 4fc71f0

49 files changed

Lines changed: 483 additions & 920 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎c-api/code.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ msgid "Enumeration of possible code object watcher events: - ``PY_CODE_EVENT_CRE
113113
msgstr "شمارش رویدادهای ممکن دیده‌بان شیء کد: - ``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
114114

115115
msgid "Apply the macro *V* to each suffix of :c:type:`PyCodeEvent` constants. Currently expands to ``V(CREATE) V(DESTROY)``. The macro *V* must accept one event name and supply any punctuation needed between expansions."
116-
msgstr ""
116+
msgstr "ماکرو *V* را روی هر پسوند از ثاب‌ت‌های :c:type:`PyCodeEvent` اعمال کنید. در حال حاضر به صورت ``V(CREATE) V(DESTROY)`` گسترش می‌یابد. ماکرو *V* باید یک نام رویداد را بپذیرد و هرگونه علائم نگارشی مورد نیاز بین گسترش‌ها را فراهم کند."
117117

118118
msgid "Type of a code object watcher callback function."
119119
msgstr "نوع تابع کال‌بک دیده‌بان شیء کد."

‎c-api/conversion.po‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ msgid "Return the uppercase equivalent of the character *c*."
188188
msgstr "معادل بزرگ‌نویسی نویسه‌ی *c* را برمی‌گرداند."
189189

190190
msgid "Bit masks"
191-
msgstr ""
191+
msgstr "بیت‌ماسک‌ها"
192192

193193
msgid "The following constants are bit masks used by the character classification macros above:"
194-
msgstr ""
194+
msgstr "ثابت‌های زیر بیت‌ماسک‌هایی هستند که توسط ماکروهای دسته‌بندی نویسه در بالا استفاده می‌شوند:"
195195

196196
msgid "Values used internally by the ``Py_IS*`` classification macros above. Exposed for backwards compatibility only."
197-
msgstr ""
197+
msgstr "مقادیر استفاده‌شده‌ی داخلی توسط ماکروهای دسته‌بندی ``Py_IS*`` در بالا. فقط برای سازگاری با نسخه‌های قبلی در معرض دید قرار گرفته‌اند."

‎c-api/descriptor.po‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,19 @@ msgid "The type object for method descriptor objects created from :c:type:`PyMet
6060
msgstr "شیء نوع برای اشیاء توصیف‌گر متد که از ساختارهای :c:type:`PyMethodDef` ایجاد شده‌اند. این توصیف‌گرها توابع C را به‌عنوان متدهایی روی یک نوع در دسترس قرار می‌دهند و معادل اشیاء :class:`types.MethodDescriptorType` در پایتون هستند."
6161

6262
msgid "The type object for wrapper descriptor objects created by :c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`."
63-
msgstr ""
63+
msgstr "شیء نوع داده برای اشیای توصیف‌گر پوششی ایجادشده توسط :c:func:`PyDescr_NewWrapper` و :c:func:`PyWrapper_New`."
6464

65-
#, fuzzy
66-
#| msgid "Wrapper descriptors expose special methods implemented by type slots. This is the same kind of descriptor that CPython creates for slot-based special methods such as ``__repr__`` or ``__add__``, and it appears in Python as a :class:`types.WrapperDescriptorType` object."
6765
msgid "Wrapper descriptors are used internally to expose special methods such as ``__repr__`` or ``__add__``, which are implemented by type slots. The type is exposed in Python as :class:`types.WrapperDescriptorType`."
68-
msgstr "توصیف‌گرهای پوششی، متدهای ویژه‌ای را که توسط جایگاه‌های نوع پیاده‌سازی شده‌اند، در دسترس قرار می‌دهند. این همان نوع توصیف‌گری است که سی‌پایتون برای متدهای ویژه‌ی مبتنی بر جایگاه مانند ``__repr__`` یا ``__add__`` ایجاد می‌کند و در پایتون به‌صورت یک شیء :class:`types.WrapperDescriptorType` ظاهر می‌شود."
66+
msgstr "توصیف‌گرهای پوششی به صورت داخلی برای نمایش متدهای ویژه‌ای مانند ``__repr__`` یا ``__add__`` استفاده می‌شوند که توسط جایگاه‌های نوع پیاده‌سازی شده‌اند. این نوع در پایتون به صورت :class:`types.WrapperDescriptorType` نمایش داده می‌شود."
6967

7068
msgid "Create a new wrapper descriptor of type :c:var:`PyWrapperDescr_Type`."
71-
msgstr ""
69+
msgstr "یک توصیف‌گر پوششی جدید از نوع :c:var:`PyWrapperDescr_Type` ایجاد کنید."
7270

7371
msgid "This function is meant for internal use only; it and related API (``struct wrapperbase`` and the ``PyWrapperFlag_KEYWORDS`` flag) are exposed publicly for backwards compatibility reasons."
74-
msgstr ""
72+
msgstr "این تابع فقط برای استفاده‌ی داخلی در نظر گرفته شده است؛ آن و APIهای مرتبط (``struct wrapperbase`` و پرچم ``PyWrapperFlag_KEYWORDS``) به دلایل سازگاری با نسخه‌های پیشین به صورت عمومی ارائه شده‌اند."
7573

7674
msgid "See :c:func:`PyCMethod_New` for wrapping a C function."
77-
msgstr ""
75+
msgstr "برای بسته‌بندی یک تابع C به :c:func:`PyCMethod_New` مراجعه کنید."
7876

7977
msgid "Create a new class method descriptor for extension type *type* from the :c:type:`PyMethodDef` structure *method*."
8078
msgstr "یک توصیف‌گر متد کلاس جدید برای نوع توسعه‌ای *type* از ساختار :c:type:`PyMethodDef` به نام *method* ایجاد می‌کند."
@@ -95,16 +93,16 @@ msgid "On success, return a :term:`strong reference` to the wrapper object. Retu
9593
msgstr "در صورت موفقیت، یک :term:`ارجاع قوی <strong reference>` به شیء پوششی برمی‌گرداند. در صورت شکل، ``NULL`` را همراه با یک استثنای تنظیم‌شده برمی‌گرداند."
9694

9795
msgid "Return a :term:`borrowed reference` to the type that the descriptor *descr* belongs to. This is accessible as :attr:`~object.__objclass__` in Python."
98-
msgstr ""
96+
msgstr "یک :term:`ارجاع امانتی <borrowed reference>` به نوعی که توصیف‌گر *descr* به آن تعلق دارد، برگردانید. این مقدار در پایتون به عنوان :attr:`~object.__objclass__` قابل دسترسی است."
9997

10098
msgid "*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions (an instance of :c:var:`PyMethodDescr_Type`, :c:var:`PyClassMethodDescr_Type`, :c:var:`PyMemberDescr_Type`, :c:var:`PyGetSetDescr_Type`, or :c:var:`PyWrapperDescr_Type`). If the passed descriptor is not an instance of one of these types, the behavior is undefined."
101-
msgstr ""
99+
msgstr "*descr* باید یک شیء توصیف‌گر باشد که توسط یکی از توابع ``PyDescr_New*`` ایجاد شده است (یک نمونه از :c:var:`PyMethodDescr_Type`، :c:var:`PyClassMethodDescr_Type`، :c:var:`PyMemberDescr_Type`، :c:var:`PyGetSetDescr_Type` یا :c:var:`PyWrapperDescr_Type`). اگر توصیف‌گر ارسال‌شده نمونه‌ای از یکی از این نوع‌ها نباشد، رفتار نامشخص خواهد بود."
102100

103101
msgid "Return the name of the descriptor *descr* as a :term:`borrowed reference` to a :class:`str` object. This is available as :attr:`~definition.__name__` in Python."
104-
msgstr ""
102+
msgstr "نام توصیف‌گر *descr* را به عنوان یک :term:`ارجاع امانتی <borrowed reference>` به یک شیء :class:`str` برگردانید. این مقدار در پایتون به عنوان :attr:`~definition.__name__` در دسترس است."
105103

106104
msgid "*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions. If not, the behavior is undefined."
107-
msgstr ""
105+
msgstr "*descr* باید یک شیء توصیف‌گر باشد که توسط یکی از توابع ``PyDescr_New*`` ایجاد شده است. در غیر این صورت، رفتار نامشخص خواهد بود."
108106

109107
msgid "This is a macro including the common fields for a descriptor object."
110108
msgstr "این یک کلان‌دستور است که شامل فیلدهای مشترک برای یک شیء توصیف‌گر است."

‎c-api/dict.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ msgid "Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``
308308
msgstr "برشمردن رویدادهای ممکن دیده‌بان دیکشنری: ``PyDict_EVENT_ADDED``، ``PyDict_EVENT_MODIFIED``، ``PyDict_EVENT_DELETED``، ``PyDict_EVENT_CLONED``، ``PyDict_EVENT_CLEARED`` یا ``PyDict_EVENT_DEALLOCATED``."
309309

310310
msgid "Apply the macro *V* to each suffix of :c:type:`PyDict_WatchEvent` constants. Currently expands to ``V(ADDED) V(MODIFIED) V(DELETED) V(CLONED) V(CLEARED) V(DEALLOCATED)``. The macro *V* must accept one event name and supply any punctuation needed between expansions."
311-
msgstr ""
311+
msgstr "ماکرو *V* را روی هر پسوند از ثابت‌های :c:type:`PyDict_WatchEvent` اعمال کنید. در حال حاضر به صورت ``V(ADDED) V(MODIFIED) V(DELETED) V(CLONED) V(CLEARED) V(DEALLOCATED)`` گسترش می‌یابد. ماکرو *V* باید یک نام رویداد را بپذیرد و هرگونه علائم نگارشی مورد نیاز بین گسترش‌ها را فراهم کند."
312312

313313
msgid "Type of a dict watcher callback function."
314314
msgstr "نوع تابع کال‌بک ناظر دیکشنری."

‎c-api/exceptions.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ msgid "For information about warning control, see the documentation for the :mod
203203
msgstr "برای کسب اطلاعات درباره‌ی کنترل هشدارها، به مستندات ماژول :mod:`warnings` و گزینه‌ی :option:`-W` در مستندات خط فرمان مراجعه کنید. برای کنترل هشدارها API زبان C وجود ندارد."
204204

205205
msgid "Equivalent to :c:expr:`PyErr_WarnEx(category, message, 1)`."
206-
msgstr ""
206+
msgstr "معادل :c:expr:`PyErr_WarnEx(category, message, 1)`."
207207

208208
msgid "Issue a warning message with explicit control over all warning attributes. This is a straightforward wrapper around the Python function :func:`warnings.warn_explicit`; see there for more information. The *module* and *registry* arguments may be set to ``NULL`` to get the default effect described there."
209209
msgstr "یک پیام هشدار با کنترل صریح بر تمام ویژگی‌های هشدار صادر می‌کند. این پوششی ساده در اطراف تابع پایتونی :func:`warnings.warn_explicit` است؛ برای اطلاعات بیشتر به آنجا مراجعه کنید. آرگومان‌های *module* و *registry* می‌توانند روی ``NULL`` تنظیم شوند تا اثر پیش‌فرضِ توصیف‌شده در آنجا به دست آید."

‎c-api/extension-modules.po‎

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -298,31 +298,23 @@ msgstr "در مقداردهی اولیه‌ی تک‌مرحله‌ای، :ref:`
298298
msgid "Single-phase initialization differs from the :ref:`default <multi-phase-initialization>` in the following ways:"
299299
msgstr "مقداردهی اولیه تک‌فازی در موارد زیر با :ref:`پیش‌فرض <multi-phase-initialization>` تفاوت دارد:"
300300

301-
#, fuzzy
302-
#| msgid "Single-phase modules are, or rather *contain*, “singletons”."
303301
msgid "Single-phase modules with :c:member:`PyModuleDef.m_size` set to -1 are, or rather *contain*, “singletons”."
304-
msgstr "ماژول‌های تک‌فاز (single-phase) «تک‌نمونه» هستند، یا به بیان دقیق‌تر، *حاوی* «تک‌نمونه» هستند."
302+
msgstr "ماژول‌های تک‌فازی که :c:member:`PyModuleDef.m_size` آن‌ها روی 1- تنظیم شده است، «تک‌نمونه» هستند یا بهتر است بگوییم آن‌ها را «در بر دارند»."
305303

306-
#, fuzzy
307-
#| msgid "When the module is first initialized, Python saves the contents of the module's ``__dict__`` (that is, typically, the module's functions and types)."
308304
msgid "When such a module is first initialized, Python saves the contents of the module's ``__dict__`` (that is, typically, the module's functions and types)."
309-
msgstr "هنگامی که ماژول برای نخستین بار مقداردهی اولیه می‌شود، پایتون محتویات ``__dict__`` ماژول را ذخیره می‌کند (یعنی، به‌طور معمول، توابع و نوع‌های ماژول)."
305+
msgstr "هنگامی که چنین ماژولی برای اولین بار مقداردهی اولیه می‌شود، پایتون محتویات ``__dict__`` ماژول (یعنی معمولاً توابع و انواع ماژول) را ذخیره می‌کند."
310306

311-
#, fuzzy
312-
#| msgid "For subsequent imports, Python does not call the initialization function again. Instead, it creates a new module object with a new ``__dict__``, and copies the saved contents to it. For example, given a single-phase module ``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and an exception class ``error``:"
313307
msgid "For subsequent imports, Python does not call the initialization function again. Instead, it creates a new module object with a new ``__dict__``, and copies the saved contents to it. Modules are matched to the saved contents by a (*module_name*, *file_name*) tuple where:"
314-
msgstr "برای ایمپورت‌های بعدی، پایتون تابع مقداردهی اولیه را دوباره فراخوانی نمی‌کند. در عوض، شیء ماژول جدیدی با ``__dict__`` جدید می‌سازد و محتویات ذخیره‌شده را در آن کپی می‌کند. برای مثال، با فرض یک ماژول تک‌فاز ``_testsinglephase`` [#testsinglephase]_ که تابعی به نام ``sum`` و کلاس استثنایی به نام ``error`` را تعریف می‌کند:"
308+
msgstr "برای ایمپورت‌های بعدی، پایتون دوباره تابع مقداردهی اولیه را فراخوانی نمی‌کند. در عوض، یک شیء ماژول جدید با یک ``__dict__`` جدید ایجاد می‌کند و محتویات ذخیره‌شده را در آن کپی می‌کند. ماژول‌ها با استفاده از یک تاپل (*module_name*, *file_name*) با محتویات ذخیره‌شده مطابقت داده می‌شوند که در آن:"
315309

316310
msgid "*module_name* is the module's full dotted name, taken from :py:attr:`ModuleSpec.name <importlib.machinery.ModuleSpec.name>` (or the equivalent argument of the importing function). Note that names that the initialization function uses to create the module (for example, :c:member:`PyModuleDef.m_name`) are not taken into account."
317-
msgstr ""
311+
msgstr "*module_name* نام نقطه‌گذاری‌شده‌ی کامل ماژول است که از :py:attr:`ModuleSpec.name <importlib.machinery.ModuleSpec.name>` (یا آرگومان معادل تابع ایمپورت‌کننده) گرفته شده است. توجه داشته باشید که نام‌هایی که تابع مقداردهی اولیه برای ایجاد ماژول استفاده می‌کند (به عنوان مثال :c:member:`PyModuleDef.m_name`) در نظر گرفته نمی‌شوند."
318312

319313
msgid "*file_name* is the extension's file name. It is unset for modules not loaded from a file, such as built-ins and modules added with :c:func:`PyImport_CreateModuleFromInitfunc` or :c:func:`PyImport_AppendInittab`."
320-
msgstr ""
314+
msgstr "*file_name* نام پرونده‌ی افزونه است. این مقدار برای ماژول‌هایی که از یک پرونده بارگذاری نمی‌شوند، مانند موارد توکار و ماژول‌هایی که با :c:func:`PyImport_CreateModuleFromInitfunc` یا :c:func:`PyImport_AppendInittab` اضافه شده‌اند، تنظیم نمی‌شود."
321315

322-
#, fuzzy
323-
#| msgid "For subsequent imports, Python does not call the initialization function again. Instead, it creates a new module object with a new ``__dict__``, and copies the saved contents to it. For example, given a single-phase module ``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and an exception class ``error``:"
324316
msgid "As part of the first initialization, Python also adds the module to :data:`sys.modules` under its name. For example, given a single-phase module ``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and an exception class ``error``:"
325-
msgstr "برای ایمپورت‌های بعدی، پایتون تابع مقداردهی اولیه را دوباره فراخوانی نمی‌کند. در عوض، شیء ماژول جدیدی با ``__dict__`` جدید می‌سازد و محتویات ذخیره‌شده را در آن کپی می‌کند. برای مثال، با فرض یک ماژول تک‌فاز ``_testsinglephase`` [#testsinglephase]_ که تابعی به نام ``sum`` و کلاس استثنایی به نام ``error`` را تعریف می‌کند:"
317+
msgstr "به عنوان بخشی از مقداردهی اولیه‌ی اول، پایتون همچنین ماژول را با نام خودش به :data:`sys.modules` اضافه می‌کند. برای مثال، با فرض یک ماژول تک‌فازی ``_testsinglephase`` [#testsinglephase]_ که یک تابع ``sum`` و یک کلاس استثنای ``error`` را تعریف می‌کند:"
326318

327319
msgid ""
328320
">>> import sys\n"
@@ -355,15 +347,13 @@ msgid "The exact behavior should be considered a CPython implementation detail."
355347
msgstr "رفتار دقیق باید به‌عنوان جزئیات پیاده‌سازی سی‌پایتون در نظر گرفته شود."
356348

357349
msgid "For single-phase modules with non-negative :c:member:`PyModuleDef.m_size`, Python may cache a pointer to the initialization function under the (*module_name*, *file_name*) key as for ``m_size == -1``."
358-
msgstr ""
350+
msgstr "برای ماژول‌های تک‌فازی با :c:member:`PyModuleDef.m_size` نامنفی، پایتون ممکن است یک اشاره‌گر به تابع مقداردهی اولیه را تحت کلید (*module_name*, *file_name*) درست مانند حالتی که ``m_size == -1`` است، نهانگاه کند."
359351

360352
msgid "Subsequent imports that specify a different initialization function (for example, using :c:func:`PyImport_CreateModuleFromInitfunc`) may call either the cached function or the provided \"new\" one."
361-
msgstr ""
353+
msgstr "ایمپورت‌های بعدی که تابع مقداردهی اولیه‌ی متفاوتی را مشخص می‌کنند (برای مثال با استفاده از :c:func:`PyImport_CreateModuleFromInitfunc`) ممکن است یا تابع نهانگاه‌شده یا تابع «جدید» فراهم‌شده را فراخوانی کنند."
362354

363-
#, fuzzy
364-
#| msgid "The exact behavior should be considered a CPython implementation detail."
365355
msgid "The exact behavior should again be considered a CPython implementation detail."
366-
msgstr "رفتار دقیق باید به‌عنوان جزئیات پیاده‌سازی سی‌پایتون در نظر گرفته شود."
356+
msgstr "رفتار دقیق را باید بار دیگر از جزئیات پیاده‌سازی سی‌پایتون دانست."
367357

368358
msgid "To work around the fact that ``PyInit_modulename`` does not take a *spec* argument, some state of the import machinery is saved and applied to the first suitable module created during the ``PyInit_modulename`` call. Specifically, when a sub-module is imported, this mechanism prepends the parent package name to the name of the module."
369359
msgstr "برای دور زدن این واقعیت که ``PyInit_modulename`` آرگومان *مشخصات* نمی‌پذیرد، بخشی از وضعیت سازوکار ایمپورت ذخیره می‌شود و بر نخستین ماژول مناسب ایجاد‌شده در طول فراخوانی ``PyInit_modulename`` اعمال می‌شود. به‌طور خاص، هنگامی که یک زیرماژول ایمپورت می‌شود، این سازوکار نام بسته والد را به ابتدای نام ماژول می‌افزاید."

0 commit comments

Comments
 (0)