Skip to content

About

A simple Python based GUI application for translating English text into Hindi and Gujarati. It provides an interactive interface for quick regional language translations using the Google Translate API.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

English To Hindi-Gujarati Translator

Overview

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.

Features

  • 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.

How It Works

  1. Enter the English text you want to translate in the input box.
  2. Select the target language (Hindi or Gujarati) using the radio buttons.
  3. Click the Translate button to generate the translation.
  4. The translated text will be displayed in the output box.
  5. Use the Clear button to reset the input and output boxes.

Prerequisites

Installing Dependencies

Note: The requirements.txt file for the larger multimodal system includes dependencies for all models. If you're using this model independently, ensure only the required dependencies are installed.

How to Run the Application

  1. Save the code as translator.py.
  2. Open a terminal and navigate to the directory where the file is saved.
  3. Run the following command:

Demo

Watch the YouTube demo video to see the application in action.

Code Explanation

Key Functions

  1. 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.
  2. clear_output()

    • Clears the input and output text boxes.
  3. show_about()

    • Displays information about the application in a message box.
  4. show_help()

    • Provides a brief guide on how to use the application.

GUI Elements

  • 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.

Example Translation

  • Input: "Hello, how are you?"
  • Target Language: Hindi
  • Output: "हेलो, आप कैसे हैं?"

Future Enhancements

  • Support for additional languages.
  • Improved error handling and offline translation capabilities.
  • Integration with speech-to-text and text-to-speech modules.

About

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.

Contribution

Feel free to fork the repository, submit issues, or suggest improvements. Contributions are always welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Developed by A&J as part of the Multimodal System.

About

A simple Python based GUI application for translating English text into Hindi and Gujarati. It provides an interactive interface for quick regional language translations using the Google Translate API.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages