# Lua Code Translator

## 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. Clone the repository: `git clone` [`https://github.com/EinfachTobi173/Lua-Code-Translator`](https://github.com/EinfachTobi173/Lua-Code-Translator)
2. Navigate to the project directory: `cd main`
3. 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.<br>

## 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.<br>

## License

The Lua Code Translator is licensed under the MIT License.<br>

## Author

The Lua Code Translator was created by Tobi.<br>

## Version History

Version 1.0: Initial release

## Requirements

{% embed url="<https://www.python.org/ftp/python/3.12.3/python-3.12.3-amd64.exe>" %}

pip install tkinter&#x20;

pip install translate&#x20;

pip install requests&#x20;

pip install beautifulsoup4<br>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lua-code-translator.gitbook.io/translatorlua/lua-code-translator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
