Title: Suggesting translations automatically
Author: Jesús Amieiro
Published: March 6, 2024
Last modified: March 7, 2024

---

 [  ](https://profiles.wordpress.org/amieiro/) [Jesús Amieiro](https://profiles.wordpress.org/amieiro/)
9:35 am _on_ March 6, 2024     
Tags: [ideas ( 4 )](https://make.wordpress.org/polyglots/tag/ideas/)

# Suggesting translations automatically

In this post, I propose a new functionality to automatically create suggestions 
for untranslated stringsString A string is a translatable part of the software. 
A translation consists of a multitude of localized strings..

[[

This new functionality, **only available to GTEGeneral Translation Editor A General
Translation Editor (often referred to as GTE) is a person, who has global access
to validate strings on all projects for a specific locale., PTEProject Translation
Editor A Project Translation Editor (often referred to as PTE) is a person, who 
has access to validate strings on a specific project (for example BuddyPress, WooCommerce
or Twenty Fourteen) for one specific locale. A project translation editor can approve
strings that are added by translation contributors. Per project translation, editors
are appointed by a [general translation editor](https://make.wordpress.org/polyglots/glossary/#general-translation-editor)
after a [request by the project author](https://make.wordpress.org/polyglots/handbook/rosetta/theme-plugin-directories/#requesting-new-translation-editors)
or by the contributors themselves. and CLPTECross-locale Project Translation Editor
A Cross-Locale Project Translation Editor is an account owned by a plugin or theme
author (or the authoring organization), which uses professional translators to localize
their product. The cross-locale project translation editor can import/validate strings
on a specific project for more than one locale. This role has the same capabilities
as a Project Translation Editor over multiple locales instead of one. Cross-Locale
Project Translation Editors need to meet a set of [criteria](https://make.wordpress.org/polyglots/handbook/rosetta/theme-plugin-directories/#cross-locale%c2%a0project-translation-editor)
before being appointed by [General Translation Editors.](https://make.wordpress.org/polyglots/glossary/#general-translation-editor)**,
will suggest translations automatically, using translations from different sources.

[[

These are the different options:

[[

 * Tool to get the suggestions. The tool will try to get the translations from these
   tools:
    - The internal **translation memory** (TM).
    - **OpenAI** APIAPI An API or Application Programming Interface is a software
      intermediary that allows programs to interact with each other and share data
      in limited, clearly defined ways. (only available if the user has entered 
      her OpenAI API key in the tool).
    - **DeepL** API (only available if the user has entered her DeepL API key in
      the tool).
    - **All** the available options, in **cascade**:
       * if the TM has a translation with an accuracy of 100%, it will use it.
       * Then it will try to use OpenAI.
       * And then DeepL.
 * Number of suggestions to generate. We need to limit the number of suggestions
   in each execution, to avoid timeouts.
 * A checkbox where the user agrees to manually review the automatically generated
   translations. This checkbox will be mandatory.

These are the different options to get the information:

[[

Once the execution will finish, the localeLocale Locale = language version, often
a combination of a language code and a region code, for instance es_MX denotes Spanish
as it’s used in Mexico. A list of all locales supported by WordPress in [https://make.wordpress.org/polyglots/teams/](https://make.wordpress.org/polyglots/teams/)
will have a number of translations (in waiting status) to review for this project.
This review may be done by the author or by a different validatorValidator See [translation editor](https://make.wordpress.org/polyglots/glossary/#translation-editor).(
GTE/PTE/CLPTE).

The checkboxes to select these autosuggestions will be disabled, so I propose to
avoid bulk actions, so a GTE won’t be able to request an autosuggestion of 100 strings
and then make a bulk approval. I think this is very important to avoid decreasing
the translation quality.

[[

## Improvements with this new tool󠀁[](https://orbitp2.wordpress.com/2024/03/01/suggesting-translations-automatically/#improvements-with-this-new-tool)󠁿

This new tool will allow those languages with few translators, as well as those 
with many but no work pending validation, to advance much faster in the next translations,
without losing quality in the translations, as they commit to validate them manually.

Also, being limited to GTE/PTE/CLPTE only, I think we will not have spam problems
or a large amount of translations in the validation queue due to this new system.
The validators will be responsible, not using the tool more than the other validators(
or herself) can review manually.

## Feedback󠀁[](https://orbitp2.wordpress.com/2024/03/01/suggesting-translations-automatically/#feedback)󠁿

These mockups (colors, designs, …) are only to try to explain the new functionality.
Please, contribute any ideas you may have.

[#ideas](https://make.wordpress.org/polyglots/tag/ideas/)

### Share this:

 * [  Threads ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=threads)
 * [  Bluesky ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=bluesky)
 * [  Facebook ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=facebook)
 * [  X ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=x)
 * [  Mastodon ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=mastodon)
 * [  WhatsApp ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=jetpack-whatsapp)
 * [  LinkedIn ](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?share=linkedin)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fpolyglots%2F2024%2F03%2F06%2Fsuggesting-translations-automatically%2F%23respond&locale=en_US)

 * [To-do](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?output_format=md#)

 1.  ![](https://secure.gravatar.com/avatar/09a19d6c3d35d136db80cd14757e532d95a3b54dd9aebded06dcee529ed3d285?
     s=32&d=mm&r=g)
 2.   [Nilo Velez](https://profiles.wordpress.org/nilovelez/)  9:47 am _on_ March 6,
     2024
 3.  Looks good to me, as long it is, as you propose, limited only to moderators.
 4.  We will have to keep in mind that, when we give a PTEProject Translation Editor
     A Project Translation Editor (often referred to as PTE) is a person, who has access
     to validate strings on a specific project (for example BuddyPress, WooCommerce
     or Twenty Fourteen) for one specific locale. A project translation editor can 
     approve strings that are added by translation contributors. Per project translation,
     editors are appointed by a [general translation editor](https://make.wordpress.org/polyglots/glossary/#general-translation-editor)
     after a [request by the project author](https://make.wordpress.org/polyglots/handbook/rosetta/theme-plugin-directories/#requesting-new-translation-editors)
     or by the contributors themselves. role to someone, we are also giving them access
     to this tool.
 5.   * ![](https://secure.gravatar.com/avatar/3e3d7b607460020fa93f80642f1db72f5510f4d31e9dd9a543e97e3549be6cf8?
        s=32&d=mm&r=g)
      *  [Peter Smits](https://profiles.wordpress.org/psmits1567/)  9:55 am _on_ March
        6, 2024
      * Nilo, PTEProject Translation Editor A Project Translation Editor (often referred
        to as PTE) is a person, who has access to validate strings on a specific project(
        for example BuddyPress, WooCommerce or Twenty Fourteen) for one specific locale.
        A project translation editor can approve strings that are added by translation
        contributors. Per project translation, editors are appointed by a [general translation editor](https://make.wordpress.org/polyglots/glossary/#general-translation-editor)
        after a [request by the project author](https://make.wordpress.org/polyglots/handbook/rosetta/theme-plugin-directories/#requesting-new-translation-editors)
        or by the contributors themselves. role is per project, so he/she would only
        have this possibility based on the project for which PTE is granted to this
        person
         - ![](https://secure.gravatar.com/avatar/2ef71a5ac0d5866fd948ac503691867122c996994fb6e117f08ae8d08de99286?
           s=32&d=mm&r=g)
         -  [Jesús Amieiro](https://profiles.wordpress.org/amieiro/)  10:56 am _on_
           March 6, 2024
         - Totally agree.
 6.  ![](https://secure.gravatar.com/avatar/3e3d7b607460020fa93f80642f1db72f5510f4d31e9dd9a543e97e3549be6cf8?
     s=32&d=mm&r=g)
 7.   [Peter Smits](https://profiles.wordpress.org/psmits1567/)  9:54 am _on_ March
     6, 2024
 8.  Currently if you have Deepl or OpenAi activated automatically you will get an 
     automated suggestion. What happens if you choose OpenAi for automated population??
     Does it fetch the translation provided by your own OpenAI key while running through
     the list, or does it use the suggestion from the OpenAI suggestion line? Same 
     for DeepL. Is fetching from OpenAI stopped if you activate automated translation
     from OpenAI??
 9.  Good proposal which could help translate projects quicker.
 10.  * ![](https://secure.gravatar.com/avatar/2ef71a5ac0d5866fd948ac503691867122c996994fb6e117f08ae8d08de99286?
        s=32&d=mm&r=g)
      *  [Jesús Amieiro](https://profiles.wordpress.org/amieiro/)  11:01 am _on_ March
        6, 2024
      * > Currently if you have Deepl or OpenAi activated automatically you will get
        > an automated suggestion. What happens if you choose OpenAi for automated 
        > population?? Does it fetch the translation provided by your own OpenAI key
        > while running through the list, or does it use the suggestion from the OpenAI
        > suggestion line? Same for DeepL. Is fetching from OpenAI stopped if you activate
        > automated translation from OpenAI??
        > Good proposal which could help translate projects quicker.
      * When you are translating row by row, we get the current translation from TM,
        OpenAI and/or DeepL, and the next one so when you go to the next row, you get
        them immediately.
      * With this proposal, if you want to autosuggest 100 stringsString A string is
        a translatable part of the software. A translation consists of a multitude 
        of localized strings., we will try to get them from the TM with an accuracy
        of 100%. If we don’t have them, then we will try to do the queries to OpenAI
        or to DeepL (if you have a good APIAPI An API or Application Programming Interface
        is a software intermediary that allows programs to interact with each other
        and share data in limited, clearly defined ways. key). Imagine you get 60 strings
        from the TM with 100% of accuracy. We will make 40 requests to the OpenAI API
        or to the DeepL API.
 11. ![](https://secure.gravatar.com/avatar/6ddc525ae47cdce6c4d632d40ad0ebdfa590fdb36dfca0c85a4cbd5cccaf5351?
     s=32&d=mm&r=g)
 12.  [Fernando Tellado](https://profiles.wordpress.org/fernandot/)  9:56 am _on_ March
     6, 2024
 13. It’s ok for me as GTEGeneral Translation Editor A General Translation Editor (
     often referred to as GTE) is a person, who has global access to validate strings
     on **all projects for a specific locale.**, adds to GlotPressGlotPress GlotPress
     is the translation management software that powers [Translate.WordPress.org](http://translate.wordpress.org).
     More information is available at [glotpress.org](http://glotpress.org/). the usual
     method of working with tools like PoEdit
 14.  * ![](https://secure.gravatar.com/avatar/6ddc525ae47cdce6c4d632d40ad0ebdfa590fdb36dfca0c85a4cbd5cccaf5351?
        s=32&d=mm&r=g)
      *  [Fernando Tellado](https://profiles.wordpress.org/fernandot/)  10:00 am _on_
        March 6, 2024
      * My only suggestion is to feed the internal translation memory as much as possible,
        to avoid ‘asking’ each new query to external tools that offer different responses
        in every new query.
         - ![](https://secure.gravatar.com/avatar/2ef71a5ac0d5866fd948ac503691867122c996994fb6e117f08ae8d08de99286?
           s=32&d=mm&r=g)
         -  [Jesús Amieiro](https://profiles.wordpress.org/amieiro/)  11:04 am _on_
           March 6, 2024
         - We need to make some improvements to the TM:
            * Allow removing an incorrect translation in the TM to a GTEGeneral Translation
              Editor A General Translation Editor (often referred to as GTE) is a person,
              who has global access to validate strings on **all projects for a specific
              locale.** with 1 click.
            * The TM result should be sorted by number of occurrences, so that the 
              most used ones appear first. And we should show the number of occurrences.
 15. ![](https://secure.gravatar.com/avatar/ec6a49f01b047a37da956a20ebc3f4097c99fc4f559c9be8fecce6b38a758acd?
     s=32&d=mm&r=g)
 16.  [Pedro Mendonça](https://profiles.wordpress.org/pedromendonca/)  10:08 am _on_
     March 6, 2024
 17. For TM, I would make a first pass with an option “Only 100% exact matches” like
     Poedit. That would allow a first quick review.
      Only after that review I would
     make a TM suggestions below 100%.
 18.  * ![](https://secure.gravatar.com/avatar/2ef71a5ac0d5866fd948ac503691867122c996994fb6e117f08ae8d08de99286?
        s=32&d=mm&r=g)
      *  [Jesús Amieiro](https://profiles.wordpress.org/amieiro/)  11:07 am _on_ March
        6, 2024
      * The problem I see with this approach is that we should store for each original
        if we have made the first query.
      * What if we add a threshold parameter when the user selects the TM or all the
        systems? A numeric selector to set this threshold below 100%.
         - ![](https://secure.gravatar.com/avatar/ec6a49f01b047a37da956a20ebc3f4097c99fc4f559c9be8fecce6b38a758acd?
           s=32&d=mm&r=g)
         -  [Pedro Mendonça](https://profiles.wordpress.org/pedromendonca/)  11:11 
           am _on_ March 6, 2024
         - I didn’t mean that. I meant that I would first run an autofill with only
           exact translations (maybe a checkbox like Poedit), and after I review it,
           I would run an autofill again for other non exact matches.
            Two manual passes,
           no need to DB data.
         - > What if we add a threshold parameter when the user selects the TM or all
           > the systems? A numeric selector to set this threshold below 100%.
         - Yes, or a numeric threshold, or just a checkbox for “Exact 100%”.
            * ![](https://secure.gravatar.com/avatar/2ef71a5ac0d5866fd948ac503691867122c996994fb6e117f08ae8d08de99286?
              s=32&d=mm&r=g)
            *  [Jesús Amieiro](https://profiles.wordpress.org/amieiro/)  11:38 am _on_
              March 6, 2024
            * > I didn’t mean that. I meant that I would first run an autofill with
              > only exact translations (maybe a checkbox like Poedit), and after I
              > review it, I would run an autofill again for other non exact matches.
              > 
              > Two manual passes, no need to DB data.
            * What I wanted to say is that if you run a 10-stringString A string is
              a translatable part of the software. A translation consists of a multitude
              of localized strings. autossugestion and in the first run you only find
              4 stringsString A string is a translatable part of the software. A translation
              consists of a multitude of localized strings. with 100% of accuracy, 
              and then you run a 30-string autossugestion, how do you know which strings
              should run without exact matches if you don’t have this information in
              the database?
               - ![](https://secure.gravatar.com/avatar/ec6a49f01b047a37da956a20ebc3f4097c99fc4f559c9be8fecce6b38a758acd?
                 s=32&d=mm&r=g)
               -  [Pedro Mendonça](https://profiles.wordpress.org/pedromendonca/)  
                 12:14 pm _on_ March 6, 2024
               - Because after the first pass, you would review and change/edit the
                 suggestions, and approve them.
               - The next pass, more flexible, and allowing non-exact suggestions would
                 run on only on untranslated stringsString A string is a translatable
                 part of the software. A translation consists of a multitude of localized
                 strings..
               - What I’m saying is that it’s two separate manual processes, as done
                 in Poedit.
                  First pass: Exact TM suggestions, and human review. Second
                 pass: More flexible, will try to match the remaining untranslated 
                 strings.
 19. ![](https://secure.gravatar.com/avatar/bd6c40fcc238b3966a2360d5e3f4da6ecae69f69b631aea70e2eabf34cdc1c89?
     s=32&d=mm&r=g)
 20.  [Lidia Pellizzaro](https://profiles.wordpress.org/lidialab/)  2:36 pm _on_ March
     6, 2024
 21. Interesting idea and I totally agree to keep it only for editor for now.
 22. In my case I’m interested in TM, because I don’t have AI paid accounts and my 
     personal preference is to not share personal information to have free Api Keys.
 23. About TM something isn’t clear to me: how to handle several matches at 100%.
      
     In this case in my opinion it is an evaluation to do manually, without involving
     an AI later, and because the editor needs to see all the 100% TM matches proposed
     by Translate.
 24. Example: [https://translate.wordpress.org/projects/meta/wordpress-org/it/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=16981658&filters%5Btranslation_id%5D=112360555](https://translate.wordpress.org/projects/meta/wordpress-org/it/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=16981658&filters%5Btranslation_id%5D=112360555)
 25. Maybe autofill can take the 100% TM match with the more number of translations
     and then advise the user about these situation in some way (a text warning?).
 26. To save cpu, space and api keys resources, I think Pedro’s progressive step approach
     can work (“Because after the first pass, you would review and change/edit the 
     suggestions, and approve them.”).
 27.  * ![](https://secure.gravatar.com/avatar/ec6a49f01b047a37da956a20ebc3f4097c99fc4f559c9be8fecce6b38a758acd?
        s=32&d=mm&r=g)
      *  [Pedro Mendonça](https://profiles.wordpress.org/pedromendonca/)  3:29 pm _on_
        March 6, 2024
      * I think that reviewing 100% matches is a totally different mindset and workflow
        of reviewing non-100% matches. That’s why I always do it separatly. A 100% 
        match from TM is usually just a check to see if the context is right, because
        it’s very probably just an approve step.
         Reviewing non-100% matches is a review
        that needs you to type and change what’s different. That’s why I separate these
        two workflows, and by separating a first pass only for 100% matches I can easily
        solve many stringsString A string is a translatable part of the software. A
        translation consists of a multitude of localized strings. without getting into
        real-typing edit mode 🙂
         - ![](https://secure.gravatar.com/avatar/4f202270f93ddf7eb5cb985382c22fdf79c577655a21a2cf4ccadf153d77c4cb?
           s=32&d=mm&r=g)
         -  [Irina](https://profiles.wordpress.org/irinashl/)  6:39 pm _on_ March 6,
           2024
         - **Text Color – 100%**
         - **<100%:**
            Text color text color Text color: text color: _Text color_ _text
           color_ _and many more options…_

### Leave a Reply 󠀁[Cancel reply](https://make.wordpress.org/polyglots/2024/03/06/suggesting-translations-automatically/?output_format=md#respond)󠁿

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fpolyglots%2F2024%2F03%2F06%2Fsuggesting-translations-automatically%2F&locale=en_US)
to post a comment.

# Post navigation

[← jp translated, i want to be editor](https://make.wordpress.org/polyglots/2024/03/06/jp-translated-i-want-to-be-editor/)

[Is a translation contributor or… →](https://make.wordpress.org/polyglots/2024/03/06/is-a-translation-contributor-or/)