Skip to content

Commit 3d9d960

Browse files
chore: sync msgids with CPython 3.15
1 parent f237b42 commit 3d9d960

5 files changed

Lines changed: 133 additions & 19 deletions

File tree

‎builtins/exceptions.po‎

Lines changed: 79 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-10-08 09:24+0330\n"
14+
"POT-Creation-Date: 2026-11-01 04:11+0000\n"
1515
"PO-Revision-Date: 2026-09-19 20:08+0330\n"
1616
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1717
"Language-Team: none\n"
@@ -225,7 +225,9 @@ msgstr "در ویندوز، این به شما کد خطای بومی ویندو
225225
msgid "Under Windows, if the *winerror* constructor argument is an integer, the :attr:`.errno` attribute is determined from the Windows error code, and the *errno* argument is ignored. On other platforms, the *winerror* argument is ignored, and the :attr:`winerror` attribute does not exist."
226226
msgstr "در ویندوز، اگر آرگومان سازنده‌ی *winerror* یک عدد صحیح باشد، ویژگی :attr:`.errno` از کد خطای ویندوز تعیین می‌شود و آرگومان *errno* نادیده گرفته می‌شود. در سکوهای دیگر، آرگومان *winerror* نادیده گرفته می‌شود و ویژگی :attr:`winerror` وجود ندارد."
227227

228-
msgid "The corresponding error message, as provided by the operating system. It is formatted by the C functions :c:func:`!perror` under POSIX, and :c:func:`!FormatMessage` under Windows."
228+
#, fuzzy
229+
#| msgid "The corresponding error message, as provided by the operating system. It is formatted by the C functions :c:func:`!perror` under POSIX, and :c:func:`!FormatMessage` under Windows."
230+
msgid "The corresponding error message, as provided by the operating system. Under POSIX, it is obtained using the C functions :c:func:`!strerror` or :c:func:`!strerror_r`; under Windows, :c:func:`!FormatMessage` is used."
229231
msgstr "پیام خطای متناظر، همان‌طور که توسط سیستم‌عامل ارائه می‌شود. این پیام توسط توابع C :c:func:`!perror` در POSIX و :c:func:`!FormatMessage` در ویندوز قالب‌بندی می‌شود."
230232

231233
msgid "For exceptions that involve a file system path (such as :func:`open` or :func:`os.unlink`), :attr:`filename` is the file name passed to the function. For functions that involve two file system paths (such as :func:`os.rename`), :attr:`filename2` corresponds to the second file name passed to the function."
@@ -327,9 +329,6 @@ msgstr "شماره سطری در پرونده که خطای رخ‌داده در
327329
msgid "The column in the end line where the error occurred finishes. This is 1-indexed: the first character in the line has an ``offset`` of 1."
328330
msgstr "ستونی در خط پایانی که خطا در آن پایان می‌یابد. این مقدار ۱-اندیس‌دار است: نخستین نویسه‌ی خط دارای ``offset`` برابر با ۱ است."
329331

330-
msgid "For errors in f-string fields, the message is prefixed by \"f-string: \" and the offsets are offsets in a text constructed from the replacement expression. For example, compiling f'Bad {a b} field' results in this args attribute: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
331-
msgstr "برای خطاهای فیلدهای اف‌استرینگ، پیام با پیشوند \"f-string: \" آغاز می‌شود و آفست‌ها، آفست‌هایی در متنی هستند که از عبارت جایگزینی ساخته می‌شود. برای مثال، کامپایل کردن f'Bad {a b} field' منجر به این ویژگی args می‌شود: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
332-
333332
msgid "Added the :attr:`end_lineno` and :attr:`end_offset` attributes."
334333
msgstr "ویژگی‌های :attr:`end_lineno` و :attr:`end_offset` افزوده شدند."
335334

@@ -672,6 +671,77 @@ msgstr "سلسله‌مراتب استثنا"
672671
msgid "The class hierarchy for built-in exceptions is:"
673672
msgstr "سلسله‌مراتب کلاس برای استثناهای توکار به صورت زیر است:"
674673

674+
#, fuzzy
675+
#| msgid ""
676+
#| "BaseException\n"
677+
#| " ├── BaseExceptionGroup\n"
678+
#| " ├── GeneratorExit\n"
679+
#| " ├── KeyboardInterrupt\n"
680+
#| " ├── SystemExit\n"
681+
#| " └── Exception\n"
682+
#| " ├── ArithmeticError\n"
683+
#| " │ ├── FloatingPointError\n"
684+
#| " │ ├── OverflowError\n"
685+
#| " │ └── ZeroDivisionError\n"
686+
#| " ├── AssertionError\n"
687+
#| " ├── AttributeError\n"
688+
#| " ├── BufferError\n"
689+
#| " ├── EOFError\n"
690+
#| " ├── ExceptionGroup [BaseExceptionGroup]\n"
691+
#| " ├── ImportError\n"
692+
#| " │ └── ImportCycleError\n"
693+
#| " │ └── ModuleNotFoundError\n"
694+
#| " ├── LookupError\n"
695+
#| " │ ├── IndexError\n"
696+
#| " │ └── KeyError\n"
697+
#| " ├── MemoryError\n"
698+
#| " ├── NameError\n"
699+
#| " │ └── UnboundLocalError\n"
700+
#| " ├── OSError\n"
701+
#| " │ ├── BlockingIOError\n"
702+
#| " │ ├── ChildProcessError\n"
703+
#| " │ ├── ConnectionError\n"
704+
#| " │ │ ├── BrokenPipeError\n"
705+
#| " │ │ ├── ConnectionAbortedError\n"
706+
#| " │ │ ├── ConnectionRefusedError\n"
707+
#| " │ │ └── ConnectionResetError\n"
708+
#| " │ ├── FileExistsError\n"
709+
#| " │ ├── FileNotFoundError\n"
710+
#| " │ ├── InterruptedError\n"
711+
#| " │ ├── IsADirectoryError\n"
712+
#| " │ ├── NotADirectoryError\n"
713+
#| " │ ├── PermissionError\n"
714+
#| " │ ├── ProcessLookupError\n"
715+
#| " │ └── TimeoutError\n"
716+
#| " ├── ReferenceError\n"
717+
#| " ├── RuntimeError\n"
718+
#| " │ ├── NotImplementedError\n"
719+
#| " │ ├── PythonFinalizationError\n"
720+
#| " │ └── RecursionError\n"
721+
#| " ├── StopAsyncIteration\n"
722+
#| " ├── StopIteration\n"
723+
#| " ├── SyntaxError\n"
724+
#| " │ └── IndentationError\n"
725+
#| " │ └── TabError\n"
726+
#| " ├── SystemError\n"
727+
#| " ├── TypeError\n"
728+
#| " ├── ValueError\n"
729+
#| " │ └── UnicodeError\n"
730+
#| " │ ├── UnicodeDecodeError\n"
731+
#| " │ ├── UnicodeEncodeError\n"
732+
#| " │ └── UnicodeTranslateError\n"
733+
#| " └── Warning\n"
734+
#| " ├── BytesWarning\n"
735+
#| " ├── DeprecationWarning\n"
736+
#| " ├── EncodingWarning\n"
737+
#| " ├── FutureWarning\n"
738+
#| " ├── ImportWarning\n"
739+
#| " ├── PendingDeprecationWarning\n"
740+
#| " ├── ResourceWarning\n"
741+
#| " ├── RuntimeWarning\n"
742+
#| " ├── SyntaxWarning\n"
743+
#| " ├── UnicodeWarning\n"
744+
#| " └── UserWarning\n"
675745
msgid ""
676746
"BaseException\n"
677747
" ├── BaseExceptionGroup\n"
@@ -689,7 +759,7 @@ msgid ""
689759
" ├── EOFError\n"
690760
" ├── ExceptionGroup [BaseExceptionGroup]\n"
691761
" ├── ImportError\n"
692-
" │ └── ImportCycleError\n"
762+
" │ ├── ImportCycleError\n"
693763
" │ └── ModuleNotFoundError\n"
694764
" ├── LookupError\n"
695765
" │ ├── IndexError\n"
@@ -848,3 +918,6 @@ msgstr "ماژول"
848918

849919
msgid "errno"
850920
msgstr "errno"
921+
922+
#~ msgid "For errors in f-string fields, the message is prefixed by \"f-string: \" and the offsets are offsets in a text constructed from the replacement expression. For example, compiling f'Bad {a b} field' results in this args attribute: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."
923+
#~ msgstr "برای خطاهای فیلدهای اف‌استرینگ، پیام با پیشوند \"f-string: \" آغاز می‌شود و آفست‌ها، آفست‌هایی در متنی هستند که از عبارت جایگزینی ساخته می‌شود. برای مثال، کامپایل کردن f'Bad {a b} field' منجر به این ویژگی args می‌شود: ('f-string: ...', ('', 1, 2, '(a b)\\n', 1, 5))."

‎builtins/functions.po‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-10-31 04:10+0000\n"
14+
"POT-Creation-Date: 2026-11-01 04:11+0000\n"
1515
"PO-Revision-Date: 2026-09-24 07:55+0330\n"
1616
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1717
"Language-Team: none\n"
@@ -724,7 +724,9 @@ msgstr "وقتی ``exec`` دو شیء جداگانه را به‌عنوان *glo
724724
msgid "If the *globals* dictionary does not contain a value for the key ``__builtins__``, a reference to the dictionary of the built-in module :mod:`builtins` is inserted under that key. Overriding ``__builtins__`` can be used to restrict or change the available names, but this is **not** a security mechanism: the executed code can still access all builtins."
725725
msgstr "اگر دیکشنری *globals* مقداری برای کلید ``__builtins__`` نداشته باشد، ارجاعی به دیکشنری ماژول توکار :mod:`builtins` با همان کلید در آن درج می‌شود. بازنویسی ``__builtins__`` می‌تواند برای محدود کردن یا تغییر نام‌های در دسترس استفاده شود، اما این **یک سازوکار امنیتی نیست**؛ زیرا کدی که اجرا می‌شود همچنان می‌تواند به تمام اشیای توکار دسترسی داشته باشد."
726726

727-
msgid "The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute."
727+
#, fuzzy
728+
#| msgid "The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute."
729+
msgid "The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when *source* is a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute."
728730
msgstr "آرگومان *بستار* یک بستار را مشخص می‌کند؛ یعنی یک تاپل از cellvarها. این آرگومان تنها زمانی معتبر است که *object* یک شیء کد باشد که شامل :term:`متغیرهای آزاد (بستار) <closure variable>` باشد. طول این تاپل باید دقیقاً با طول ویژگی :attr:`~codeobject.co_freevars` شیء کد برابر باشد."
729731

730732
msgid "The built-in functions :func:`globals` and :func:`locals` return the current global and local namespace, respectively, which may be useful to pass around for use as the second and third argument to :func:`exec`."
@@ -1672,7 +1674,9 @@ msgstr "ویژگی :attr:`~type.__mro__` کلاس متناظر با *object_or_t
16721674
msgid "If the second argument is omitted, the super object returned is unbound. If the second argument is an object, ``isinstance(obj, type)`` must be true. If the second argument is a type, ``issubclass(type2, type)`` must be true (this is useful for classmethods)."
16731675
msgstr "اگر آرگومان دوم حذف شود، شیء super بازگردانده‌شده بدون اتصال (unbound) خواهد بود. اگر آرگومان دوم یک شیء باشد، باید ``isinstance(obj, type)`` برقرار باشد. اگر آرگومان دوم یک نوع باشد، باید ``issubclass(type2, type)`` برقرار باشد (این مورد برای متدهای کلاس مفید است)."
16741676

1675-
msgid "When called directly within an ordinary method of a class, both arguments may be omitted (\"zero-argument :func:`!super`\"). In this case, *type* will be the enclosing class, and *obj* will be the first argument of the immediately enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)"
1677+
#, fuzzy
1678+
#| msgid "When called directly within an ordinary method of a class, both arguments may be omitted (\"zero-argument :func:`!super`\"). In this case, *type* will be the enclosing class, and *obj* will be the first argument of the immediately enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)"
1679+
msgid "When called directly within an ordinary method of a class, both arguments may be omitted (\"zero-argument :func:`!super`\"). In this case, *type* will be the enclosing class, and *object_or_type* will be the first argument of the immediately enclosing function (typically ``self``). Zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions."
16761680
msgstr "هنگامی که این تابع مستقیماً درون یک متد معمولیِ یک کلاس فراخوانی شود، هر دو آرگومان را می‌توان حذف کرد («:func:`!super` بدون آرگومان»). در این حالت، *type* همان کلاسِ محصورکننده خواهد بود و *obj* اولین آرگومانِ تابعِ بلافاصله محصورکننده (معمولاً ``self``) خواهد بود. (این بدان معناست که :func:`!super` بدون آرگومان در توابع تودرتو، از جمله عبارت‌های تولیدگر که به‌طور ضمنی توابع تودرتو ایجاد می‌کنند، مطابق انتظار عمل نخواهد کرد.)"
16771681

16781682
msgid "There are two typical use cases for *super*. In a class hierarchy with single inheritance, *super* can be used to refer to parent classes without naming them explicitly, thus making the code more maintainable. This use closely parallels the use of *super* in other programming languages."
@@ -1864,7 +1868,9 @@ msgstr "این تابع توسط دستور :keyword:`import` فراخوانی
18641868
msgid "The function imports the module *name*, potentially using the given *globals* and *locals* to determine how to interpret the name in a package context. The *fromlist* gives the names of objects or submodules that should be imported from the module given by *name*. The standard implementation does not use its *locals* argument at all and uses its *globals* only to determine the package context of the :keyword:`import` statement."
18651869
msgstr "این تابع ماژول *name* را ایمپورت می‌کند و در صورت نیاز از *globals* و *locals* داده‌شده برای تعیین نحوه‌ی تفسیر نام در زمینه‌ی یک بسته استفاده می‌کند. آرگومان *fromlist* نام اشیا یا زیرماژول‌هایی را مشخص می‌کند که باید از ماژول مشخص‌شده توسط *name* وارد شوند. پیاده‌سازی استاندارد اصلاً از آرگومان *locals* استفاده نمی‌کند و از *globals* تنها برای تعیین زمینه‌ی بسته در دستور :keyword:`import` بهره می‌برد."
18661870

1867-
msgid "*level* specifies whether to use absolute or relative imports. ``0`` (the default) means only perform absolute imports. Positive values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details)."
1871+
#, fuzzy
1872+
#| msgid "*level* specifies whether to use absolute or relative imports. ``0`` (the default) means only perform absolute imports. Positive values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details)."
1873+
msgid "*level* specifies whether to use absolute or relative imports. ``0`` (the default) means only perform absolute imports. For relative imports, ``1`` refers to the current package, ``2`` to its parent package, and so on (see :pep:`328` for details)."
18681874
msgstr "*level* مشخص می‌کند که از ایمپورت مطلق استفاده شود یا نسبی. مقدار ``0`` (که مقدار پیش‌فرض است) به این معناست که فقط ایمپورت مطلق انجام شود. مقادیر مثبت برای *level* تعداد پوشه‌های والد را مشخص می‌کنند که باید نسبت به پوشه‌ی ماژولی که :func:`__import__` را فراخوانی کرده است جست‌وجو شوند (برای جزئیات، :pep:`328` را ببینید)."
18691875

18701876
msgid "When the *name* variable is of the form ``package.module``, normally, the top-level package (the name up till the first dot) is returned, *not* the module named by *name*. However, when a non-empty *fromlist* argument is given, the module named by *name* is returned."

‎builtins/stdtypes.po‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-10-31 04:10+0000\n"
14+
"POT-Creation-Date: 2026-11-01 04:11+0000\n"
1515
"PO-Revision-Date: 2026-10-17 07:55+0330\n"
1616
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1717
"Language-Team: none\n"
@@ -5009,7 +5009,9 @@ msgstr "دیکشنری‌ها را می‌توان به چند روش ایجاد
50095009
msgid "Use a comma-separated list of ``key: value`` pairs within braces: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098: 'jack', 4127: 'sjoerd'}``"
50105010
msgstr "از یک فهرست جداشده با کاما از جفت‌های ``key: value`` درون آکولاد استفاده کنید: ``{'jack': 4098, 'sjoerd': 4127}`` یا ``{4098: 'jack', 4127: 'sjoerd'}``"
50115011

5012-
msgid "Use a dict comprehension: ``{}``, ``{x: x ** 2 for x in range(10)}``"
5012+
#, fuzzy
5013+
#| msgid "Use a dict comprehension: ``{}``, ``{x: x ** 2 for x in range(10)}``"
5014+
msgid "Use a dict comprehension: ``{x: x ** 2 for x in range(10)}``"
50135015
msgstr "از یک درک دیکشنری استفاده کنید: ``{}``، ``{x: x ** 2 for x in range(10)}``"
50145016

50155017
msgid "Use the type constructor: ``dict()``, ``dict([('foo', 100), ('bar', 200)])``, ``dict(foo=100, bar=200)``"
@@ -5190,7 +5192,9 @@ msgstr ":meth:`update` یا شیء دیگری با متد ``keys()`` را می
51905192
msgid "Return a new view of the dictionary's values. See the :ref:`documentation of view objects <dict-views>`."
51915193
msgstr "یک نمای جدید (view) از مقادیر دیکشنری برمی‌گرداند. به :ref:`مستندات اشیای view <dict-views>` مراجعه کنید."
51925194

5193-
msgid "An equality comparison between one ``dict.values()`` view and another will always return ``False``. This also applies when comparing ``dict.values()`` to itself::"
5195+
#, fuzzy
5196+
#| msgid "An equality comparison between one ``dict.values()`` view and another will always return ``False``. This also applies when comparing ``dict.values()`` to itself::"
5197+
msgid "An equality comparison between two distinct ``dict.values()`` views will always return ``False``, even for views of the same dictionary::"
51945198
msgstr "مقایسه‌ی برابری میان یک نمای ``dict.values()`` و نمای دیگر، همیشه ``False`` را برمی‌گرداند. این موضوع هنگام مقایسه‌ی ``dict.values()`` با خودش نیز صدق می‌کند::"
51955199

51965200
msgid ""

0 commit comments

Comments
 (0)