Bug 752881 - update_po replaces tabulations with \t and then translations of those verbatim strings are no longer used
Summary: update_po replaces tabulations with \t and then translations of those verbati...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-10 17:35 UTC by Raphaël Hertzog
Modified: 2011-11-14 06:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-14 06:26:04 UTC


Attachments (Terms of Use)

Description Raphaël Hertzog 2011-11-10 17:35:35 UTC
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 06:26:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.