Page 1 of 1
Modify HEADER/FOOTER For all language
Posted: Wed Dec 18, 2013 9:16 am
by Le Basque
Hello,
I want to change the header and footer on documents in any language.
I saw that formatting the header and footer is in XML files as en.xml.
I should handle 7 languages is it possible to customize this layout in one single file of the language?
I also noticed that the Portuguese language is missing?
thank you
Re: Modify HEADER/FOOTER For all language
Posted: Wed Dec 18, 2013 3:42 pm
by sorin_ristache
Hello,
Are you talking about the file en.xml from directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\cfg\common\vars for DITA PDF output? Yes, you have to edit one such XML file per language, for example: en.xml for English, fr.xml for French, de.xml for German, ja.xml for Japanese, etc.
By default the Portuguese language is not handled, and that means the headers and footers and various types of titles (Table of Contents, Preface, Related Links, etc) inserted in the PDF output created from Portuguese documents are the English ones. You can create a pt.xml file by duplicating the en.xml file in the same directory and edit that pt.xml file for customizing the headers, footers and section titles as you want. The name of the file (pt.xml) comes from the value of the xml:lang attribute used in the XML topic files, for example: xml:lang="en", xml:lang="pt", etc.
Regards,
Sorin
Re: Modify HEADER/FOOTER For all language
Posted: Wed Dec 18, 2013 4:05 pm
by Le Basque
Hi,
I modified the file
en.xml :
Code: Select all
<variable id="Body odd footer"><param ref-name="prodname"/> | <param ref-name="heading"/> | <param ref-name="pagenum"/></variable>
<variable id
In the modify there is no text, I must repeat this change on all language files?
Thank you
Re: Modify HEADER/FOOTER For all language
Posted: Wed Dec 18, 2013 4:12 pm
by sorin_ristache
Yes, for each language a different file must be modified. This is how the PDF output is created for DITA documents. For English the body footer may contain only the  | characters, but for other languages it may be usual to include other data in the footer of a printed book. That ( |) is only a default value.
Regards,
Sorin
Re: Modify HEADER/FOOTER For all language
Posted: Wed Dec 18, 2013 4:21 pm
by Le Basque
Ok thank you