Open cedricus opened 3 years ago
Should be easy with: setDeveloperComments($developerComments) setReference($reference)
Example workflow:
First time translation with po merge-file on plugin wordpress-seo
msgid "Categories" msgstr "Catégories"
Second time translation with po merge-file on theme twenty-twenty
msgid "Categories" msgstr "Catégories"
Third time translation with po merge-file on theme generatepress
msgid "Categories" msgstr "Catégories"
Forth time translation with po merge-file on plugin contact-form-7 (trigger is reached so fuzzy is removed) msgid "Categories" msgstr "Catégories"
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.
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.
When a translation is added to the dictionary, it is tagged as fuzzy.
[ ] It could be very helpful to add a comment with the theme or plugin name where the translation comes from and
[ ] maybe a counter.
[ ] Then when the same translation is found,
[ ] A trigger for the counter, let's say 3 will remove the fuzzy tag of the translation. So when the same translation is found 3 times, we consider this is a popular translation. It still could be changed manually based on the glossary and consistency WordPress tools. But this will help a lot to automate dictionary catalog and time saving to build a wide dictionnary.