• Resolved Ignacio

    (@iignacio)


    I’m having the same issue as this user: https://www.ads-software.com/support/topic/translatepress-with-glossary/

    We’re running into this very issue with a client who’s using DeepL. They’re using a glossary and don’t want to go through every page to update every instance of a word.
    Is this a feature with a planned date? Any place we can upvote or monitor its progress?

    If not, would it be possible/simple enough to hardcode a?glossary_id?as a workaround?

    Thanks in advance!

    • This topic was modified 7 months, 2 weeks ago by Ignacio.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ignacio

    (@iignacio)

    After digging in the code I managed to add the glossary_id parameter on the api request:

    File: /wp-content/plugins/translatepress-business/add-ons-pro/deepl/includes/class-deepl-machine-translator.php

    public function send_request( $source_language, $language_code, $strings_array, $formality = "default" ){
            /* build our translation request */
    
            $translation_request          = 'auth_key=' . $this->get_api_key();
            $translation_request          .= '&source_lang=' . $source_language;
            $translation_request          .= '&target_lang=' . $language_code;
            $translation_request          .= '&split_sentences=1';
            $translation_request          .= '&glossary_id=AAAAAA-BBBBB-CCCC-DDDDD-FFFFFFFFFFFFF';

    Not great, but seems to do the trick in the meantime.

    Hello,
    ?
    I’m sorry for any confusion, but currently, TP does not support glossary feature. This is currently a tracked feature request but we can’t say for sure when it will be implemented.
    ?
    Thank you for your understanding and feel free to reach out if you have any other inquiries related to TP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I use DeepL’s Glossary?’ is closed to new replies.