🔍 Translation review needed after CPython sync (2026-11-05)

未關閉
#128 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
68/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python

研究方向

Start by reviewing the fuzzy and untranslated entries listed in the issue in the .po files under builtins, library, and whatsnew. Compare each Persian translation with its English source, updating fuzzy entries where the meaning changed and translating new strings. Done when all listed entries are translated accurately and no longer marked fuzzy.

由索引模型根據 Issue 內容生成。

描述

3.15 تغییرات خودکار در ترجمه‌ها

Summary

  • 🔍 17 newly fuzzy strings in 4 files
  • ✏️ 13 new untranslated strings in 4 files

🔍 Newly fuzzy strings

The source text changed slightly, so the existing translation (msgstr) may need updating. - is the old source, + the new.

builtins/stdtypes.po (1 new fuzzy)
- Return a copy of the string with its first character capitalized and the rest lowercased.
+ Return a copy of the string with its first character capitalized and the rest lowercased. For example:
  msgstr: یک نسخه از رشته را برمی‌گرداند که در آن نویسه نخست به حرف بزرگ و بقیه نویسه‌ها به حروف کوچک تبدیل شده‌اند.

library/ctypes.po (13 new fuzzy)
- >>> s = "Hello, World"\n>>> c_s = c_wchar_p(s)\n>>> print(c_s)\nc_wchar_p(139966785747344)\n>>> print(c_s.value)\nHello World\n>>> c_s.value = "Hi, there"\n>>>…
+ >>> s = "Hello, World"\n>>> c_s = c_wchar_p(s)\n>>> print(c_s)\nc_wchar_p(139966785747344)\n>>> print(c_s.value)\nHello, World\n>>> c_s.value = "Hi, there"\n>>…
  msgstr: >>> s = "Hello, World"\n>>> c_s = c_wchar_p(s)\n>>> print(c_s)\nc_wchar_p(139966785747344)\n>>> print(c_s.value)\nHello World\n>>> c_s.value = "Hi, there"\n>>>…

- >>> import threading\n>>> lock = threading.Lock()\n>>> # Thread 1\n>>> with lock:\n...    pointer_a.contents = 24\n>>> # Thread 2\n>>> with lock:\n...    point…
+ >>> import threading\n>>> lock = threading.Lock()\n>>> # Thread 1\n>>> with lock:\n...    pointer_a[0] = 24\n>>> # Thread 2\n>>> with lock:\n...    pointer_b[0…
  msgstr: >>> import threading\n>>> lock = threading.Lock()\n>>> # Thread 1\n>>> with lock:\n...    pointer_a.contents = 24\n>>> # Thread 2\n>>> with lock:\n...    point…

- >>> c1 = cell()\n>>> c1.name = b"foo"\n>>> c2 = cell()\n>>> c2.name = b"bar"\n>>> c1.next = pointer(c2)\n>>> c2.next = pointer(c1)\n>>> p = c1\n>>> for i in ra…
+ >>> c1 = cell()\n>>> c1.name = b"foo"\n>>> c2 = cell()\n>>> c2.name = b"bar"\n>>> c1.next = pointer(c2)\n>>> c2.next = pointer(c1)\n>>> p = c1\n>>> for i in ra…
  msgstr: >>> c1 = cell()\n>>> c1.name = b"foo"\n>>> c2 = cell()\n>>> c2.name = b"bar"\n>>> c1.next = pointer(c2)\n>>> c2.next = pointer(c1)\n>>> p = c1\n>>> for i in ra…

- Here is the wrapping with :mod:`!ctypes`::
+ We can read this table with :mod:`!ctypes`::
  msgstr: در اینجا پوششی با :mod:`!ctypes` آمده است::

- >>> from ctypes import *\n>>>\n>>> class struct_frozen(Structure):\n...     _fields_ = [("name", c_char_p),\n...                 ("code", POINTER(c_ubyte)),\n.…
+ >>> from ctypes import *\n>>>\n>>> class struct_frozen(Structure):\n...     _fields_ = [("name", c_char_p),\n...                 ("code", POINTER(c_ubyte)),\n.…
  msgstr: >>> from ctypes import *\n>>>\n>>> class struct_frozen(Structure):\n...     _fields_ = [("name", c_char_p),\n...                 ("code", POINTER(c_ubyte)),\n.…

- When a foreign function is called, each actual argument is passed to the :meth:`~_CData.from_param` class method of the items in the :attr:`argtypes` tuple, th…
+ When a foreign function is called, each actual argument is passed to the :meth:`~_CData.from_param` class method of the items in the :attr:`argtypes` tuple, th…
  msgstr: هنگامی که یک تابع خارجی فراخوانی می‌شود، هر آرگومان واقعی به متد کلاس :meth:`~_CData.from_param` آیتم‌های موجود در تاپل :attr:`argtypes` ارسال می‌شود؛ این متد …

- Types marked \* in the summary may be (or always are) aliases of a different :class:`_SimpleCData` subclass, and will not necessarily use the listed type code.…
+ Types marked \* in the summary may be (or always are) aliases of a different :class:`_SimpleCData` subclass, and will not necessarily use the listed type code.…
  msgstr: انواعی که در خلاصه با \* علامت‌گذاری شده‌اند ممکن است (یا همواره) نام‌های مستعار یک زیرکلاس دیگر از :class:`_SimpleCData` باشند و لزوماً از کد نوع فهرست‌شده اس…

- Fundamental data types, when returned as foreign function call results, or, for example, by retrieving structure field members or array items, are transparentl…
+ Fundamental data types, when returned as foreign function call results, or, for example, by retrieving structure field members or array items, are transparentl…
  msgstr: انواع داده بنیادی، هنگامی که به‌عنوان نتایج فراخوانی تابع خارجی برگردانده می‌شوند، یا مثلاً هنگام بازیابی اعضای فیلدهای ساختار یا آیتم‌های آرایه، به‌طور شفاف ب…

- Concrete structure and union types must be created by subclassing one of these types, and at least define a :attr:`_fields_` class variable. :mod:`!ctypes` wil…
+ Concrete structure and union types must be created by subclassing one of these types, and at least define a :attr:`_fields_` class variable. :mod:`!ctypes` wil…
  msgstr: انواع عینی ساختار و اجتماع (union) باید با زیرکلاس‌سازی از یکی از این انواع ایجاد شوند، و حداقل یک متغیر کلاس :attr:`_fields_` را تعریف کنند. :mod:`!ctypes` تو…

- Additionally, the :attr:`!_fields_` class variable must be defined before the structure or union type is first used: an instance or subclass is created, :func:…
+ Additionally, the :attr:`!_fields_` class variable must be defined before the structure or union type is first used, for example when an instance or subclass i…
  msgstr: علاوه بر این، متغیر کلاس :attr:`!_fields_` باید پیش از اولین استفاده از نوع ساختار یا اجتماع (union) تعریف شود: ایجاد یک نمونه یا زیرکلاس، فراخوانی :func:`size…

  … and 3 more
library/pdb.po (1 new fuzzy)
- async version of :func:`set_trace`. This function should be used inside an async function with :keyword:`await`.
+ Asynchronous version of :func:`set_trace`. This function should be used inside a :term:`coroutine function` with :keyword:`await`. For instance:
  msgstr: نسخه‌ی ناهمگام از :func:`set_trace`. این تابع باید در یک تابع ناهمگام همراه با :keyword:`await` استفاده شود.

library/tarfile.po (2 new fuzzy)
- :ref:`Refuse <tarfile-extraction-refuse>` to extract files with absolute paths (in case the name is absolute even after stripping slashes, e.g. ``C:/foo`` on W…
+ :ref:`Refuse <tarfile-extraction-refuse>` to extract files with absolute paths (in case the name is absolute even after stripping slashes, e.g. ``C:/foo`` on W…
  msgstr: :ref:`امتناع <tarfile-extraction-refuse>` از استخراج پرونده‌هایی با مسیرهای مطلق (در صورتی که نام حتی پس از حذف اسلش‌ها مطلق باشد، مثلاً ``C:/foo`` در ویندوز).…

- :ref:`Refuse <tarfile-extraction-refuse>` to extract links (hard or soft) that link to absolute paths, or ones that link outside the destination.
+ :ref:`Refuse <tarfile-extraction-refuse>` to extract links (hard or soft) that link to absolute paths or to paths with a drive, or ones that link outside the d…
  msgstr: :ref:`امتناع <tarfile-extraction-refuse>` از استخراج پیوندهایی (سخت یا نرم) که به مسیرهای مطلق اشاره می‌کنند، یا پیوندهایی که به خارج از مقصد اشاره می‌کنند.

✏️ New untranslated strings

Brand-new source strings with no close match to an existing translation.

builtins/stdtypes.po (1 new untranslated)
>>> 'PYTHON IS AMAZING'.capitalize()\n'Python is amazing'\n>>> 'Njemačka starts With a non-ASCII digraph'.capitalize()\n'Njemačka starts with a non-ascii digraph'
library/ctypes.po (3 new untranslated)
The :attr:`~Structure._align_` class attribute specifies the minimum alignment for the structure itself. See the attribute documentation for details.
An extended example which also demonstrates the use of pointers accesses the ``_PyImport_FrozenBootstrap`` pointer exported by Python. It points to an array of…
Frozen packages are indicated by a nonzero ``is_package`` member. Python also includes frozen modules and packages used for testing, such as ``__hello__`` and …
library/tarfile.po (2 new untranslated)
Filenames with a drive that are not absolute are now refused.
Link targets with a drive that are not absolute are now refused.
whatsnew/changelog.po (7 new untranslated)
:gh:`161323`: On Windows, the ``'tar'`` and ``'data'`` :mod:`tarfile` extraction filters now refuse member names and link targets that have a drive but are not…
:gh:`161288`: Fix a crash in the perf trampoline (:option:`-X perf <-X>`) on builds with clang's ``-fsanitize=function``, which ``-fsanitize=undefined`` enable…
:gh:`161229`: :func:`!__lazy_import__` now treats ``None`` for *globals* and *locals* the same as omitting them, matching its signature.
:gh:`93821`: Fix :class:`asyncio.ProactorEventLoop` servers that stopped accepting new connections on Windows when a client reset its connection before it was …
:gh:`161076`: Fix :mod:`asyncio` leaving a half-created transport registered with the event loop and the server when setting ``TCP_NODELAY`` on a socket fails.…
:gh:`75929`: Fix a ``configure`` probe that could omit functions such as :func:`os.fchdir` from builds using ``-Wall -Werror``.
:gh:`161185`: Fix a strict aliasing issue in the :c:func:`!memcpy` implementation of :c:macro:`Py_SETREF`, :c:macro:`Py_XSETREF` and :c:macro:`Py_CLEAR` macros…

Triggered by sync with 3.15 (commit 8db583e8).

主要語言
Python
星號
107
分支
20
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

python/python-docs-fa 的其他 Issue

查看 python/python-docs-fa 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。