This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] slides XSL: localizing the localization
- From: Bob Stayton <bobs at sco dot com>
- To: "Justus H. Piater" <Justus dot Piater at ULg dot ac dot be>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 2 Sep 2003 10:28:11 -0700
- Subject: Re: [docbook-apps] slides XSL: localizing the localization
- References: <x8t3cffjf39.fsf@outil.montefiore.ulg.ac.be>
On Tue, Sep 02, 2003 at 07:05:30PM +0200, Justus H. Piater wrote:
> Excuse about my ignorance, but how do I extend a localization locally?
> For slides to work in French, I added
>
> <xsl:param name="local.l10n.xml" select="document('')"/>
> <i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
> <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="fr">
> <l:gentext key="Continued" text="(Continué)"/>
> ...
>
> to my XSL customization layer. It works, but it replaces - rather than
> adds to - the existing localization in the slides style sheet, meaning
> that the English option is lost. There surely is a way to do _add_
> languages...?
Well, this is the general method for extending
a localization. I'm not sure about the double namespace
declaration, though. Why not use:
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="fr">
<l:gentext key="Continued" text="(Continué)"/>
...
But I think your version is still valid, and should work.
Can you be more specific about what you mean
by "the English option is lost"?
What error messages are you seeing?
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.