Red Hat Bugzilla – Bug 752881
update_po replaces tabulations with \t and then translations of those verbatim strings are no longer used
Last modified: 2011-11-14 01:26:04 EST
I have a <screen><computeroutput>...</computeroutput></screen> that contains tabs. The tabs are properly kept in the first set of generated POT and PO files. But as soon as you update the PO/POT files, the tabs are replaced by \t in those files and publican is then unable to use/find the translation.
If I manually fix the msgid to replace \t by real tabs, the string is again found and the translation is used... note that the translated string must also be fixed to use real tabs otherwise the document will display "\t" instead of real tabs.
gettext is changing the tab when it gets called to merge the change set.
We don't use gettext at all in Publican 3, the change is too disruptive too back port in a minor release. I tested this in Publican 3 and it merges the change set fine, using a real tab in all phases.
Changing how the publican side of the text processing functions is too disruptive for a minor release.
Workaround would be to use spaces until Publican 3 is released.