-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathwindows.po
More file actions
233 lines (175 loc) · 31.6 KB
/
Copy pathwindows.po
File metadata and controls
233 lines (175 loc) · 31.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Danial Behzadi <dani.behzi@ubuntu.com>, 2025
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
# Revisto <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-16 12:56+0000\n"
"PO-Revision-Date: 2026-09-15 11:32+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid "Python on Windows FAQ"
msgstr "پرسشهای متداول دربارهی پایتون در ویندوز"
msgid "Contents"
msgstr "محتویات"
msgid "How do I run a Python program under Windows?"
msgstr "چگونه یک برنامه پایتون را در ویندوز اجرا کنم؟"
msgid "This is not necessarily a straightforward question. If you are already familiar with running programs from the Windows command line then everything will seem obvious; otherwise, you might need a little more guidance."
msgstr "این لزوماً پرسش سادهای نیست. اگر از قبل با اجرای برنامهها از طریق خط فرمان ویندوز آشنا هستید، همهچیز بدیهی به نظر خواهد رسید؛ در غیر این صورت، ممکن است به کمی راهنمایی بیشتری نیاز داشته باشید."
msgid "Unless you use some sort of integrated development environment, you will end up *typing* Windows commands into what is referred to as a \"Command prompt window\". Usually you can create such a window from your search bar by searching for ``cmd``. You should be able to recognize when you have started such a window because you will see a Windows \"command prompt\", which usually looks like this:"
msgstr "مگر اینکه از نوعی محیط توسعه یکپارچه استفاده کنید، در نهایت دستورات ویندوز را در آنچه «پنجره خط فرمان» نامیده میشود، *تایپ* خواهید کرد. معمولاً میتوانید چنین پنجرهای را از نوار جستوجوی خود با جستوجوی ``cmd`` ایجاد کنید. باید بتوانید تشخیص دهید که چنین پنجرهای را راهاندازی کردهاید، زیرا «خط فرمان» ویندوز را خواهید دید که معمولاً به این شکل است:"
msgid "C:\\>"
msgstr "C:\\>"
msgid "The letter may be different, and there might be other things after it, so you might just as easily see something like:"
msgstr "ممکن است حرف متفاوت باشد و ممکن است چیزهای دیگری بعد از آن وجود داشته باشد، بنابراین ممکن است بههمینآسانی چیزی مانند این را ببینید:"
msgid "D:\\YourName\\Projects\\Python>"
msgstr "D:\\YourName\\Projects\\Python>"
msgid "depending on how your computer has been set up and what else you have recently done with it. Once you have started such a window, you are well on the way to running Python programs."
msgstr "بسته به این که رایانهی شما چگونه پیکربندی شده است و اخیراً چه کارهای دیگری با آن انجام دادهاید. پس از راهاندازی چنین پنجرهای، بهخوبی در مسیر اجرای برنامههای پایتون هستید."
msgid "You need to realize that your Python scripts have to be processed by another program called the Python *interpreter*. The interpreter reads your script, compiles it into bytecodes, and then executes the bytecodes to run your program. So, how do you arrange for the interpreter to handle your Python?"
msgstr "باید بدانید که اسکریپتهای پایتون شما باید بهوسیلهی برنامهی دیگری به نام *مفسر* پایتون پردازش شوند. مفسر اسکریپت شما را میخواند، آن را به بایتکدها کامپایل میکند و سپس بایتکدها را اجرا میکند تا برنامهی شما اجرا شود. بنابراین، چگونه ترتیب میدهید که مفسر پایتون شما را پردازش کند؟"
msgid "First, you need to make sure that your command window recognises the word \"py\" as an instruction to start the interpreter. If you have opened a command window, you should try entering the command ``py`` and hitting return:"
msgstr "ابتدا باید اطمینان حاصل کنید که پنجره خط فرمان شما واژه «py» را بهعنوان دستوری برای راهاندازی مفسر میشناسد. اگر یک پنجره خط فرمان باز کردهاید، باید فرمان ``py`` را وارد کرده و کلید بازگشت را بزنید:"
msgid "C:\\Users\\YourName> py"
msgstr "C:\\Users\\YourName> py"
msgid "You should then see something like:"
msgstr "سپس باید چیزی شبیه به این ببینید:"
msgid ""
"Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32\n"
"Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n"
">>>"
msgstr ""
"Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32\n"
"Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n"
">>>"
msgid "You have started the interpreter in \"interactive mode\". That means you can enter Python statements or expressions interactively and have them executed or evaluated while you wait. This is one of Python's strongest features. Check it by entering a few expressions of your choice and seeing the results:"
msgstr "شما مفسر را در «حالت تعاملی» راهاندازی کردهاید. این بدان معناست که میتوانید دستورها یا عبارتهای Python را بهصورت تعاملی وارد کنید و در حالی که منتظر میمانید، آنها اجرا یا ارزیابی شوند. این یکی از قویترین ویژگیهای Python است. با وارد کردن چند عبارت دلخواه خود و دیدن نتایج، آن را بررسی کنید:"
msgid ""
">>> print(\"Hello\")\n"
"Hello\n"
">>> \"Hello\" * 3\n"
"'HelloHelloHello'"
msgstr ""
">>> print(\"Hello\")\n"
"Hello\n"
">>> \"Hello\" * 3\n"
"'HelloHelloHello'"
msgid "Many people use the interactive mode as a convenient yet highly programmable calculator. When you want to end your interactive Python session, call the :func:`exit` function or hold the :kbd:`Ctrl` key down while you enter a :kbd:`Z`, then hit the \":kbd:`Enter`\" key to get back to your Windows command prompt."
msgstr "بسیاری از افراد از حالت تعاملی بهعنوان ماشینحسابی راحت و در عین حال بسیار برنامهپذیر استفاده میکنند. هنگامی که میخواهید نشست تعاملی پایتون خود را پایان دهید، تابع :func:`exit` را فراخوانی کنید یا کلید :kbd:`Ctrl` را پایین نگه دارید و همزمان :kbd:`Z` را وارد کنید، سپس کلید \":kbd:`Enter`\" را فشار دهید تا به خط فرمان ویندوز خود بازگردید."
msgid "You may also find that you have a Start-menu entry such as :menuselection:`Start --> Programs --> Python 3.x --> Python (command line)` that results in you seeing the ``>>>`` prompt in a new window. If so, the window will disappear after you call the :func:`exit` function or enter the :kbd:`Ctrl-Z` character; Windows is running a single \"python\" command in the window, and closes it when you terminate the interpreter."
msgstr "ممکن است همچنین یک ورودی منوی Start مانند :menuselection:`Start --> Programs --> Python 3.x --> Python (command line)` داشته باشید که باعث میشود اعلان ``>>>`` را در پنجرهای جدید ببینید. در این صورت، پنجره پس از اینکه تابع :func:`exit` را فراخوانی کنید یا نویسهی :kbd:`Ctrl-Z` را وارد کنید ناپدید خواهد شد؛ ویندوز در حال اجرای یک فرمان \"python\" واحد در پنجره است و هنگامی که مفسر را خاتمه دهید، آن را میبندد."
msgid "Now that we know the ``py`` command is recognized, you can give your Python script to it. You'll have to give either an absolute or a relative path to the Python script. Let's say your Python script is located in your desktop and is named ``hello.py``, and your command prompt is nicely opened in your home directory so you're seeing something similar to::"
msgstr "اکنون که میدانیم دستور ``py`` شناخته میشود، میتوانید اسکریپت پایتون خود را به آن بدهید. شما باید مسیر مطلق یا نسبی اسکریپت پایتون را به آن بدهید. فرض کنید اسکریپت پایتون شما روی دسکتاپ شما قرار دارد و نام آن ``hello.py`` است، و خط فرمان شما بهخوبی در پوشه خانه شما باز است، بنابراین چیزی مشابه زیر را میبینید::"
msgid "C:\\Users\\YourName>"
msgstr "C:\\Users\\YourName>"
msgid "So now you'll ask the ``py`` command to give your script to Python by typing ``py`` followed by your script path::"
msgstr "بنابراین اکنون با تایپ ``py`` و سپس مسیر اسکریپتتان، از دستور ``py`` میخواهید که اسکریپت شما را به پایتون بدهد::"
msgid ""
"C:\\Users\\YourName> py Desktop\\hello.py\n"
"hello"
msgstr ""
"C:\\Users\\YourName> py Desktop\\hello.py\n"
"hello"
msgid "How do I make Python scripts executable?"
msgstr "چگونه اسکریپتهای پایتون را قابلاجرا کنم؟"
msgid "On Windows, the standard Python installer already associates the .py extension with a file type (Python.File) and gives that file type an open command that runs the interpreter (``D:\\Program Files\\Python\\python.exe \"%1\" %*``). This is enough to make scripts executable from the command prompt as 'foo.py'. If you'd rather be able to execute the script by simple typing 'foo' with no extension you need to add .py to the PATHEXT environment variable."
msgstr "در ویندوز، نصبکننده استاندارد پایتون از قبل پسوند .py را به یک نوع پرونده (Python.File) مرتبط میکند و به آن نوع پرونده یک دستور باز کردن میدهد که مفسر را اجرا میکند (``D:\\Program Files\\Python\\python.exe \"%1\" %*``). این کافی است تا اسکریپتها از خط فرمان بهصورت 'foo.py' قابل اجرا شوند. اگر ترجیح میدهید بتوانید اسکریپت را صرفاً با تایپ 'foo' بدون پسوند اجرا کنید، باید .py را به متغیر محیطی PATHEXT اضافه کنید."
msgid "Why does Python sometimes take so long to start?"
msgstr "چرا راهاندازی پایتون گاهی اوقات اینقدر طول میکشد؟"
msgid "Usually Python starts very quickly on Windows, but occasionally there are bug reports that Python suddenly begins to take a long time to start up. This is made even more puzzling because Python will work fine on other Windows systems which appear to be configured identically."
msgstr "معمولاً پایتون در ویندوز بسیار سریع راهاندازی میشود، اما گاهی گزارشهایی از اشکال وجود دارد که راهاندازی پایتون ناگهان زمانبر میشود. این موضوع حتی گیجکنندهتر میشود، زیرا پایتون در سایر سیستمهای ویندوزی که به نظر میرسد پیکربندی یکسانی دارند، بهخوبی کار میکند."
msgid "The problem may be caused by a misconfiguration of virus checking software on the problem machine. Some virus scanners have been known to introduce startup overhead of two orders of magnitude when the scanner is configured to monitor all reads from the filesystem. Try checking the configuration of virus scanning software on your systems to ensure that they are indeed configured identically. McAfee, when configured to scan all file system read activity, is a particular offender."
msgstr "ممکن است این مشکل به دلیل پیکربندی نادرست نرمافزار ضدویروس روی سیستم مشکلدار باشد. شناخته شده است که برخی اسکنرهای ضدویروس، وقتی اسکنر برای پایش تمام خواندنها از سامانه فایلبندی پیکربندی شود، سربار راهاندازی را تا ۲ مرتبه بزرگی افزایش میدهند. پیکربندی نرمافزار اسکن ضدویروس روی سیستمهای خود را بررسی کنید تا اطمینان حاصل شود که واقعاً بهطور یکسان پیکربندی شدهاند. McAfee، وقتی برای اسکن تمام فعالیتهای خواندن سامانه فایلبندی پیکربندی شود، بهطور ویژهای مشکلساز است."
msgid "How do I make an executable from a Python script?"
msgstr "چگونه از یک اسکریپت پایتون یک پرونده اجرایی بسازم؟"
msgid "See :ref:`faq-create-standalone-binary` for a list of tools that can be used to make executables."
msgstr "برای فهرستی از ابزارهایی که میتوان برای ساخت پروندههای اجرایی از آنها استفاده کرد، :ref:`faq-create-standalone-binary` را ببینید."
msgid "Is a ``*.pyd`` file the same as a DLL?"
msgstr "آیا پرونده ``*.pyd`` همان DLL است؟"
msgid "Yes, .pyd files are dll's, but there are a few differences. If you have a DLL named ``foo.pyd``, then it must have a function ``PyInit_foo()``. You can then write Python \"import foo\", and Python will search for foo.pyd (as well as foo.py, foo.pyc) and if it finds it, will attempt to call ``PyInit_foo()`` to initialize it. You do not link your .exe with foo.lib, as that would cause Windows to require the DLL to be present."
msgstr "بله، پروندههای .pyd، DLL هستند، اما چند تفاوت وجود دارد. اگر یک DLL با نام ``foo.pyd`` دارید، باید تابعی به نام ``PyInit_foo()`` داشته باشد. سپس میتوانید در پایتون «import foo» را بنویسید، و پایتون foo.pyd (و همچنین foo.py و foo.pyc) را جستجو میکند و در صورت یافتن آن، تلاش میکند ``PyInit_foo()`` را فراخوانی کند تا آن را مقداردهی اولیه کند. شما پرونده .exe خود را با foo.lib پیوند نمیدهید، زیرا این کار باعث میشود ویندوز نیازمند موجود بودن DLL باشد."
msgid "Note that the search path for foo.pyd is PYTHONPATH, not the same as the path that Windows uses to search for foo.dll. Also, foo.pyd need not be present to run your program, whereas if you linked your program with a dll, the dll is required. Of course, foo.pyd is required if you want to say ``import foo``. In a DLL, linkage is declared in the source code with ``__declspec(dllexport)``. In a .pyd, linkage is defined in a list of available functions."
msgstr "توجه داشته باشید که مسیر جستجو برای foo.pyd، PYTHONPATH است و با مسیری که ویندوز برای جستجوی foo.dll از آن استفاده میکند، یکسان نیست. همچنین، برای اجرای برنامهتان لازم نیست foo.pyd وجود داشته باشد، در حالی که اگر برنامهتان را با یک DLL پیوند داده باشید، آن DLL مورد نیاز است. البته، اگر بخواهید ``import foo`` را بنویسید، foo.pyd مورد نیاز است. در یک DLL، پیوند در کد منبع با ``__declspec(dllexport)`` اعلام میشود. در یک .pyd، پیوند در فهرستی از توابع موجود تعریف میشود."
msgid "How can I embed Python into a Windows application?"
msgstr "چگونه میتوانم پایتون را در یک برنامه ویندوزی تعبیه کنم؟"
msgid "Embedding the Python interpreter in a Windows app can be summarized as follows:"
msgstr "تعبیه مفسر پایتون در یک برنامه ویندوزی را میتوان بهصورت زیر خلاصه کرد:"
msgid "Do **not** build Python into your .exe file directly. On Windows, Python must be a DLL to handle importing modules that are themselves DLL's. (This is the first key undocumented fact.) Instead, link to :file:`python{NN}.dll`; it is typically installed in ``C:\\Windows\\System``. *NN* is the Python version, a number such as \"33\" for Python 3.3."
msgstr "پایتون را مستقیماً در پرونده .exe خود **قرار ندهید**. در ویندوز، پایتون باید یک DLL باشد تا بتواند ایمپورت ماژولهایی را که خودشان DLL هستند مدیریت کند. (این نخستین نکته کلیدی مستندنشده است.) در عوض، به :file:`python{NN}.dll` پیوند دهید؛ این پرونده معمولاً در ``C:\\Windows\\System`` نصب شده است. *NN* نسخه پایتون است، عددی مانند «33» برای پایتون 3.3."
msgid "You can link to Python in two different ways. Load-time linking means linking against :file:`python{NN}.lib`, while run-time linking means linking against :file:`python{NN}.dll`. (General note: :file:`python{NN}.lib` is the so-called \"import lib\" corresponding to :file:`python{NN}.dll`. It merely defines symbols for the linker.)"
msgstr "شما میتوانید به دو روش مختلف به Python پیوند بدهید. پیوند در زمان بارگذاری به معنای پیوند دادن با :file:`python{NN}.lib` است، در حالی که پیوند در رانتایم به معنای پیوند دادن با :file:`python{NN}.dll` است. (نکته عمومی: :file:`python{NN}.lib` بهاصطلاح کتابخانه ایمپورت (import lib) متناظر با :file:`python{NN}.dll` است. این پرونده صرفاً نمادها را برای پیونددهنده تعریف میکند.)"
msgid "Run-time linking greatly simplifies link options; everything happens at run time. Your code must load :file:`python{NN}.dll` using the Windows ``LoadLibraryEx()`` routine. The code must also use access routines and data in :file:`python{NN}.dll` (that is, Python's C API's) using pointers obtained by the Windows ``GetProcAddress()`` routine. Macros can make using these pointers transparent to any C code that calls routines in Python's C API."
msgstr "پیوندسازی در رانتایم، گزینههای پیوند را بهطور چشمگیری ساده میکند؛ همهچیز در رانتایم اتفاق میافتد. کد شما باید :file:`python{NN}.dll` را با استفاده از روتین ``LoadLibraryEx()`` ویندوز بارگذاری کند. این کد همچنین باید از روتینهای دسترسی و دادههای موجود در :file:`python{NN}.dll` (یعنی API C پایتون) از طریق اشارهگرهای دریافتشده از روتین ``GetProcAddress()`` ویندوز استفاده کند. ماکروها میتوانند استفاده از این اشارهگرها را برای هر کد C که روتینهای API C پایتون را فراخوانی میکند، شفاف کنند."
msgid "If you use SWIG, it is easy to create a Python \"extension module\" that will make the app's data and methods available to Python. SWIG will handle just about all the grungy details for you. The result is C code that you link *into* your .exe file (!) You do **not** have to create a DLL file, and this also simplifies linking."
msgstr "اگر از SWIG استفاده کنید، ایجاد یک «ماژول توسعهای» برای پایتون آسان است که دادهها و متدهای برنامه را در دسترس پایتون قرار میدهد. SWIG تقریباً تمام جزئیات ناخوشایند را برای شما مدیریت میکند. نتیجه کد C است که شما آن را *به درون* پرونده .exe خود پیوند میدهید (!) شما **نیازی** به ایجاد یک پرونده DLL ندارید، و این موضوع نیز پیوند دادن را سادهتر میکند."
msgid "SWIG will create an init function (a C function) whose name depends on the name of the extension module. For example, if the name of the module is leo, the init function will be called initleo(). If you use SWIG shadow classes, as you should, the init function will be called initleoc(). This initializes a mostly hidden helper class used by the shadow class."
msgstr "SWIG یک تابع مقداردهی اولیه (یک تابع C) ایجاد میکند که نام آن به نام ماژول الحاقی بستگی دارد. برای مثال، اگر نام ماژول leo باشد، تابع مقداردهی اولیه با نام initleo() خواهد بود. اگر از کلاسهای سایه SWIG (shadow classes) استفاده کنید، همانطور که باید، تابع مقداردهی اولیه با نام initleoc() خواهد بود. این تابع یک کلاس کمکی عمدتاً پنهان را مقداردهی اولیه میکند که توسط کلاس سایه استفاده میشود."
msgid "The reason you can link the C code in step 2 into your .exe file is that calling the initialization function is equivalent to importing the module into Python! (This is the second key undocumented fact.)"
msgstr "دلیل اینکه میتوانید کد C را در مرحلهی ۲ به پرونده .exe خود پیوند دهید این است که فراخوانی تابع مقداردهی اولیه معادل ایمپورت کردن ماژول به پایتون است! (این دومین واقعیت کلیدی مستندنشده است.)"
msgid "In short, you can use the following code to initialize the Python interpreter with your extension module."
msgstr "بهطور خلاصه، میتوانید از کد زیر برای مقداردهی اولیه مفسر پایتون با ماژول توسعهای خود استفاده کنید."
msgid ""
"#include <Python.h>\n"
"...\n"
"Py_Initialize(); // Initialize Python.\n"
"initmyAppc(); // Initialize (import) the helper class.\n"
"PyRun_SimpleString(\"import myApp\"); // Import the shadow class."
msgstr ""
"#include <Python.h>\n"
"...\n"
"Py_Initialize(); // Initialize Python.\n"
"initmyAppc(); // Initialize (import) the helper class.\n"
"PyRun_SimpleString(\"import myApp\"); // Import the shadow class."
msgid "There are two problems with Python's C API which will become apparent if you use a compiler other than MSVC, the compiler used to build pythonNN.dll."
msgstr "دو مشکل در C API پایتون وجود دارد که اگر از کامپایلری غیر از MSVC، کامپایلری که برای ساخت pythonNN.dll استفاده شده است، استفاده کنید، آشکار خواهند شد."
msgid "Problem 1: The so-called \"Very High Level\" functions that take ``FILE *`` arguments will not work in a multi-compiler environment because each compiler's notion of a ``struct FILE`` will be different. From an implementation standpoint these are very low level functions."
msgstr "مشکل ۱: بهاصطلاح توابع «بسیار سطح بالا» که آرگومانهای ``FILE *`` میگیرند، در محیطی با چند کامپایلر کار نخواهند کرد، زیرا درک هر کامپایلر از ``struct FILE`` متفاوت خواهد بود. از دیدگاه پیادهسازی، اینها توابع بسیار سطح پایینی هستند."
msgid "Problem 2: SWIG generates the following code when generating wrappers to void functions:"
msgstr "مشکل ۲: SWIG هنگام تولید پوششها برای توابع void، کد زیر را تولید میکند:"
msgid ""
"Py_INCREF(Py_None);\n"
"_resultobj = Py_None;\n"
"return _resultobj;"
msgstr ""
"Py_INCREF(Py_None);\n"
"_resultobj = Py_None;\n"
"return _resultobj;"
msgid "Alas, Py_None is a macro that expands to a reference to a complex data structure called _Py_NoneStruct inside pythonNN.dll. Again, this code will fail in a mult-compiler environment. Replace such code by:"
msgstr "متأسفانه، Py_None یک ماکرو است که به ارجاعی به یک ساختار داده پیچیده به نام _Py_NoneStruct در pythonNN.dll بسط مییابد. باز هم، این کد در یک محیط چندکامپایلری شکست خواهد خورد. چنین کدی را با این جایگزین کنید:"
msgid "return Py_BuildValue(\"\");"
msgstr "return Py_BuildValue(\"\");"
msgid "It may be possible to use SWIG's ``%typemap`` command to make the change automatically, though I have not been able to get this to work (I'm a complete SWIG newbie)."
msgstr "ممکن است بتوان از دستور ``%typemap`` مربوط به SWIG برای ایجاد تغییر بهصورت خودکار استفاده کرد، هرچند من نتوانستهام آن را به کار بیندازم (من در SWIG کاملاً تازهکار هستم)."
msgid "Using a Python shell script to put up a Python interpreter window from inside your Windows app is not a good idea; the resulting window will be independent of your app's windowing system. Rather, you (or the wxPythonWindow class) should create a \"native\" interpreter window. It is easy to connect that window to the Python interpreter. You can redirect Python's i/o to _any_ object that supports read and write, so all you need is a Python object (defined in your extension module) that contains read() and write() methods."
msgstr "استفاده از یک اسکریپت پوسته پایتون برای باز کردن یک پنجرهی مفسر پایتون از داخل برنامهی ویندوزی شما ایدهی خوبی نیست؛ پنجرهی حاصل، مستقل از سیستم پنجرهبندی برنامهی شما خواهد بود. در عوض، شما (یا کلاس wxPythonWindow) باید یک پنجرهی مفسر «بومی» ایجاد کنید. اتصال آن پنجره به مفسر پایتون آسان است. شما میتوانید ورودی/خروجی پایتون را به _هر_ شیء که از read و write پشتیبانی میکند تغییر مسیر دهید، بنابراین تنها چیزی که نیاز دارید، یک شیء پایتون (تعریفشده در ماژول توسعه شما) است که شامل متدهای read() و write() باشد."
msgid "How do I keep editors from inserting tabs into my Python source?"
msgstr "چگونه از درج تبها توسط ویرایشگرها در کد منبع پایتون خود جلوگیری کنم؟"
msgid "The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`, recommends 4 spaces for distributed Python code; this is also the Emacs python-mode default."
msgstr "در پرسشهای متداول، استفاده از تبها توصیه نمیشود، و راهنمای سبک پایتون، :pep:`8`، برای کد پایتون توزیعشده ۴ فاصله را توصیه میکند؛ این، پیشفرض python-mode در Emacs نیز هست."
msgid "Under any editor, mixing tabs and spaces is a bad idea. MSVC is no different in this respect, and is easily configured to use spaces: Take :menuselection:`Tools --> Options --> Tabs`, and for file type \"Default\" set \"Tab size\" and \"Indent size\" to 4, and select the \"Insert spaces\" radio button."
msgstr "در هر ویرایشگری، ترکیب تبها و فاصلهها ایده خوبی نیست. MSVC در این زمینه تفاوتی ندارد و بهراحتی برای استفاده از فاصلهها پیکربندی میشود: :menuselection:`Tools --> Options --> Tabs` را انتخاب کنید، و برای نوع پرونده \"Default\" مقادیر \"Tab size\" و \"Indent size\" را روی ۴ تنظیم کنید و دکمه رادیویی \"Insert spaces\" را انتخاب کنید."
msgid "Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs and spaces are causing problems in leading whitespace. You may also run the :mod:`tabnanny` module to check a directory tree in batch mode."
msgstr "پایتون در صورتی که ترکیبی از تبها و فاصلهها در فضای سفید ابتدایی مشکل ایجاد کند، :exc:`IndentationError` یا :exc:`TabError` را پرتاب میکند. همچنین میتوانید ماژول :mod:`tabnanny` را برای بررسی یک درخت پوشه در حالت دستهای اجرا کنید."
msgid "How do I check for a keypress without blocking?"
msgstr "چگونه بدون مسدود شدن، فشردن یک کلید را بررسی کنم؟"
msgid "Use the :mod:`msvcrt` module. This is a standard Windows-specific extension module. It defines a function ``kbhit()`` which checks whether a keyboard hit is present, and ``getch()`` which gets one character without echoing it."
msgstr "از ماژول :mod:`msvcrt` استفاده کنید. این یک ماژول توسعهای استاندارد مختص ویندوز است. این ماژول تابع ``kbhit()`` را تعریف میکند که بررسی میکند آیا ضربهای به صفحهکلید وارد شده است یا خیر، و ``getch()`` که یک نویسه را بدون بازتاب آن دریافت میکند."
msgid "How do I solve the missing api-ms-win-crt-runtime-l1-1-0.dll error?"
msgstr "چگونه خطای نبود api-ms-win-crt-runtime-l1-1-0.dll را برطرف کنم؟"
msgid "This can occur on Python 3.5 and later when using Windows 8.1 or earlier without all updates having been installed. First ensure your operating system is supported and is up to date, and if that does not resolve the issue, visit the `Microsoft support page <https://support.microsoft.com/en-us/help/3118401/>`_ for guidance on manually installing the C Runtime update."
msgstr "این موضوع ممکن است در پایتون 3.5 و نسخههای جدیدتر، هنگام استفاده از ویندوز 8.1 یا نسخههای قدیمیتر بدون نصب همه بهروزرسانیها رخ دهد. ابتدا اطمینان حاصل کنید که سیستمعامل شما پشتیبانی میشود و بهروز است، و اگر این کار مشکل را حل نکرد، برای راهنمایی درباره نصب دستی بهروزرسانی C Runtime، به `صفحه پشتیبانی مایکروسافت <https://support.microsoft.com/en-us/help/3118401/>`_ مراجعه کنید."