Re: [docbook-apps] localization problem with xref elements

From
Bob Stayton <>
Date
2009-08-19T17:01:16+00:00
ID
007601ca20ee$a5c46fa0$0a00a8c0@pazu
Thread
Re: [docbook-apps] localization problem with xref elements
Hi,
It doesn't seem to be caused by an incomplete translation, as the text in 
common/fr.xml in 1.73.2 has the translated text.  When I test an xref with 
<book lang="fr">, I get the translated text for the xref.  A more detailed 
example would help.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Daniel Leidert" <>
To: <>
Sent: Wednesday, August 19, 2009 9:19 AM
Subject: Re: [docbook-apps] localization problem with xref elements


Am Mittwoch, den 19.08.2009, 17:40 +0200 schrieb Oliver Christen:

> the version of docbook xml is 4.4
> the version of docbook xsl is 1.73.2
> (these are not my choice and I dont think I can upgrade as I dont have
> decisional power for that)
>
> im having some problem with french translation,
> a string which is automatically inserted by the xsl transformation is
> not translated.
>
> the problem is with <xref linkend="xxx" />
> I get "the section called “xxx”" instead of the "la section intitulée
> « xxx »"
>
> the string "the section called" appear several time in the language
> xml files in docbook-xsl-1.73.2 so im not sure which one is used, but
> the translation seems to exist for all the ids in the fr.xml
>
> I have tried adding a "lang="fr"" parameter in my <book> element and
> also in my <xref> element, but it didnt change anything
>
> I looked at the list archive, found some related posts but sadly no
> solution

Can you provide a minimal testcase to reproduce (including your
customization layer)? Then we could also take a look, if you do things
right :)

> any idea ?

If it's caused by an outdated or incomplete French translation, then you
can simply "fix" the problem in your customization layer.

http://www.sagehill.net/docbookxsl/CustomGentext.html

Regards, Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: