Author: BrunoDiktator
برای اجرای این پروژه، نیاز به نصب پایتون روی سیستمعامل ویندوز خود دارید.
-
نصب پایتون
ابتدا مطمئن شوید که پایتون روی سیستم شما نصب شده است. برای دانلود و نصب پایتون، میتوانید به صفحه دانلود پایتون مراجعه کنید. -
باز کردن CMD
برای باز کردن خط فرمان (Command Prompt) در ویندوز، میتوانید از دو روش زیر استفاده کنید:- کلیدهای
Win+R
را فشار دهید و در کادر باز شدهcmd
را تایپ کنید. - در نوار جستجو پایین سمت چپ، عبارت
cmd
را تایپ کنید و آن را انتخاب کنید.
- کلیدهای
-
نصب ماژولهای مورد نیاز
اگر پایتون به درستی نصب شده باشد، میتوانید از دستور زیر برای نصب ماژولهای مورد نیاز استفاده کنید:pip install pyperclip PyQt5 googletrans==4.0.0-rc1
پس از نصب ماژولها، فایل خود را با دستور زیر اجرا کنید:
python "translator.py"
روش استفاده روی متنی که میخواهید ترجمه کنید با موس بکشید و سپس با فشردن Ctrl+C آن را کپی کنید تا بهصورت خودکار ترجمه شود.
##English
Author: BrunoDiktator
To run this project, you'll need to have Python installed on your Windows operating system.
-
Install Python
First, make sure that Python is installed on your system. You can download and install Python from the official Python download page. -
Open CMD
To open the Command Prompt (CMD) on Windows, you can use one of the following methods:- Press
Win+R
, typecmd
in the dialog box, and press Enter. - Alternatively, type
cmd
in the search bar at the bottom left and select it from the results.
- Press
-
Install Required Modules
If Python is installed correctly, you can install the necessary modules by running the following command:pip install pyperclip PyQt5 googletrans==4.0.0-rc1
After installing the modules, run your file using the following command:
python "translator.py"
To use the translator, select the text you want to translate with your mouse, then press Ctrl+C to copy it. The text will be translated automatically.