docbook-apps

  • 1.  localization problem with xref elements

    Posted 08-19-2009 15:41
    Dear all

    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


    any idea ?

    Thanks in advance
    Best regards
    Oliver



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

    Posted 08-19-2009 16:20
    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