[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: i18n and l10n question

Subject: Re: i18n and l10n question
From: Nicolas Van Cleemput <nicolas.vancleemput@xxxxxxxx>
Date: Wed, 08 Nov 2006 08:41:01 +0100
Re:  i18n and l10n question
Hi,

it works now. Or translations aren't really inline, but I couldn't use that
document-thing, because the translations were all in the document I was
transforming. I now use //factory, which is the root of our document and it
works fine.

The reason I'm using _ in stead of -, is because that is the way I get the
current locale from the Java application.

Nico

Quoting David Carlisle <davidc@xxxxxxxxx>:


therefore it is necessary that we follow l10n rules.
yes but often  the i18n lookup table with the
language translations is separate from the actual document, which often
makes it easier to add new translations.

If your translations are "inline" then all you need to to is remove the
<xsl:for-each select="//entry"> and </xsl:for-each> lines.

Also I note  that you are splitting the locale on _ rather than - . -
would be more normal for language codes such as en-uk (ISO 639-1 or ISO
639-2).

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.