[Tool] Auto Translation Generator for C# projects

There are 2 replies in this Thread which was already clicked 537 times. The last Post () by Lululla.

    • Official Post

    [Tool] Auto Translation Generator for C# projects – extract & translate GetTranslation strings into 90+ languages


    Hi everyone,


    I needed a tool that could extract all the strings to translate from the C# files and create the appropriate language files.


    I developed a small Windows tool that automatically extracts all GetTranslation("...") keys from any C# project (WinForms, WPF, etc.) and translates them into 95+ languages using Google Translate (free API). It then generates the corresponding .lng files ready to be used in your application.



    🚀 **Features**

    - Scans recursively all .cs files in the selected project folder.

    - Finds every string inside GetTranslation("...") – custom regex can be adapted.

    - Uses Google Translate (free) to translate each string into all supported languages.

    - Persistent cache: avoids re-translating the same text multiple times (saves time and bandwidth).

    - Option to choose output folder; otherwise creates a "languages" subfolder inside the project.

    - GUI with real-time log, progress bar, Start/Stop buttons.

    - Preserves existing translations in .lng files (only adds new keys).

    - Removes obsolete keys (keys no longer in the code) – optional but recommended.


    ⚙️ **How to use**

    1. Download the attached .exe (or compile from source – see GitHub link).

    2. Run the executable (no installation required).

    3. Select the root folder of your C# project (the one containing all .cs files).

    4. (Optional) Choose a custom output folder for the .lng files.

    5. Click "Start Translation".

    6. Wait – first run may take a while depending on the number of keys and languages (cache speeds up subsequent runs).

    7. Find all your .lng files in the output folder, ready to be embedded or distributed.


    📁 **Output format**

    Each language gets its own file, named according to the language (e.g. Italiano.lng, Deutsch.lng, English.lng). The format is:


    pasted-from-clipboard.png


    Changelog – Version 1.1

    English

    New Features:

    • Language selection dialog – Choose which languages to translate instead of processing all 95+ every time.
    • "Select Languages" button – Opens a checklist with all available languages (Select All / Unselect All buttons included).
    • Performance improvement – Translation time now proportional to the number of selected languages (much faster when only a few needed).

    Changes:

    • Removed hardcoded full language list from main form; now managed via selector.
    • Improved cache handling – cache remains valid across different language selections.

    Bug fixes:

    • Fixed occasional UI freeze during long operations.
    • Better error handling for network timeouts.

    Credits: Lululla © 2026 – Support: linuxsat-support.com



    pasted-from-clipboard.png

    • New
    • Official Post

    Now...
    Enigma2...too choice if translate..

    Translation Tool v2.0

    – a Windows desktop application that makes translating Enigma2 plugins and C# projects simpler and faster than ever!


    This tool is designed to streamline the entire translation workflow for Enigma2 plugins:

    • Extract strings from .py and setup.xml files.
    • Translate missing entries automatically using Google Translate.
    • Compile the translations into .mo files ready for your Enigma2 device.
    • Dual Mode – Switch between Enigma2 Plugin Manager and C# Project mode.
    • Google Translate Integration – Auto-translates empty strings with just a click.
    • Smart Cache – Stores translations locally to avoid repeated API calls and save time.
    • Over 90 Languages – Choose from a comprehensive list of languages.
    • Progress Monitor – See real-time progress, status, and elapsed time.
    • Stop Button – Cancel any operation at any time.
    • Import Cache – Import translations from Python scripts if you already have them.
    • Save Log – Export the log for debugging or sharing.
    • Custom Output Folder – Choose where to save translated files.


    How to Use It

    1. Download the latest release from the GitHub Releases page.
    2. Extract the .zip file and run TranslationProject.exe.
    3. Select "Enigma2 Plugin Manager" from the Mode dropdown.
    4. Browse for your plugin folder.
    5. Select the languages you want to translate.
    6. Click "Full Update" – and let the tool do the rest!




    Screen3.png



    OwnerPlugins/TranslationProject






Chat about everything else!

A friendly forum for off-topic discussions, random questions, and community bonding. Your space for conversations outside our main categories. Discuss hobbies, news, games, or anything else with the wider community.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!