Comments (2)
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.
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)
- Mb -> MB in the po4a-gettextize docs
- Weblate: Set a repository browser URL for po4a-doc HOT 5
- How to generate Markdown without line wrap? HOT 2
- seems update to po4a to 0.70 breaks builds of apt HOT 14
- UTF-8 "\xF3" does not map to Unicode at /usr/share/perl5/vendor_perl/Locale/Po4a/TransTractor.pm line 583 HOT 5
- seems update to po4a to 0.70 the alternate language man pages are no longer installed. HOT 5
- Accept-Languages + Accept on website returns incorrect languages HOT 3
- docbook: Multiline entities not translated HOT 3
- Failed to run 'po4a-gettextize' for 'sgml' format (Error while running onsgmls -p) HOT 2
- Feature Request: Keep maintaining 'po4a-xxx' utilities HOT 4
- #☑️
- Malformed encoding while writing to file <output> with charset utf-8: Unknown failure HOT 3
- Error while build v0.71 on openSUSE HOT 11
- Markdown tables not parsed properly
- Lots of warnings and errors when building texinfo-docs with po4a-traslated texinfo.texi HOT 1
- second argument to Locale::Po4a::TransTractor::read now mandatory HOT 2
- Problem after PerlIO overhaul in v0.70 HOT 9
- Fails to build with perl 5.40 HOT 2
- Add custom placeholders for po4a componentes in Weblate HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from po4a.