SatelliteWP / po-merger

Merge PO files from two similar languages to facilitate translation
GNU General Public License v3.0
11 stars 5 forks source link

Enhancements for managing dictionary catalog #16

Open cedricus opened 3 years ago

cedricus commented 3 years ago

When a translation is added to the dictionary, it is tagged as fuzzy.

cedricus commented 3 years ago

Should be easy with: setDeveloperComments($developerComments) setReference($reference)

Example workflow:

  1. First time translation with po merge-file on plugin wordpress-seo

    , fuzzy

    : wordpress-seo

    . 1

    msgid "Categories" msgstr "Catégories"

  2. Second time translation with po merge-file on theme twenty-twenty

    , fuzzy

    : wordpress-seo twenty-twenty

    . 2

    msgid "Categories" msgstr "Catégories"

  3. Third time translation with po merge-file on theme generatepress

    , fuzzy

    : wordpress-seo twenty-twenty generatepress

    . 3

    msgid "Categories" msgstr "Catégories"

  4. Forth time translation with po merge-file on plugin contact-form-7 (trigger is reached so fuzzy is removed) msgid "Categories" msgstr "Catégories"

maximejobin commented 3 years ago

What is the advantage of doing that? In my mind, the goal of the dictionary is to contain translations that we know are good and are manually validated.

Therefore, I don't see the point of the fuzzy flag. I truly think if we are not sure about a translation, it shouldn't be added.

If the goal is to have a dictionary fills itself automatically, I truly doubt that this is a good idea.

I'm open to discuss this further before we make a decision.

cedricus commented 3 years ago

I agree with you po merge-file should be used only on 100% validated translated files. So this feature should not be in po merge command but po merge-file command.

The main advantage would be:

Today when I merge a new theme to the dictionary, I have to remove manually all fuzzy flags manually which is time consuming for hundreds of lines.

But with this automation, it would be done automatically by reaching the magic number of themes+plugins using a given string. I could mesure for 100 strings how much time it will save if it helps.

I will be available by phone for more detailed explanations.