@@ -12,7 +12,7 @@ msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
1414"POT-Creation-Date : 2026-07-25 12:59+0330\n "
15- "PO-Revision-Date : 2021-06 -28 01:50+0000 \n "
15+ "PO-Revision-Date : 2026-07 -28 10:05+0330 \n "
1616"Last-Translator : Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025\n "
1717"Language-Team : Persian (https://app.transifex.com/python-doc/teams/5390/ "
1818"fa/)\n "
@@ -21,14 +21,15 @@ msgstr ""
2121"Content-Type : text/plain; charset=UTF-8\n "
2222"Content-Transfer-Encoding : 8bit\n "
2323"Plural-Forms : nplurals=2; plural=(n > 1);\n "
24+ "X-Generator : Poedit 3.6\n "
2425
2526#: ../../tutorial/interpreter.rst:5
2627msgid "Using the Python Interpreter"
27- msgstr ""
28+ msgstr "استفاده از مفسر پایتون "
2829
2930#: ../../tutorial/interpreter.rst:11
3031msgid "Invoking the Interpreter"
31- msgstr ""
32+ msgstr "فراخوانی مفسر "
3233
3334#: ../../tutorial/interpreter.rst:13
3435msgid ""
@@ -37,10 +38,14 @@ msgid ""
3738"available; putting :file:`/usr/local/bin` in your Unix shell's search path "
3839"makes it possible to start it by typing the command:"
3940msgstr ""
41+ "مفسر پایتون معمولاً روی سیستمهایی که در دسترس است، در مسیر |"
42+ "usr_local_bin_python_x_dot_y_literal| نصب میشود. اگر مسیر :file:`/usr/local/"
43+ "bin` را به مسیر جستوجوی شل یونیکس خود اضافه کنید، میتوانید با وارد کردن "
44+ "دستور زیر آن را اجرا کنید:"
4045
4146#: ../../tutorial/interpreter.rst:17
4247msgid "python3.14"
43- msgstr ""
48+ msgstr "python3.14 "
4449
4550#: ../../tutorial/interpreter.rst:21
4651msgid ""
@@ -49,6 +54,10 @@ msgid ""
4954"local Python guru or system administrator. (E.g., :file:`/usr/local/python` "
5055"is a popular alternative location.)"
5156msgstr ""
57+ "در شل. [#]_ از آنجا که انتخاب محل نصب مفسر به تنظیمات نصب بستگی دارد، ممکن "
58+ "است در مسیرهای دیگری نیز قرار داشته باشد؛ در این صورت با مسئول سیستم یا فرد "
59+ "آشنا با پایتون در سیستم خود مشورت کنید. (برای مثال، :file:`/usr/local/"
60+ "python` نیز محل رایج دیگری برای نصب است.)"
5261
5362#: ../../tutorial/interpreter.rst:26
5463msgid ""
@@ -58,6 +67,11 @@ msgid ""
5867"can use the :file:`py` command. See :ref:`setting-envvars` for other ways to "
5968"launch Python."
6069msgstr ""
70+ "در ویندوز، اگر پایتون را از :ref:`Microsoft Store <windows-store>` نصب کرده "
71+ "باشید، دستور |python_x_dot_y_literal| در دسترس خواهد بود. اگر :ref:`راهانداز "
72+ "py.exe <launcher>` را نیز نصب کرده باشید، میتوانید از دستور :file:`py` "
73+ "استفاده کنید. برای روشهای دیگر اجرای پایتون، به بخش :ref:`setting-envvars` "
74+ "مراجعه کنید."
6175
6276#: ../../tutorial/interpreter.rst:31
6377msgid ""
@@ -66,6 +80,9 @@ msgid ""
6680"exit status. If that doesn't work, you can exit the interpreter by typing "
6781"the following command: ``quit()``."
6882msgstr ""
83+ "با وارد کردن نویسهٔ پایان فایل (:kbd:`Control-D` در یونیکس و :kbd:`Control-Z` "
84+ "در ویندوز) در اعلان اصلی، مفسر با کد خروج صفر خاتمه مییابد. اگر این روش کار "
85+ "نکرد، میتوانید با وارد کردن دستور ``quit()`` از مفسر خارج شوید."
6986
7087#: ../../tutorial/interpreter.rst:36
7188msgid ""
@@ -79,6 +96,14 @@ msgid ""
7996"available; you'll only be able to use backspace to remove characters from "
8097"the current line."
8198msgstr ""
99+ "ویژگیهای ویرایش خط فرمان مفسر در بیشتر سیستمها شامل ویرایش تعاملی، جایگزینی "
100+ "تاریخچه و تکمیل خودکار کد است. شاید سریعترین راه برای بررسی پشتیبانی از "
101+ "ویرایش خط فرمان این باشد که در اعلان پایتون یک کلمه تایپ کنید و سپس کلید "
102+ "پیکان چپ (یا :kbd:`Control-b`) را فشار دهید. اگر مکاننما جابهجا شد، ویرایش "
103+ "خط فرمان پشتیبانی میشود؛ برای آشنایی با کلیدها به پیوست :ref:`tut-"
104+ "interacting` مراجعه کنید. اگر هیچ اتفاقی نیفتاد یا دنبالهای مانند ``^[[D`` "
105+ "یا ``^B`` نمایش داده شد، ویرایش خط فرمان در دسترس نیست و تنها میتوانید با "
106+ "کلید Backspace نویسههای خط جاری را حذف کنید."
82107
83108#: ../../tutorial/interpreter.rst:46
84109msgid ""
@@ -87,6 +112,10 @@ msgid ""
87112"interactively; when called with a file name argument or with a file as "
88113"standard input, it reads and executes a *script* from that file."
89114msgstr ""
115+ "عملکرد مفسر تا حدی شبیه شل یونیکس است: اگر ورودی استاندارد آن به یک دستگاه "
116+ "tty متصل باشد، دستورات را بهصورت تعاملی میخواند و اجرا میکند؛ اما اگر نام یک "
117+ "فایل یا خود فایل بهعنوان ورودی استاندارد به آن داده شود، *اسکریپت* موجود در "
118+ "آن فایل را میخواند و اجرا میکند."
90119
91120#: ../../tutorial/interpreter.rst:51
92121msgid ""
@@ -96,28 +125,41 @@ msgid ""
96125"or other characters that are special to the shell, it is usually advised to "
97126"quote *command* in its entirety."
98127msgstr ""
128+ "روش دیگر برای اجرای مفسر، استفاده از دستور ``python -c command [arg] ...`` "
129+ "است که دستور(های) موجود در *command* را اجرا میکند؛ مشابه گزینهٔ :option:`-c` "
130+ "در شل. از آنجا که دستورات پایتون معمولاً شامل فاصله یا نویسههایی هستند که "
131+ "برای شل معنای ویژهای دارند، معمولاً توصیه میشود کل *command* را داخل نقلقول "
132+ "قرار دهید."
99133
100134#: ../../tutorial/interpreter.rst:57
101135msgid ""
102136"Some Python modules are also useful as scripts. These can be invoked using "
103137"``python -m module [arg] ...``, which executes the source file for *module* "
104138"as if you had spelled out its full name on the command line."
105139msgstr ""
140+ "برخی از ماژولهای پایتون را نیز میتوان بهصورت اسکریپت اجرا کرد. این کار با "
141+ "استفاده از دستور ``python -m module [arg] ...`` انجام میشود که فایل مبدأ "
142+ "مربوط به *module* را طوری اجرا میکند که گویی نام کامل آن را در خط فرمان وارد "
143+ "کردهاید."
106144
107145#: ../../tutorial/interpreter.rst:61
108146msgid ""
109147"When a script file is used, it is sometimes useful to be able to run the "
110148"script and enter interactive mode afterwards. This can be done by "
111149"passing :option:`-i` before the script."
112150msgstr ""
151+ "هنگامی که یک فایل اسکریپت اجرا میشود، گاهی مفید است که پس از پایان اجرای "
152+ "اسکریپت وارد حالت تعاملی شوید. این کار با قرار دادن گزینهٔ :option:`-i` پیش "
153+ "از نام اسکریپت امکانپذیر است."
113154
114155#: ../../tutorial/interpreter.rst:65
115156msgid "All command line options are described in :ref:`using-on-general`."
116157msgstr ""
158+ "همهٔ گزینههای خط فرمان در بخش :ref:`using-on-general` توضیح داده شدهاند."
117159
118160#: ../../tutorial/interpreter.rst:71
119161msgid "Argument Passing"
120- msgstr ""
162+ msgstr "ارسال آرگومانها "
121163
122164#: ../../tutorial/interpreter.rst:73
123165msgid ""
@@ -134,10 +176,22 @@ msgid ""
134176"interpreter's option processing but left in ``sys.argv`` for the command or "
135177"module to handle."
136178msgstr ""
179+ "اگر مفسر نام اسکریپت و آرگومانهای پس از آن را دریافت کند، آنها را به فهرستی "
180+ "از رشتهها تبدیل کرده و در متغیر ``argv`` از ماژول ``sys`` قرار میدهد. با "
181+ "اجرای ``import sys`` میتوانید به این فهرست دسترسی داشته باشید. طول این فهرست "
182+ "همیشه حداقل یک است؛ اگر هیچ اسکریپت یا آرگومانی ارائه نشود، مقدار "
183+ "``sys.argv[0]`` یک رشتهٔ خالی خواهد بود. اگر نام اسکریپت ``'-'`` باشد (به "
184+ "معنی ورودی استاندارد)، مقدار ``sys.argv[0]`` برابر ``'-'`` خواهد بود. هنگام "
185+ "استفاده از :option:`-c` *command*، مقدار ``sys.argv[0]`` برابر ``'-c'`` است. "
186+ "هنگام استفاده از :option:`-m` *module*، مقدار ``sys.argv[0]`` برابر نام کامل "
187+ "ماژول پیداشده خواهد بود. گزینههایی که پس از :option:`-c` *command* "
188+ "یا :option:`-m` *module* قرار میگیرند، توسط مفسر پایتون پردازش نمیشوند و "
189+ "بدون تغییر در ``sys.argv`` باقی میمانند تا خود دستور یا ماژول آنها را پردازش "
190+ "کند."
137191
138192#: ../../tutorial/interpreter.rst:89
139193msgid "Interactive Mode"
140- msgstr ""
194+ msgstr "حالت تعاملی "
141195
142196#: ../../tutorial/interpreter.rst:91
143197msgid ""
@@ -148,6 +202,12 @@ msgid ""
148202"dots (``...``). The interpreter prints a welcome message stating its version "
149203"number and a copyright notice before printing the first prompt:"
150204msgstr ""
205+ "وقتی دستورات از یک tty خوانده میشوند، گفته میشود که مفسر در *حالت تعاملی* "
206+ "قرار دارد. در این حالت، مفسر برای دریافت دستور بعدی، *اعلان اصلی* را نمایش "
207+ "میدهد که معمولاً شامل سه علامت بزرگتر از (``>>>``) است. برای خطوط ادامه نیز "
208+ "*اعلان ثانویه* را نمایش میدهد که بهطور پیشفرض سه نقطه (``...``) است. پیش از "
209+ "نمایش اولین اعلان، مفسر پیام خوشامدگویی شامل شمارهٔ نسخه و اطلاعیهٔ حق نشر را "
210+ "چاپ میکند:"
151211
152212#: ../../tutorial/interpreter.rst:98
153213msgid ""
@@ -158,12 +218,20 @@ msgid ""
158218"information.\n"
159219">>>"
160220msgstr ""
221+ "$ python3.14\n"
222+ "Python 3.14 (default, April 4 2024, 09:25:04)\n"
223+ "[GCC 10.2.0] on linux\n"
224+ "Type \" help\" , \" copyright\" , \" credits\" or \" license\" for more "
225+ "information.\n"
226+ ">>>"
161227
162228#: ../../tutorial/interpreter.rst:108
163229msgid ""
164230"Continuation lines are needed when entering a multi-line construct. As an "
165231"example, take a look at this :keyword:`if` statement::"
166232msgstr ""
233+ "خطوط ادامه زمانی لازم هستند که در حال وارد کردن یک سازهٔ چندخطی باشید. برای "
234+ "نمونه، به دستور :keyword:`if` زیر توجه کنید::"
167235
168236#: ../../tutorial/interpreter.rst:111
169237msgid ""
@@ -173,18 +241,24 @@ msgid ""
173241"...\n"
174242"Be careful not to fall off!"
175243msgstr ""
244+ ">>> the_world_is_flat = True\n"
245+ ">>> if the_world_is_flat:\n"
246+ "... print(\" Be careful not to fall off!\" )\n"
247+ "...\n"
248+ "Be careful not to fall off!"
176249
177250#: ../../tutorial/interpreter.rst:118
178251msgid "For more on interactive mode, see :ref:`tut-interac`."
179252msgstr ""
253+ "برای اطلاعات بیشتر دربارهٔ حالت تعاملی، به بخش :ref:`tut-interac` مراجعه کنید."
180254
181255#: ../../tutorial/interpreter.rst:124
182256msgid "The Interpreter and Its Environment"
183- msgstr ""
257+ msgstr "مفسر و محیط آن "
184258
185259#: ../../tutorial/interpreter.rst:130
186260msgid "Source Code Encoding"
187- msgstr ""
261+ msgstr "کدگذاری فایلهای مبدأ "
188262
189263#: ../../tutorial/interpreter.rst:132
190264msgid ""
@@ -196,51 +270,71 @@ msgid ""
196270"properly, your editor must recognize that the file is UTF-8, and it must use "
197271"a font that supports all the characters in the file."
198272msgstr ""
273+ "بهطور پیشفرض، فایلهای مبدأ پایتون با کدگذاری UTF-8 در نظر گرفته میشوند. در "
274+ "این کدگذاری، میتوان نویسههای بیشتر زبانهای دنیا را بهطور همزمان در رشتهها، "
275+ "شناسهها و توضیحات به کار برد؛ هرچند کتابخانهٔ استاندارد فقط از نویسههای ASCII "
276+ "برای شناسهها استفاده میکند، که این رویه برای کدهای قابلحمل نیز توصیه میشود. "
277+ "برای نمایش صحیح همهٔ این نویسهها، ویرایشگر شما باید فایل را بهعنوان UTF-8 "
278+ "تشخیص دهد و از قلمی استفاده کند که از تمام نویسههای موجود در فایل پشتیبانی "
279+ "کند."
199280
200281#: ../../tutorial/interpreter.rst:140
201282msgid ""
202283"To declare an encoding other than the default one, a special comment line "
203284"should be added as the *first* line of the file. The syntax is as follows::"
204285msgstr ""
286+ "برای اعلام کدگذاریای غیر از کدگذاری پیشفرض، باید یک خط توضیح ویژه را بهعنوان "
287+ "*اولین* خط فایل اضافه کنید. قالب آن به شکل زیر است::"
205288
206289#: ../../tutorial/interpreter.rst:143
207290msgid "# -*- coding: encoding -*-"
208- msgstr ""
291+ msgstr "# -*- coding: encoding -*- "
209292
210293#: ../../tutorial/interpreter.rst:145
211294msgid "where *encoding* is one of the valid :mod:`codecs` supported by Python."
212295msgstr ""
296+ "که در آن *encoding* یکی از کدگذاریهای معتبر پشتیبانیشده توسط "
297+ "ماژول :mod:`codecs` است."
213298
214299#: ../../tutorial/interpreter.rst:147
215300msgid ""
216301"For example, to declare that Windows-1252 encoding is to be used, the first "
217302"line of your source code file should be::"
218303msgstr ""
304+ "برای مثال، اگر بخواهید از کدگذاری Windows-1252 استفاده کنید، اولین خط فایل "
305+ "مبدأ شما باید به شکل زیر باشد::"
219306
220307#: ../../tutorial/interpreter.rst:150
221308msgid "# -*- coding: cp1252 -*-"
222- msgstr ""
309+ msgstr "# -*- coding: cp1252 -*- "
223310
224311#: ../../tutorial/interpreter.rst:152
225312msgid ""
226313"One exception to the *first line* rule is when the source code starts with "
227314"a :ref:`UNIX \" shebang\" line <tut-scripts>`. In this case, the encoding "
228315"declaration should be added as the second line of the file. For example::"
229316msgstr ""
317+ "یک استثنا برای قانون *اولین خط* زمانی است که فایل مبدأ با یک :ref:`خط "
318+ "«shebang» یونیکس <tut-scripts>` آغاز شود. در این صورت، اعلان کدگذاری باید در "
319+ "خط دوم فایل قرار گیرد. برای مثال::"
230320
231321#: ../../tutorial/interpreter.rst:156
232322msgid ""
233323"#!/usr/bin/env python3\n"
234324"# -*- coding: cp1252 -*-"
235325msgstr ""
326+ "#!/usr/bin/env python3\n"
327+ "# -*- coding: cp1252 -*-"
236328
237329#: ../../tutorial/interpreter.rst:160
238330msgid "Footnotes"
239- msgstr ""
331+ msgstr "پانویسها "
240332
241333#: ../../tutorial/interpreter.rst:161
242334msgid ""
243335"On Unix, the Python 3.x interpreter is by default not installed with the "
244336"executable named ``python``, so that it does not conflict with a "
245337"simultaneously installed Python 2.x executable."
246338msgstr ""
339+ "در یونیکس، مفسر Python 3.x بهطور پیشفرض با نام اجرایی ``python`` نصب نمیشود "
340+ "تا با نسخهٔ همزمان نصبشدهٔ Python 2.x تداخلی نداشته باشد."
0 commit comments