DocBook: How to really get the document on my local language

Here should go questions about transforming XML with XSLT and FOP.
dleal
Posts: 41
Joined: Fri Dec 15, 2006 8:09 pm
Location: Madrid
Contact:

DocBook: How to really get the document on my local language

Post by dleal »

Dear members,

On the headero of my document I have:

Code: Select all

<book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="es" 
xmlns:xl="http://www.w3.org/1999/xlink">
..
</book>
in order to get the generated document with the spanish labels and I get property: Tabla de Contenidos for Table of Contents, Prefacio, etc, nevertheless some other labels are not properly translated, for example:

1.)- Draft: I get the translated word: "Borrador" for the Table of Contents, and Preface part of the book, but for the rest of the document I get: "Draft".

2.)- Chapter 1, Chapter 2, etc. Instead of Capítulo 1, Capítulo 2, etc.

3.)- When I use <xref> for a figure, table or section I get the text in english, for example: Figure 1.1 "The caption" instead of Figura 1.1 "The caption". The same apply for the section, example, etc.

4.)- The hyphentation is not correct for the spanish language.]

Where do I have to configure such information?

Thanks in advance,

David
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello David,

You have to set two DocBook stylesheet parameters: l10n.gentext.language to the value 'es' and l10n.gentext.use.xref.language to the value 1. In HTML output the viewer (Internet browser) does the hyphenation. For PDF output the hyphenate stylesheet param is true by default but you have to specify a hyphenation file. To add the hyphenation patterns file to the oXygen classpath just copy the file to the oXygen install folder and restart oXygen.


Regards,
Sorin
Post Reply