Skip to content

Commit 3066501

Browse files
Translation of library/future.po and partial translation of library/main.po (#42)
1 parent 7486b6e commit 3066501

2 files changed

Lines changed: 109 additions & 35 deletions

File tree

library/__future__.po

Lines changed: 86 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,120 +24,148 @@ msgstr ""
2424
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
2525

2626
msgid ":mod:`!__future__` --- Future statement definitions"
27-
msgstr ""
27+
msgstr ":mod:`!__future__` --- تعاریف دستورات آینده"
2828

2929
msgid "**Source code:** :source:`Lib/__future__.py`"
30-
msgstr ""
30+
msgstr "**کد منبع:** :source:`Lib/__future__.py`"
3131

3232
msgid "Imports of the form ``from __future__ import feature`` are called :ref:`future statements <future>`. These are special-cased by the Python compiler to allow the use of new Python features in modules containing the future statement before the release in which the feature becomes standard."
3333
msgstr ""
34+
"ایمپورت‌هایی به شکل ``from __future__ import feature``، :ref:"
35+
"`future statements <future>` نامیده می‌شوند. این موارد توسط کامپایلر پایتون به‌صورت ویژه "
36+
"درنظر گرفته می‌شوند تا امکان استفاده از ویژگیهای جدید پایتون را در ماژول‌هایی "
37+
"که شامل دستور آینده هستند، قبل از نسخه‌ای که آن ویژگی به‌صورت استاندارد درمی‌آید، "
38+
"فراهم کنند."
3439

3540
msgid "While these future statements are given additional special meaning by the Python compiler, they are still executed like any other import statement and the :mod:`!__future__` exists and is handled by the import system the same way any other Python module would be. This design serves three purposes:"
3641
msgstr ""
42+
"اگرچه این دستورات آینده‌نگر به‌واسطه کامپایلر پایتون معنای ویژه‌ای پیدا می‌کنند، "
43+
"اما همچنان مانند هر دستور ایمپورت دیگری اجرا می‌شوند. ماژول :mod:`!__future__` "
44+
"وجود دارد و توسط سازوکار ایمپورت، دقیقاً مانند هر ماژول پایتون دیگری مدیریت می‌شود. "
45+
"این طراحی سه هدف را دنبال می‌کند:"
3746

3847
msgid "To avoid confusing existing tools that analyze import statements and expect to find the modules they're importing."
3948
msgstr ""
49+
"برای جلوگیری از سردرگمی ابزارهای موجود که دستورات ایمپورت را تحلیل می‌کنند و انتظار "
50+
"دارند که ماژول‌های مورد نظر خود را پیدا کنند."
4051

4152
msgid "To document when incompatible changes were introduced, and when they will be --- or were --- made mandatory. This is a form of executable documentation, and can be inspected programmatically via importing :mod:`!__future__` and examining its contents."
4253
msgstr ""
54+
"برای مستندسازی زمان معرفی تغییرات ناسازگار و زمانی که "
55+
"این تغییرات اجباری خواهند شد --- یا شده‌اند، این نوعی مستندسازی قابل‌اجرا است، "
56+
"و می‌توان آن را به‌صورت برنامه‌نویسی با ایمپورت کردن :mod:`!__future__` و "
57+
"بررسی محتویات آن مشاهده کرد."
4358

4459
msgid "To ensure that :ref:`future statements <future>` run under releases prior to Python 2.1 at least yield runtime exceptions (the import of :mod:`!__future__` will fail, because there was no module of that name prior to 2.1)."
4560
msgstr ""
61+
"برای اطمینان از اینکه :ref:`future statements <future>` در نسخه‌های پیش از "
62+
"پایتون 2.1 حداقل استثناهای زمان اجرا ایجاد می‌کنند (ایمپورت کردن :mod:`!"
63+
"__future__` با شکست مواجه خواهد شد، زیرا هیچ ماژولی با آن نام پیش از "
64+
"نسخه‌ی ۲.۱ وجود نداشته است)."
4665

4766
msgid "Module Contents"
48-
msgstr ""
67+
msgstr "محتویات ماژول"
4968

5069
msgid "No feature description will ever be deleted from :mod:`!__future__`. Since its introduction in Python 2.1 the following features have found their way into the language using this mechanism:"
5170
msgstr ""
71+
"هیچ توضیح ویژگی‌ای هرگز از :mod:`!__future__` حذف نخواهد شد. از "
72+
"زمان معرفی آن در پایتون ۲.۱، ویژگی‌های زیر راه خود را "
73+
"به این زبان با استفاده از این مکانیزم پیدا کرده‌اند:"
5274

5375
msgid "feature"
54-
msgstr ""
76+
msgstr "ویژگی"
5577

5678
msgid "optional in"
57-
msgstr ""
79+
msgstr "اختیاری در"
5880

5981
msgid "mandatory in"
60-
msgstr ""
82+
msgstr "اجباری در"
6183

6284
msgid "effect"
63-
msgstr ""
85+
msgstr "تأثیر"
6486

6587
msgid "2.1.0b1"
66-
msgstr ""
88+
msgstr "2.1.0b1"
6789

6890
msgid "2.2"
69-
msgstr ""
91+
msgstr "2.2"
7092

7193
msgid ":pep:`227`: *Statically Nested Scopes*"
72-
msgstr ""
94+
msgstr ":pep:`227`: *محدوده‌های تو در تو ایستا*"
7395

7496
msgid "2.2.0a1"
75-
msgstr ""
97+
msgstr "2.2.0a1"
7698

7799
msgid "2.3"
78-
msgstr ""
100+
msgstr "2.3"
79101

80102
msgid ":pep:`255`: *Simple Generators*"
81-
msgstr ""
103+
msgstr ":pep:`255`: *تولیدگرهای ساده*"
82104

83105
msgid "2.2.0a2"
84-
msgstr ""
106+
msgstr "2.2.0a2"
85107

86108
msgid "3.0"
87-
msgstr ""
109+
msgstr "3.0"
88110

89111
msgid ":pep:`238`: *Changing the Division Operator*"
90-
msgstr ""
112+
msgstr ":pep:`238`: *تغییر عملگر تقسیم*"
91113

92114
msgid "2.5.0a1"
93-
msgstr ""
115+
msgstr "2.5.0a1"
94116

95117
msgid ":pep:`328`: *Imports: Multi-Line and Absolute/Relative*"
96-
msgstr ""
118+
msgstr ":pep:`328`: *ایمپورتها: چندخطی و مطلق/نسبی*"
97119

98120
msgid "2.6"
99-
msgstr ""
121+
msgstr "2.6"
100122

101123
msgid ":pep:`343`: *The “with” Statement*"
102-
msgstr ""
124+
msgstr ":pep:`343`: *دستور “with”*"
103125

104126
msgid "2.6.0a2"
105-
msgstr ""
127+
msgstr "2.6.0a2"
106128

107129
msgid ":pep:`3105`: *Make print a function*"
108-
msgstr ""
130+
msgstr ":pep:`3105`: *تبدیل print به یک تابع*"
109131

110132
msgid ":pep:`3112`: *Bytes literals in Python 3000*"
111-
msgstr ""
133+
msgstr ":pep:`3112`: *لیترال‌های بایت در پایتون ۳۰۰۰*"
112134

113135
msgid "3.5.0b1"
114-
msgstr ""
136+
msgstr "3.5.0b1"
115137

116138
msgid "3.7"
117-
msgstr ""
139+
msgstr "3.7"
118140

119141
msgid ":pep:`479`: *StopIteration handling inside generators*"
120-
msgstr ""
142+
msgstr ":pep:`479`: *مدیریت StopIteration درون تولیدگرها*"
121143

122144
msgid "3.7.0b1"
123-
msgstr ""
145+
msgstr "3.7.0b1"
124146

125147
msgid "Never [1]_"
126-
msgstr ""
148+
msgstr "هرگز [1]_"
127149

128150
msgid ":pep:`563`: *Postponed evaluation of annotations*, :pep:`649`: *Deferred evaluation of annotations using descriptors*"
129151
msgstr ""
152+
":pep:`563`: *ارزیابی به‌تعویق‌افتادهٔ annotationها*، :pep:`649`: *ارزیابی "
153+
"به‌تعویق‌افتادهٔ annotationها با استفاده از توصیفگرها*"
130154

131155
msgid "Each statement in :file:`__future__.py` is of the form::"
132-
msgstr ""
156+
msgstr "هر دستور در :file:`__future__.py` به شکل زیر است::"
133157

134158
msgid ""
135159
"FeatureName = _Feature(OptionalRelease, MandatoryRelease,\n"
136160
" CompilerFlag)"
137161
msgstr ""
162+
"FeatureName = _Feature(OptionalRelease, MandatoryRelease,\n"
163+
" CompilerFlag)"
138164

139165
msgid "where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both are 5-tuples of the same form as :data:`sys.version_info`::"
140166
msgstr ""
167+
"که در آن، به‌طور معمول، *OptionalRelease* کوچک‌تر از *MandatoryRelease* است، و هر دو "
168+
"تاپل‌های ۵ عضوی به همان شکل :data:`sys.version_info` هستند::"
141169

142170
msgid ""
143171
"(PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int\n"
@@ -147,33 +175,58 @@ msgid ""
147175
" PY_RELEASE_SERIAL # the 3; an int\n"
148176
")"
149177
msgstr ""
178+
"(PY_MAJOR_VERSION, # عدد 2 در 2.1.0a3؛ یک عدد صحیح\n"
179+
" PY_MINOR_VERSION, # عدد 1؛ یک عدد صحیح\n"
180+
" PY_MICRO_VERSION, # عدد 0؛ یک عدد صحیح\n"
181+
" PY_RELEASE_LEVEL, # \"alpha\"، \"beta\"، \"candidate\" یا \"final\"؛ رشته\n"
182+
" PY_RELEASE_SERIAL # عدد 3؛ یک عدد صحیح\n"
183+
")"
150184

151185
msgid "*OptionalRelease* records the first release in which the feature was accepted."
152186
msgstr ""
187+
"*OptionalRelease* اولین نسخه‌ای را ثبت می‌کند که ویژگی در آن "
188+
"پذیرفته شده است."
153189

154190
msgid "In the case of a *MandatoryRelease* that has not yet occurred, *MandatoryRelease* predicts the release in which the feature will become part of the language."
155191
msgstr ""
192+
"در مورد *MandatoryRelease* که هنوز رخ نداده است، "
193+
"*MandatoryRelease* نسخه‌ای را پیش‌بینی می‌کند که ویژگی در آن "
194+
"بخشی از زبان خواهد شد."
156195

157196
msgid "Else *MandatoryRelease* records when the feature became part of the language; in releases at or after that, modules no longer need a future statement to use the feature in question, but may continue to use such imports."
158197
msgstr ""
198+
"در غیر این صورت، *MandatoryRelease* زمانی را ثبت می‌کند که ویژگی به بخشی از "
199+
"زبان تبدیل شد؛ در نسخه‌های همان یا بعد از آن، ماژول‌ها دیگر برای استفاده از "
200+
"آن ویژگی نیازی به دستور future ندارند، اما می‌توانند به استفاده از چنین "
201+
"ایمپورت‌هایی ادامه دهند."
159202

160203
msgid "*MandatoryRelease* may also be ``None``, meaning that a planned feature got dropped or that it is not yet decided."
161204
msgstr ""
205+
"*MandatoryRelease* همچنین می‌تواند ``None`` باشد، به این معنی که یک ویژگی برنامه‌ریزی‌شده "
206+
"حذف شده است یا اینکه هنوز تصمیمی درباره‌ی آن گرفته نشده است."
162207

163208
msgid "*CompilerFlag* is the (bitfield) flag that should be passed in the fourth argument to the built-in function :func:`compile` to enable the feature in dynamically compiled code. This flag is stored in the :attr:`_Feature.compiler_flag` attribute on :class:`_Feature` instances."
164209
msgstr ""
210+
"*CompilerFlag* پرچم است که باید در آرگومان چهارم "
211+
"به تابع داخلی :func:`compile` ارسال شود تا ویژگی را در "
212+
"کد کامپایل‌شده‌ی پویا فعال کند. این پرچم در ویژگی :attr:`_Feature."
213+
"compiler_flag` در نمونه‌های :class:`_Feature` ذخیره می‌شود."
165214

166215
msgid "``from __future__ import annotations`` was previously scheduled to become mandatory in Python 3.10, but the change was delayed and ultimately canceled. This feature will eventually be deprecated and removed. See :pep:`649` and :pep:`749`."
167216
msgstr ""
217+
"``from __future__ import annotations`` قبلاً قرار بود در پایتون ۳.۱۰ "
218+
"اجباری شود، اما این تغییر به تعویق افتاد و در نهایت "
219+
"لغو شد. این ویژگی در نهایت منسوخ و حذف خواهد شد. برای اطلاعات بیشتر به :pep:"
220+
"`649` و :pep:`749` مراجعه کنید."
168221

169222
msgid ":ref:`future`"
170-
msgstr ""
223+
msgstr ":ref:`future`"
171224

172225
msgid "How the compiler treats future imports."
173-
msgstr ""
226+
msgstr "نحوه‌ی برخورد کامپایلر با ایمپورت‌های future"
174227

175228
msgid ":pep:`236` - Back to the __future__"
176-
msgstr ""
229+
msgstr ":pep:`236` - بازگشت به __future__"
177230

178231
msgid "The original proposal for the __future__ mechanism."
179-
msgstr ""
232+
msgstr "پیشنهاد اولیه برای مکانیزم __future__."

library/__main__.po

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,60 @@ msgstr ""
2626

2727
msgid "In Python, the special name ``__main__`` is used for two important constructs:"
2828
msgstr ""
29+
"در پایتون، از نام ویژه‌ی ``__main__`` برای دو ساختار مهم "
30+
"استفاده می‌شود:"
2931

3032
msgid "the name of the top-level environment of the program, which can be checked using the ``__name__ == '__main__'`` expression; and"
3133
msgstr ""
34+
"نام محیط سطح بالای برنامه، که می‌توان آن را با استفاده از عبارت "
35+
"``__name__ == '__main__'`` بررسی کرد؛ و"
3236

3337
msgid "the ``__main__.py`` file in Python packages."
34-
msgstr ""
38+
msgstr "فایل ``__main__.py`` در بسته‌های پایتون."
3539

3640
msgid "Both of these mechanisms are related to Python modules; how users interact with them and how they interact with each other. They are explained in detail below. If you're new to Python modules, see the tutorial section :ref:`tut-modules` for an introduction."
3741
msgstr ""
42+
"هر دوی این مکانیزم‌ها به ماژول‌های پایتون مربوط می‌شوند: نحوه‌ی تعامل کاربران "
43+
"با آن‌ها و نحوه‌ی تعامل آن‌ها با یکدیگر. این موارد در "
44+
"زیر به‌تفصیل توضیح داده شده‌اند. اگر با ماژول‌های پایتون تازه‌کار هستید، برای آشنایی به بخش آموزش :"
45+
"ref:`tut-modules` مراجعه کنید."
3846

3947
msgid "``__name__ == '__main__'``"
40-
msgstr ""
48+
msgstr "``__name__ == '__main__'``"
4149

4250
msgid "When a Python module or package is imported, ``__name__`` is set to the module's name. Usually, this is the name of the Python file itself without the ``.py`` extension::"
4351
msgstr ""
52+
"هنگامی که یک ماژول یا بستهٔ پایتون ایمپورت می‌شود، ``__name__`` به "
53+
"نام ماژول تنظیم می‌شود. معمولاً این همان نام فایل پایتون است بدون "
54+
"پسوند ``.py``::"
4455

4556
msgid ""
4657
">>> import configparser\n"
4758
">>> configparser.__name__\n"
4859
"'configparser'"
4960
msgstr ""
61+
">>> import configparser\n"
62+
">>> configparser.__name__\n"
63+
"'configparser'"
5064

5165
msgid "If the file is part of a package, ``__name__`` will also include the parent package's path::"
5266
msgstr ""
67+
"اگر فایل بخشی از یک بسته باشد، ``__name__`` همچنین مسیر بستهٔ والد را "
68+
"شامل خواهد شد::"
5369

5470
msgid ""
5571
">>> from concurrent.futures import process\n"
5672
">>> process.__name__\n"
5773
"'concurrent.futures.process'"
5874
msgstr ""
75+
">>> from concurrent.futures import process\n"
76+
">>> process.__name__\n"
77+
"'concurrent.futures.process'"
5978

6079
msgid "However, if the module is executed in the top-level code environment, its ``__name__`` is set to the string ``'__main__'``."
6180
msgstr ""
81+
"با این حال، اگر ماژول در محیط کد سطح بالا اجرا شود، "
82+
"``__name__`` آن به رشته‌ی ``'__main__'`` تنظیم می‌شود."
6283

6384
msgid "What is the \"top-level code environment\"?"
6485
msgstr ""

0 commit comments

Comments
 (0)