Skip to content

LOFWagner/translator

Repository files navigation

Translation Tool

Welcome to the Translation Tool repository! This tool is designed to help you translate both text files (.txt) and HTML files (.html) in bulk, all within a single folder. It also includes a glossary manager to maintain consistent translations for specific terms.

Features

  • Batch Translation: Translate all text and HTML files within a specified folder.
  • Glossary Manager: Maintain a glossary of terms to ensure consistent translations.
  • File Type Support: Automatically detects and translates .txt and .html files.
  • Easy Setup: Simple configuration using an .env file.

Installation

Option 1: Download the Latest Release

  1. Download the latest release from the Releases page on GitHub.

  2. Create an .env file in the same directory as the .jar file with the necessary environment variables. This file is required for the tool to function properly.

    Example .env file:

    DEEPL_API_KEY=your_api_key_here
    
  3. Run the tool using the command or just double clicking the file:

    java -jar translation-tool.jar
    or just double click

Option 2: Compile from Source

  1. Clone the repository:

    git clone https://github.com/yourusername/translation-tool.git
    cd translation-tool
  2. Compile the project using Maven:

    mvn clean package
  3. Create an .env file in the root directory with the necessary environment variables. This file is required for the tool to function properly.

    Example .env file:

    API_KEY=your_api_key_here
    
  4. Run the compiled tool using the command, or by simply double clicking it:

    java -jar target/translation-tool.jar

Usage

  1. Place the files you want to translate into an input folder and create an output folder.

  2. In the main menu, choose either translation or glossary creation.

  3. Add any specific terms you want to manage to the glossary, which currently supports the .xlsx file format.

  4. After adding the glossary, simply close the glossary manager. Then in the menu, click translator.

  5. Here, select your desired input/output folders. If you want to use a glossary, make sure to tick the checkbox and provide a source language.

  6. Click translate. Translating into all languages is not supported in glossary mode.

  7. The translated files will be output to the selected output folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published