Bug 752881 - update_po replaces tabulations with \t and then translations of those verbatim strings are no longer used
update_po replaces tabulations with \t and then translations of those verbati...
Status: CLOSED NEXTRELEASE
Product: Publican
Classification: Community
Component: publican (Show other bugs)
2.8
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jeff Fearn
Ruediger Landmann
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-10 12:35 EST by Raphaël Hertzog
Modified: 2011-11-14 01:26 EST (History)
1 user (show)

See Also:
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:


Attachments (Terms of Use)

  None (edit)
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.

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