Skip to content

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

Open

Description

@github-actions

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 8db583e).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions