The English to Hindi-Gujarati Translator is a simple and interactive GUI application designed to translate English text into Hindi or Gujarati. Developed using Python and the Tkinter library, this tool leverages the googletrans library to provide accurate and quick translations. The application is user-friendly and includes essential features such as language selection, translation, and result display.
- User-Friendly GUI: Built with Tkinter for easy navigation and usability.
- Language Options: Translate English text into Hindi or Gujarati.
- Error Handling: Provides appropriate warnings and error messages for invalid inputs or operations.
- Real-Time Translation: Quickly translates text into the selected language.
- Clear Output: Users can clear the input and output boxes with a single click.
- Enter the English text you want to translate in the input box.
- Select the target language (Hindi or Gujarati) using the radio buttons.
- Click the Translate button to generate the translation.
- The translated text will be displayed in the output box.
- Use the Clear button to reset the input and output boxes.
Note: The
requirements.txtfile for the larger multimodal system includes dependencies for all models. If you're using this model independently, ensure only the required dependencies are installed.
- Save the code as
translator.py. - Open a terminal and navigate to the directory where the file is saved.
- Run the following command:
Watch the YouTube demo video to see the application in action.
-
translate()
- Retrieves the English text from the input box.
- Translates the text into the selected target language (Hindi or Gujarati).
- Displays the translated text in the output box.
-
clear_output()
- Clears the input and output text boxes.
-
show_about()
- Displays information about the application in a message box.
-
show_help()
- Provides a brief guide on how to use the application.
- Text Box: For entering English text and displaying translated output.
- Radio Buttons: For selecting the target language (Hindi or Gujarati).
- Buttons: For translating, clearing the output, and accessing help/about sections.
- Menu Bar: Includes options to exit the application and view help/about.
- Input: "Hello, how are you?"
- Target Language: Hindi
- Output: "हेलो, आप कैसे हैं?"
- Support for additional languages.
- Improved error handling and offline translation capabilities.
- Integration with speech-to-text and text-to-speech modules.
This application was developed as part of a larger multimodal system by A&J. It is designed to be simple, efficient, and user-friendly, making translations accessible to everyone.
Feel free to fork the repository, submit issues, or suggest improvements. Contributions are always welcome!
This project is licensed under the MIT License. See the LICENSE file for details.
Developed by A&J as part of the Multimodal System.