Red Hat Bugzilla – Bug 1036150
publican deals badly with "\n" in po files for strings corresponding to non-verbatim tags
Last modified: 2013-12-18 21:46:33 EST
Created attachment 830694 [details]
Patch fixing newline handling in translated strings
I have a translated string like that:
#. Tag: para
msgid "With [...] Thank you!"
"Nous avons reçu le soutien de 650 personnes pendant la campagne de\n"
"financement initiale, et de plusieurs centaines d'autres pendant la\n"
"campagne de libération. C'est grâce à vous que ce projet a pu voir le\n"
"jour. Merci à tous !"
Obviously the translators (or its software) word-wrapped the translation string and added newlines where there were none in the original string. Still this should be perfectly OK because he knows that we're writing XML and that newlines should be treated just like spaces.
Unfortunately, that's not the case, the "\n" end up in the generated documents.
I believe that the attached patch fixes this problem with no bad side-effects.
To be clearer, the attached patch solves the problem for me and I have not yet seen any new problems since I use that patch.
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.
Applied patch. Updated PUG it-IT translation and built HTML output.
252d976..6cc0236 HEAD -> devel