Giter VIP home page Giter VIP logo

Comments (2)

mquinson avatar mquinson commented on July 18, 2024 1

Hello,

I guess not, there is no way to keep the old translation to a modified paragraph. It could be possible in some cases, but not always. This is because we rely on gettext tools internally to update the po file according to the new master document. If the changes are light, gettext sets the string to "fuzzy", asking the translators to update their work (and po4a could still use it), but if the changes are too heavy, gettext fails to find the matching string in the previous version of the document (https://en.wikipedia.org/wiki/Approximate_string_matching) and po4a could not do better here.

It could certainly be possible to use fuzzy translations in the produced documents, but that would probably be a bad idea in many cases. If the original string changed, there was a reason, and displaying the old one could be really misleading.

But I understand your point anyway. If the original is in English, as a native French speaker, I probably want the up to date version in English. But if it's in a language of which I don't even know the letters (such as Russian, Chinese or Arabic), I'd probably prefer the outdated translation to a perfectly useless up to date content. I'll see how I can implement this, at some point.

The best would probably to put both versions, e.g. the outdated translation with a mention "Outdated translation of ..." with ... replaced with the up to date original text. But that could break the formatting, like titles would be too long and things. I'm not sure whether this could be implemented, and that would be format-dependent (a solution for our Markdown backend may not work for Asciidoc or XML).

Thanks for your interesting suggesting, I'll think about it. I hope you're not in a rush: I was supposed to release po4a on the 15th, but I got a big week and the next one does not look much better, so I dunno when I'll implement this. It may be in weeks or months, if things go wrong...

Sorry about that, and thanks for your interest,

from po4a.

ArduanovDanil avatar ArduanovDanil commented on July 18, 2024

Thank you very much for your response! I discussed it with the team - the current behavior for our project is not as bad as I thought. You can consider this as an idea, perhaps in other projects it may prevent the use of your tool.

from po4a.

Related Issues (20)

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.