[TOOL] Empyrion Translation Helper Tools

Discussion in 'The Hangar Bay' started by ASTIC, Jun 21, 2021.

  1. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,120
    Likes Received:
    742
    !!!! This is "under construction" and not finished yet !!!!
    TranslateCSV

    A command line program to translate the CSV files from Empyrion or a scenario.

    DeepL Translation engine
    For translation the translation API of DeepL https://www.deepl.com/translator is used. For this an access is needed which can be requested at https://www.deepl.com/pro#developer.

    Call
    Parameters Description
    --deepl-auth-key DeepL API auth key from https://www.deepl.com/pro#developer if it is not specified it will be requested by input
    --deepl-free (Default: true) Use DeepL API with 'DeepL API Free' auth key
    --deepl-target-language Required Target language for DeepL API target_lang e.g. DE from https://www.deepl.com/docs-api/translating-text/request/
    --csv-target-language Required Target language for CSV file from head line e.g. Deutsch
    --csv-input Required Input CSV file
    --new-translate Translate every entry and overwrite old translation
    --csv-output Output CSV file if the output written to another file
    --csv-source-language Source language for CSV file from head line e.g. English
    --limit-translations (Default: 2147483647) Limit the translations to N entries
    --help Display this help screen.
    --version Display version information.

    Code:
    TranslateCSV.exe --csv-input "C:\steamcmd\empyrion.server\Content\Scenarios\Reforged Eden\Extras\PDA\PDA.csv"  --deepl-target-language DE --csv-target-language Deutsch
    GitHub Repro:
    https://github.com/GitHub-TC/TranslateCSV
     
    #1
    ClipperUniverse and Hummel-o-War like this.
  2. KokoJacK

    KokoJacK Ensign

    Joined:
    Mar 23, 2023
    Messages:
    1
    Likes Received:
    0
    Hello Astic, sorry for the bump.

    What a wonderful tool. I've been using it and it's really good so far. Was working correctly using free API.
    Once I ran out of free juice, I bought the DeepL PRO API access. I then modified my free authkey to my pro one and switched the parameter --deepl-free to "false". I'm also using the parameter --max-parallel-deepl-calls "1" to avoid the "TooManyRequests" error.

    Here's my string :
    Code:
    TranslateCSV.exe --deepl-auth-key "**mykey**" --deepl-free "false" --deepl-target-language "FR" --csv-target-language "Français" --csv-input "**path to input**" --csv-output "**path to output**" --new-translate --max-parallel-deepl-calls "1"
    But now, the tool just won't translate anymore, it returns the following message : "error Forbidden: {"message":"Wrong endpoint. Use https://api.deepl.com"}".

    Is it an issue with your tool or am I doing something wrong ?
     
    #2
  3. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,120
    Likes Received:
    742
    Let the parameter
    --deepl-free "false
    just omit it completely
     
    #3
    KokoJacK likes this.

Share This Page