The translation application is a simple desktop application built using PyQt5, with only 500 lines of code to achieve most of the functions, not only provides local and online translation functions for English and Chinese texts, it allows users to translate words, sentences and paragraphs between English and Chinese , he would be a good tool.
- Translate English text to Chinese and vice versa.
- Add new words and their meanings to the local dictionary.
- Display translations using both local and online methods.
- Save and load the local dictionary to/from a JSON file.
- View the list of words and their meanings in the dictionary.
- Count the total number of words in the dictionary.
- Support for both local and online translation options.
-
Clone this repository to your local machine.
-
Make sure you have Python 3.6 or later installed.
-
Install the required dependencies using the following command:
pip install -r requirements.txt
-
Run the application using the following command:
python simple_translatepro.py
-
The application window will appear, allowing you to enter text for translation.
-
Use the different buttons to perform various actions, such as adding words to the dictionary, translating text, and more.
-
You can also access the menu bar to perform additional operations, such as saving and loading the dictionary, clearing the dictionary, and viewing dictionary contents.
This project is licensed under the MIT License - see the LICENSE file for details.