'How can I make DITA PDF publication use defined Figure and Table title labels in Norwegian?
So, I publish DITA user guides to PDF for English, Finnish, Swedish, and Norwegian. In English, Finnish, and Swedish, the titles for figures and images are correct. However, in Norwegian, all figure titles are just "Figure.title" and all table titles are just "Table.title". How can I fix the Norwegian guides to show the correct titles?
I have the correct labels defined in C:\dita-ot-3.3.3\plugins\org.dita.pdf2\cfg\common\vars\no.xml (see below)
<variable id="Figure.title">Figur <param ref-name="number"/>: <param ref-name="title"/></variable>
<variable id="Figure Number">Figur <param ref-name="number"/></variable>
<variable id="Table.title">Tabell <param ref-name="number"/>: <param ref-name="title"/></variable>
<variable id="Table Number">Tabell <param ref-name="number"/></variable>
The format here matches what is in the English vars/en.xml file, and English PDFs show up correctly.
<!-- Text to use for figure titles, with title text or only figure number. -->
<variable id="Figure.title">Figure <param ref-name="number"/>: <param ref-name="title"/></variable>
<variable id="Figure Number">Figure <param ref-name="number"/></variable>
<!-- Text to use for table titles, with title text or only table number. -->
<variable id="Table.title">Table <param ref-name="number"/>: <param ref-name="title"/></variable>
<variable id="Table Number">Table <param ref-name="number"/></variable>
We publish to PDF using an in-house tool built by a developer who has since left the company, and unfortunately I can't access the code for that.
An image of the user guide in English, with the correct figure title
An image of the user guide in Norwegian, with the incorrect figure title
Also, the images are inserted the same way in both the English and Norwegian versions of the DITA file itself, in case that matters.
English:
<fig id="fig_std_dc4_zjb">
<title><ph product="ProductNameA">Items as part of the overall workflow on (product name A)</ph><ph product="ProductNameB">Items as part of the overall
workflow on (product name B)</ph></title>
<image placement="break" width="600" keyref="product-flow-items-EN"/>
</fig>
Norwegian:
<fig id="fig_std_dc4_zjb">
<title><ph product="ProductNameA">Artikler som en del av den generelle arbeidsflyten på (product name A)</ph><ph product="ProductNameB">Artikler som en del av den generelle arbeidsflyten på (product name B)</ph></title>
<image placement="break" width="600" keyref="product-flow-items-NO"/>
</fig>
Thank you for any hints you can give!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
