Git Product home page Git Product logo

Comments (3)

cedricus avatar cedricus commented on July 29, 2024

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"

from po-merger.

maximejobin avatar maximejobin commented on July 29, 2024

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.

from po-merger.

cedricus avatar cedricus commented on July 29, 2024

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:

  • to create a dictionary from scratch for a new language based on themes and plugins 100% translated.
  • to enhance an existing dictionary like fr-ca by an easier management (less time consuming).

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.

from po-merger.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.