Bug 752881

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: publicanAssignee: Jeff Fearn <jfearn>
Status: CLOSED NEXTRELEASE QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.8CC: rlandman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-14 01:26:04 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.