FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: sync msgids with CPython 3.15 · python/python-docs-fa@5929adc · GitHub

Repository navigation

Commit 5929adc

Browse files
chore: sync msgids with CPython 3.15
1 parent b9fab75 commit 5929adc

5 files changed

Lines changed: 498 additions & 131 deletions

File tree

‎c-api/interp-lifecycle.po‎

Lines changed: 19 additions & 1 deletion
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-01 14:41+0330\n"
14+
"POT-Creation-Date: 2026-10-21 04:17+0000\n"
1515
"PO-Revision-Date: 2026-10-06 20:24+0330\n"
1616
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1717
"Language-Team: none\n"
@@ -407,6 +407,21 @@ msgstr ""
407407
msgid "In normal usage, an embedding application will call this function *instead* of calling :c:func:`Py_Initialize`, :c:func:`Py_InitializeEx` or :c:func:`Py_InitializeFromConfig` directly, and all settings will be applied as described elsewhere in this documentation. If this function is instead called *after* a preceding runtime initialization API call, then exactly which environmental and command line configuration settings will be updated is version dependent (as it depends on which settings correctly support being modified after they have already been set once when the runtime was first initialized)."
408408
msgstr "در استفاده‌ی معمول، یک برنامه تعبیه‌کننده این تابع را *به‌جای* فراخوانی مستقیم :c:func:`Py_Initialize`، :c:func:`Py_InitializeEx` یا :c:func:`Py_InitializeFromConfig` فراخوانی می‌کند و تمام تنظیمات همان‌گونه که در جای دیگر این مستندات توضیح داده شده است، اعمال خواهند شد. اگر این تابع در عوض *پس از* یک فراخوانی قبلی از API مقداردهی اولیه‌ی ران‌تایم فراخوانی شود، دقیقاً اینکه کدام تنظیمات پیکربندی محیطی و خط فرمان به‌روزرسانی خواهند شد، وابسته به نسخه است (زیرا به این بستگی دارد که کدام تنظیمات به‌درستی از این پشتیبانی می‌کنند که پس از آن‌که یک‌بار در نخستین مقداردهی اولیه‌ی ران‌تایم تنظیم شده‌اند، تغییر کنند)."
409409

410+
msgid "The main program for a \"frozen\" Python program (an executable that embeds the interpreter together with the bytecode of the program's modules, as produced by the :program:`freeze` utility; see :source:`Tools/freeze`)."
411+
msgstr ""
412+
413+
msgid "This function initializes the interpreter, imports the frozen module named ``__main__``, and finalizes the interpreter. The frozen modules must have been registered in :c:var:`PyImport_FrozenModules` before calling this function; it is a fatal error if ``__main__`` is not among them."
414+
msgstr ""
415+
416+
msgid "*argc* and *argv* are byte strings like the arguments of a C program's ``main`` function, and are passed to the interpreter with :c:func:`PyConfig_SetBytesArgv`. Unlike :c:func:`Py_Main`, the arguments are not parsed as Python command line options (:c:member:`PyConfig.parse_argv` is ``0``), so all of them are made available to the program in :data:`sys.argv`. Apart from that, the interpreter uses the :ref:`Python Configuration <init-python-config>`, so environment variables such as :envvar:`PYTHONPATH` are honored. Warnings about the path configuration (:c:member:`PyConfig.pathconfig_warnings`) are suppressed. If :envvar:`PYTHONINSPECT` is set and standard input is a terminal, an interactive prompt is run after ``__main__`` has finished, as with the :option:`-i` option."
417+
msgstr ""
418+
419+
msgid "Return ``0`` if ``__main__`` ran without an unhandled exception, ``1`` otherwise, and ``120`` if finalizing the interpreter failed (see :c:func:`Py_FinalizeEx`). An unhandled :exc:`SystemExit` terminates the process. If the interpreter cannot be initialized, the process exits via :c:func:`Py_ExitStatusException`."
420+
msgstr ""
421+
422+
msgid "On Windows, this function is not exported by the Python DLL. The :program:`freeze` utility compiles :file:`Python/frozenmain.c` into the frozen program instead, together with the Windows-specific hooks that the function requires."
423+
msgstr ""
424+
410425
msgid "Executes the main module in a fully configured CPython runtime."
411426
msgstr "ماژول اصلی را در یک ران‌تایم سی‌پایتون کاملاً پیکربندی‌شده اجرا می‌کند."
412427

@@ -695,6 +710,9 @@ msgstr "مسیر"
695710
msgid "Py_FinalizeEx (C function)"
696711
msgstr "Py_FinalizeEx (تابع C)"
697712

713+
msgid "freeze utility"
714+
msgstr ""
715+
698716
msgid "Py_Initialize()"
699717
msgstr "Py_Initialize()"
700718

‎library/datetime.po‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.14\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
18+
"POT-Creation-Date: 2026-10-21 04:17+0000\n"
1919
"PO-Revision-Date: 2026-09-13 14:43+0330\n"
2020
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
2121
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -3223,6 +3223,9 @@ msgstr "رشته‌های قالب بدون جداکننده ممکن است د
32233223
msgid "When used to parse partial dates lacking a year, :meth:`.datetime.strptime` and :meth:`.date.strptime` will raise when encountering February 29 because the default year of 1900 is *not* a leap year. Always add a default leap year to partial date strings before parsing."
32243224
msgstr "هنگامی که برای تجزیه‌ی تاریخ‌های ناقص فاقد سال استفاده شوند، :meth:`.datetime.strptime` و :meth:`.date.strptime` در صورت مواجهه با ۲۹ فوریه استثنا پرتاب می‌کنند، زیرا سال پیش‌فرض ۱۹۰۰ یک سال کبیسه *نیست*. همیشه پیش از تجزیه، یک سال کبیسه‌ی پیش‌فرض به رشته‌های تاریخ ناقص اضافه کنید."
32253225

3226+
msgid "If a :meth:`~.datetime.strptime` format string contains more than one directive for the same field, for example both ``%Y`` and ``%y``, every directive must still match the input, but only the value of the last one is used. For example, parsing ``200099`` with ``%Y%y`` gives the year 1999. Repeating the same directive, like ``%Y%Y``, raises an error."
3227+
msgstr ""
3228+
32263229
msgid ""
32273230
">>> import datetime as dt\n"
32283231
">>> value = \"2/29\"\n"

‎library/pathlib.po‎

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
16+
"POT-Creation-Date: 2026-10-21 04:17+0000\n"
1717
"PO-Revision-Date: 2026-09-13 17:37+0330\n"
1818
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
1919
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -425,6 +425,21 @@ msgstr "(توجه کنید که چگونه درایو و ریشه‌ی محلی
425425
msgid "Methods and properties"
426426
msgstr "متدها و ویژگی‌ها"
427427

428+
msgid "The :attr:`~PurePath.parent`, :attr:`~PurePath.name`, :attr:`~PurePath.stem`, and :attr:`~PurePath.suffix` properties describe different parts of a path. For example, given::"
429+
msgstr ""
430+
431+
msgid ">>> p = PurePosixPath('/srv/holy/grail.tar.gz')"
432+
msgstr ""
433+
434+
msgid ""
435+
"For p = PurePosixPath('/srv/holy/grail.tar.gz'), p.parent is\n"
436+
"PurePosixPath('/srv/holy'), p.name is 'grail.tar.gz',\n"
437+
"p.stem is 'grail.tar', and p.suffix is '.gz'."
438+
msgstr ""
439+
440+
msgid "The stem excludes only the final suffix: in this example, it includes ``.tar``."
441+
msgstr ""
442+
428443
msgid "Pure paths provide the following methods and properties:"
429444
msgstr "مسیرهای خالص، متدها و ویژگی‌های زیر را ارائه می‌دهند:"
430445

@@ -767,14 +782,24 @@ msgstr ""
767782
msgid "Match this path against the provided glob-style pattern. Return ``True`` if matching is successful, ``False`` otherwise. For example::"
768783
msgstr "این مسیر را با الگوی به‌سبک glob ارائه‌شده تطبیق می‌دهد. اگر تطبیق موفقیت‌آمیز باشد، ``True`` و در غیر این صورت ``False`` برمی‌گرداند. برای مثال::"
769784

785+
#, fuzzy
786+
#| msgid ""
787+
#| ">>> PurePath('a/b.py').full_match('a/*.py')\n"
788+
#| "True\n"
789+
#| ">>> PurePath('a/b.py').full_match('*.py')\n"
790+
#| "False\n"
791+
#| ">>> PurePath('/a/b/c.py').full_match('/a/**')\n"
792+
#| "True\n"
793+
#| ">>> PurePath('/a/b/c.py').full_match('**/*.py')\n"
794+
#| "True"
770795
msgid ""
771796
">>> PurePath('a/b.py').full_match('a/*.py')\n"
772797
"True\n"
773798
">>> PurePath('a/b.py').full_match('*.py')\n"
774799
"False\n"
775-
">>> PurePath('/a/b/c.py').full_match('/a/**')\n"
776-
"True\n"
777800
">>> PurePath('/a/b/c.py').full_match('**/*.py')\n"
801+
"True\n"
802+
">>> PurePath('/a/b/c.py').full_match('/a/**')\n"
778803
"True"
779804
msgstr ""
780805
">>> PurePath('a/b.py').full_match('a/*.py')\n"
@@ -786,6 +811,26 @@ msgstr ""
786811
">>> PurePath('/a/b/c.py').full_match('**/*.py')\n"
787812
"True"
788813

814+
msgid "Patterns ending in \"``/**``\", as in the example above, may surprise when passed to ``full_match``. Even though \"``**``\" can match 0 segments, \"``.../**``\" requires a separator to match. Hence \"``/a/**``\" does not match path \"``/a``\". Since :class:`PurePath` drops trailing slashes, this pattern also does not match \"``/a/``\"."
815+
msgstr ""
816+
817+
#, fuzzy
818+
#| msgid ""
819+
#| ">>> PurePosixPath('b.py').full_match('*.PY')\n"
820+
#| "False\n"
821+
#| ">>> PureWindowsPath('b.py').full_match('*.PY')\n"
822+
#| "True"
823+
msgid ""
824+
">>> PurePath('/a').full_match('/a/**')\n"
825+
"False\n"
826+
">>> PurePath('/a/').full_match('/a/**')\n"
827+
"False"
828+
msgstr ""
829+
">>> PurePosixPath('b.py').full_match('*.PY')\n"
830+
"False\n"
831+
">>> PureWindowsPath('b.py').full_match('*.PY')\n"
832+
"True"
833+
789834
msgid ":ref:`pathlib-pattern-language` documentation."
790835
msgstr "مستندات :ref:`pathlib-pattern-language`."
791836

@@ -1879,8 +1924,8 @@ msgstr "وایلدکارد زیر در الگوهای :meth:`~PurePath.full_matc
18791924
msgid "``**`` (entire segment)"
18801925
msgstr "``**`` (کل بخش)"
18811926

1882-
msgid "Matches any number of file or directory segments, including zero."
1883-
msgstr "با هر تعداد بخش پرونده یا پوشه، از جمله صفر، مطابقت دارد."
1927+
msgid "Matches any number of file or directory segments, including zero. Note that in :meth:`~PurePath.full_match`, \"``a/**``\" does not match \"``a``\", whereas :meth:`~Path.glob` yields \"``a``\" for that pattern."
1928+
msgstr ""
18841929

18851930
msgid "``*`` (entire segment)"
18861931
msgstr "``*`` (کل بخش)"
@@ -2260,6 +2305,9 @@ msgstr "مسیر"
22602305
msgid "operations"
22612306
msgstr "عملیات"
22622307

2308+
#~ msgid "Matches any number of file or directory segments, including zero."
2309+
#~ msgstr "با هر تعداد بخش پرونده یا پوشه، از جمله صفر، مطابقت دارد."
2310+
22632311
#~ msgid "With :class:`PureWindowsPath`, return ``True`` if the path is considered reserved under Windows, ``False`` otherwise. With :class:`PurePosixPath`, ``False`` is always returned."
22642312
#~ msgstr "در :class:`PureWindowsPath`، اگر مسیر در ویندوز رزروشده محسوب شود، ``True`` و در غیر این صورت ``False`` برمی‌گرداند. در :class:`PurePosixPath`، همیشه ``False`` برگردانده می‌شود."
22652313

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL