 |
 |
 |
Andrew Welch wrote:
I would image it would be straightforward to implement my own i18n
solution, something like:
<title>
<xsl:value-of select="fn:getLocalisedValue('page.title', 'The
English Title', 'de_DE')"/>
</title>
where the arguments are token key, default value and locale.
That is almost the way I usually do it, in conjunction with a
localization.xml file. I don't supply any default text, because I have
defined a default language and assume that those strings will always
be present in the XML file.
Jirka Kosek wrote:
I think that replacing all literal texts inside template by
xsl:value-of
and function call is overkill and it makes stylesheet less readable.
To overcome this limitation I have integrated Gettext library into
Saxon
some time ago:
http://xmlguru.cz/2006/10/saxon-gettext
That sounds interesting!
For my applications, customers love the ease of use with the
localization.xml, which can easily be extended and corrected without
any further software. To handle gettext files, they would need poedit
and would have multiple files for all languages. Which might better
fit other workflows.
- Michael
--
_______________________________________________________________
Michael M|ller-Hillebrand: Dokumentation Technology
Adobe Certified Expert, FrameMaker
Consulting and Training, FrameScript, XML/XSL, Unicode
Blog [de]: http://cap-studio.de/
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |