Red Hat Bugzilla – Full Text Bug Listing
|Summary:||update_po replaces tabulations with \t and then translations of those verbatim strings are no longer used|
|Product:||[Community] Publican||Reporter:||Raphaël Hertzog <raphael>|
|Component:||publican||Assignee:||Jeff Fearn <jfearn>|
|Status:||CLOSED NEXTRELEASE||QA Contact:||Ruediger Landmann <rlandman>|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2011-11-14 01:26:04 EST||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Raphaël Hertzog 2011-11-10 12:35:35 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.
Comment 1 Jeff Fearn 2011-11-14 01:26:04 EST
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.