Bug 734290 - Escape characters included in translated titles of books in site tables of contents
Summary: Escape characters included in translated titles of books in site tables of co...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 2.7
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-30 01:53 UTC by Ruediger Landmann
Modified: 2011-09-06 03:56 UTC (History)
2 users (show)

Fixed In Version: 2.7
Clone Of:
Environment:
Last Closed: 2011-09-06 03:56:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Ruediger Landmann 2011-08-30 01:53:24 UTC
Description of problem:
When you package a translated book, Publican sets the web_name_label and web_product_label parameters so that the translated title and product name are displayed in the website table of contents.

However, if the translated title or product name includes an apostrophe, the title appears in the table of contents with a backslash in front of the apostrophe. For example, an Installation Guide in French will have the translated title "Guide d'installation", but this appears in the site table of contents as "Guide d\'installation". 

Version-Release number of selected component (if applicable):
2.6-3

How reproducible:
100%

Steps to Reproduce:
1. Create a set of PO files for a book
2. Provide a translation for the title in the Book_Info.po file. Make sure that the translated title has an apostrophe in it
3. Build and install the web RPM for the book
4. Open the html or html-single version of the book and look at the site ToC in the left-hand pane

Actual results:
Apostophes in the translated title are prefixed with a backslash

Expected results:
No backslash, just apostrophe

Additional info:

Example section from spec file:

%post -n Red_Hat_Enterprise_Linux-Installation_Guide-6-web-fr-FR
publican update_db --add --lang="fr-FR" --formats="html,pdf,html-single,epub" --name="Installation_Guide" --version="6" --product="Red_Hat_Enterprise_Linux" --subtitle="Installation de Red Hat Enterprise Linux 6 pour toutes les architectures" --abstract="Ce manuel explique comment lancer le programme d\'installation Red Hat Enterprise Linux 6 (anaconda) et comment installer Red Hat Enterprise Linux 6 sur les systèmes x86 32-bit et 64-bit, sur les systèmes POWER 64-bit, et sur les systèmes IBM System z. Il couvre aussi des méthodes d\'installation avancées telles que les installations kickstart, PXE, et les installations au moyen de VNC. FInalement, ce manuel décrit les tâches communes post-installation et explique comment résoudre les problèmes liés à une installation." --name_label="Guide_d\'installation"

Comment 2 Jeff Fearn 🐞 2011-09-05 03:12:20 UTC
Spec file now uses double quote instead of single quote, so changed which quote gets escaped in spec file.

Changed in branches/publican-2x and trunk.

Committed revision 1884.

Comment 3 Ruediger Landmann 2011-09-05 06:29:32 UTC
Verified in publican-2.7-0.fc15.t39.noarch -- thanks!

Comment 4 Jeff Fearn 🐞 2011-09-06 03:56:46 UTC
Publican 2.7 has been release and includes a fix for this issue.


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