From 3c9cb2014d1d62b1dc6171b1c62dc69bc60107d7 Mon Sep 17 00:00:00 2001 From: mahdyaralipor Date: Wed, 30 Sep 2026 03:16:00 -0500 Subject: [PATCH 1/2] Translate six new strings from the CPython sync One ctypes note, two configure strings (OpenSSL paragraph, [6]_ citation kept as-is per existing precedent), two turtle strings (image alt text, Screen heading), and the new slice constraint sentence. Closes #78 --- c-api/slice.po | 2 +- library/ctypes.po | 2 +- library/turtle.po | 4 ++-- using/configure.po | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/c-api/slice.po b/c-api/slice.po index d0eb46a8..f0788a3e 100644 --- a/c-api/slice.po +++ b/c-api/slice.po @@ -97,7 +97,7 @@ msgid "Adjust start/end slice indices assuming a sequence of the specified lengt msgstr "اندیس‌های شروع/پایان اسلایس را با فرض دنباله‌ای به طول مشخص‌شده تنظیم می‌کند. اندیس‌های خارج از محدوده به شکلی سازگار با نحوه‌ی برخورد با اسلایس‌های معمولی محدود می‌شوند." msgid "*length* must not be negative. *step* must not be zero and must not be less than ``-PY_SSIZE_T_MAX``, as guaranteed by :c:func:`PySlice_Unpack`." -msgstr "" +msgstr "*length* نباید منفی باشد. *step* نباید صفر باشد و نباید کمتر از ``-PY_SSIZE_T_MAX`` باشد، همان‌طور که :c:func:`PySlice_Unpack` تضمین می‌کند." msgid "Return the length of the slice. Always successful. Doesn't call Python code." msgstr "طول اسلایس را برمی‌گرداند. همیشه موفق است. کد پایتون را فراخوانی نمی‌کند." diff --git a/library/ctypes.po b/library/ctypes.po index 71f02dab..7b4760ee 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -2352,7 +2352,7 @@ msgid "An instance of :class:`PyDLL` that exposes Python C API functions as attr msgstr "نمونه‌ای از :class:`PyDLL` که توابع Python C API را به‌عنوان ویژگی‌ها در دسترس قرار می‌دهد. توجه داشته باشید که فرض می‌شود همه‌ی این توابع مقداری از نوع C :c:expr:`int` را برمی‌گردانند، که البته همیشه درست نیست، بنابراین برای استفاده از این توابع باید ویژگی :attr:`!restype` صحیح را اختصاص دهید." msgid "Note that if the Python interpreter is statically linked, this will be ``None``, as ``dlopen`` is not possible in this case." -msgstr "" +msgstr "توجه داشته باشید که اگر مفسر پایتون به‌صورت ایستا پیوند شده باشد، این مقدار ``None`` خواهد بود، زیرا در این حالت ``dlopen`` ممکن نیست." msgid "Loading a library through any of these objects raises an :ref:`auditing event ` ``ctypes.dlopen`` with string argument ``name``, the name used to load the library." msgstr "بارگذاری یک کتابخانه از طریق هر یک از این اشیاء، یک :ref:`رویداد حسابرسی ` ``ctypes.dlopen`` را با آرگومان رشته‌ای ``name``، نام استفاده‌شده برای بارگذاری کتابخانه، پرتاب می‌کند." diff --git a/library/turtle.po b/library/turtle.po index 97bd241a..2e27039d 100644 --- a/library/turtle.po +++ b/library/turtle.po @@ -34,7 +34,7 @@ msgid "Turtle can draw intricate shapes using programs that repeat simple moves. msgstr "Turtle می‌تواند با استفاده از برنامه‌هایی که حرکات ساده را تکرار می‌کنند، شکل‌های پیچیده‌ای رسم کند." msgid "A yellow starburst of thin spikes with a red outline, drawn by turtle." -msgstr "" +msgstr "یک ستاره‌ی زرد با پره‌های باریک و حاشیه‌ی قرمز که با turtle رسم شده است." msgid "Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command ``turtle.right(25)``, and it rotates in-place 25 degrees clockwise." msgstr "یک لاک‌پشت رباتی را تصور کنید که در مختصات (۰، ۰) در صفحه x-y آغاز می‌کند. پس از یک ``import turtle``، به آن دستور ``turtle.forward(15)`` را بدهید، و آن ۱۵ پیکسل در جهت رو به روی خود حرکت می‌کند (روی صفحه!)، و در حین حرکت یک سطر می‌کشد. به آن دستور ``turtle.right(25)`` را بدهید، و آن ۲۵ درجه در جهت عقربه‌های ساعت در جای خود می‌چرخد." @@ -1667,7 +1667,7 @@ msgid "The :class:`Shape` class is used internally by the :func:`register_shape` msgstr "کلاس :class:`Shape` به‌صورت داخلی توسط متد :func:`register_shape` به روش‌های مختلفی استفاده می‌شود. برنامه‌نویس برنامه *فقط* هنگام استفاده از شکل‌های ترکیبی مانند آنچه در بالا نشان داده شد، باید با کلاس Shape سروکار داشته باشد!" msgid "Screen methods and functions" -msgstr "" +msgstr "متدها و توابع Screen" msgid "Most of the examples in this section refer to a TurtleScreen instance called ``screen``." msgstr "بیشتر مثال‌های این بخش به یک نمونه از TurtleScreen به نام ``screen`` اشاره می‌کنند." diff --git a/using/configure.po b/using/configure.po index 96445da9..52cdf8ae 100644 --- a/using/configure.po +++ b/using/configure.po @@ -134,7 +134,7 @@ msgid "`OpenSSL `_" msgstr "`OpenSSL `_" msgid "[6]_" -msgstr "" +msgstr "[6]_" msgid ":mod:`ssl`, :mod:`hashlib` [5]_" msgstr ":mod:`ssl`, :mod:`hashlib` [5]_" @@ -191,7 +191,7 @@ msgid "If OpenSSL is not available, the :mod:`hashlib` module will use bundled i msgstr "اگر OpenSSL در دسترس نباشد، ماژول :mod:`hashlib` از پیاده‌سازی‌های همراه برای چندین تابع هش استفاده خواهد کرد. برای *اجبار* به استفاده از OpenSSL، به :option:`--with-builtin-hashlib-hashes` مراجعه کنید." msgid "OpenSSL 1.1.1 is the minimum possible version to build against, but the series is end-of-life and no longer receives public security fixes. Use the latest patch release of a currently supported LTS release series (see the `OpenSSL Roadmap `__), or the package provided by your operating system if available. Other libraries that offer an API compatible with OpenSSL 1.1.1 or later may work, but are not officially supported." -msgstr "" +msgstr "OpenSSL 1.1.1 کمترین نسخه‌ی ممکن برای ساخت بر مبنای آن است، اما این سری به پایان عمر رسیده و دیگر وصله‌های امنیتی عمومی دریافت نمی‌کند. از آخرین نسخه‌ی وصل یکی از سری‌های LTS که هم‌اکنون پشتیبانی می‌شوند استفاده کنید (`نقشه‌ی راه OpenSSL `__ را ببینید)، یا در صورت وجود از بسته‌ی ارائه‌شده توسط سیستم‌عامل خود استفاده کنید. سایر کتابخانه‌هایی که API سازگار با OpenSSL 1.1.1 یا جدیدتر ارائه می‌دهند ممکن است کار کنند، اما به‌صورت رسمی پشتیبانی نمی‌شوند." msgid "Note that the table does not include all optional modules; in particular, platform-specific modules like :mod:`winreg` are not listed here." msgstr "توجه داشته باشید که این جدول شامل تمام ماژول‌های اختیاری نیست؛ به‌طور خاص، ماژول‌های مخصوص پلتفرم مانند :mod:`winreg` در اینجا فهرست نشده‌اند." From c1ba26ba163f6e938f0db22ac0f37985dcca2303 Mon Sep 17 00:00:00 2001 From: mahdyaralipor Date: Thu, 1 Oct 2026 01:55:32 -0500 Subject: [PATCH 2/2] Apply review suggestions on slice.po and configure.po translations --- c-api/slice.po | 2 +- using/configure.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c-api/slice.po b/c-api/slice.po index f0788a3e..0e80b1d4 100644 --- a/c-api/slice.po +++ b/c-api/slice.po @@ -97,7 +97,7 @@ msgid "Adjust start/end slice indices assuming a sequence of the specified lengt msgstr "اندیس‌های شروع/پایان اسلایس را با فرض دنباله‌ای به طول مشخص‌شده تنظیم می‌کند. اندیس‌های خارج از محدوده به شکلی سازگار با نحوه‌ی برخورد با اسلایس‌های معمولی محدود می‌شوند." msgid "*length* must not be negative. *step* must not be zero and must not be less than ``-PY_SSIZE_T_MAX``, as guaranteed by :c:func:`PySlice_Unpack`." -msgstr "*length* نباید منفی باشد. *step* نباید صفر باشد و نباید کمتر از ``-PY_SSIZE_T_MAX`` باشد، همان‌طور که :c:func:`PySlice_Unpack` تضمین می‌کند." +msgstr "*length* نباید منفی باشد. *step* نباید صفر باشد و نباید کمتر از ``-PY_SSIZE_T_MAX`` باشد؛ این موضوع توسط :c:func:`PySlice_Unpack` تضمین شده است." msgid "Return the length of the slice. Always successful. Doesn't call Python code." msgstr "طول اسلایس را برمی‌گرداند. همیشه موفق است. کد پایتون را فراخوانی نمی‌کند." diff --git a/using/configure.po b/using/configure.po index 52cdf8ae..3b22351e 100644 --- a/using/configure.po +++ b/using/configure.po @@ -191,7 +191,7 @@ msgid "If OpenSSL is not available, the :mod:`hashlib` module will use bundled i msgstr "اگر OpenSSL در دسترس نباشد، ماژول :mod:`hashlib` از پیاده‌سازی‌های همراه برای چندین تابع هش استفاده خواهد کرد. برای *اجبار* به استفاده از OpenSSL، به :option:`--with-builtin-hashlib-hashes` مراجعه کنید." msgid "OpenSSL 1.1.1 is the minimum possible version to build against, but the series is end-of-life and no longer receives public security fixes. Use the latest patch release of a currently supported LTS release series (see the `OpenSSL Roadmap `__), or the package provided by your operating system if available. Other libraries that offer an API compatible with OpenSSL 1.1.1 or later may work, but are not officially supported." -msgstr "OpenSSL 1.1.1 کمترین نسخه‌ی ممکن برای ساخت بر مبنای آن است، اما این سری به پایان عمر رسیده و دیگر وصله‌های امنیتی عمومی دریافت نمی‌کند. از آخرین نسخه‌ی وصل یکی از سری‌های LTS که هم‌اکنون پشتیبانی می‌شوند استفاده کنید (`نقشه‌ی راه OpenSSL `__ را ببینید)، یا در صورت وجود از بسته‌ی ارائه‌شده توسط سیستم‌عامل خود استفاده کنید. سایر کتابخانه‌هایی که API سازگار با OpenSSL 1.1.1 یا جدیدتر ارائه می‌دهند ممکن است کار کنند، اما به‌صورت رسمی پشتیبانی نمی‌شوند." +msgstr "OpenSSL 1.1.1 حداقل نسخهی ممکن برای ساخت بر مبنای آن است، اما این سری به پایان عمر خود رسیده و دیگر وصلههای امنیتی عمومی دریافت نمیکند. از آخرین نسخهی وصل یکی از سریهای LTS که هماکنون پشتیبانی میشوند استفاده کنید (`نقشهی راه OpenSSL `__ را ببینید)، یا در صورت موجود بودن از بستهی ارائهشده توسط سیستمعامل خود استفاده کنید. سایر کتابخانههایی که API سازگار با OpenSSL 1.1.1 یا جدیدتر ارائه میدهند ممکن است کار کنند، اما بهصورت رسمی پشتیبانی نمیشوند." msgid "Note that the table does not include all optional modules; in particular, platform-specific modules like :mod:`winreg` are not listed here." msgstr "توجه داشته باشید که این جدول شامل تمام ماژول‌های اختیاری نیست؛ به‌طور خاص، ماژول‌های مخصوص پلتفرم مانند :mod:`winreg` در اینجا فهرست نشده‌اند."