Lua Code Translator

The Lua Code Translator is a Python script with a graphical user interface that translates Lua files. This documentation provides an overview of the project, its features, and how to use it.

Features

  • Translates all Lua code in different languages (English, German, Spanish, French, Russian)

  • Works with any code.

  • Automates the translation and saving of the file.

  • Displays the translation progess in a progress bar.

  • Allows translating a new file without restarting the program.

Installation

To install the Lua Code Translator, follow these steps:

  1. Navigate to the project directory: cd main

  2. Run the install_dependencies.bat file to install all required dependencies.

Usage

To use the Lua Code Translator, follow these steps:

  1. Open the main.py file with Python: python main.py

  2. Click on "File" > "Open" to select a Lua file to translate.

  3. Click on "Translate and Save" to start the translation process.

  4. The translation progress will be displayed in a progress bar.

  5. Once the translation is complete, the translated file will be saved and displayed in the text area at the bottom of the window.

Configuration - Cooming Soon

The Lua Code Translator uses the following configuration settings:

  • translate_api_key: Your Translate API key (optional)

  • default_language: The default language to translate to (default: German)

You can modify these settings by editing the config.json file.

Troubleshooting - Cooming Soon

If you encounter any issues while using the Lua Code Translator, please check the following:

  • Make sure you have Python and the required dependencies installed.

  • Check the config.json file for any errors or typos.

  • If you're using a Translate API key, ensure it's valid and properly configured.

Contributing

If you'd like to contribute to the Lua Code Translator project, please fork the repository and submit a pull request with your changes.

License

The Lua Code Translator is licensed under the MIT License.

Author

The Lua Code Translator was created by Tobi.

Version History

Version 1.0: Initial release

Requirements

pip install tkinter

pip install translate

pip install requests

pip install beautifulsoup4

Zuletzt aktualisiert