I was kidding in my last message. There is already a way how to
translate language to locale - setLang in the context.cpp file.
All you need should be hidden in the definition of langAliases array.
Even we have a problem with the czech locale under solaris. I've to
spare some time ti fix it. This problem is the mox of system
konfiguration and perhaps Sablotron patch.
Before I'll check it (can't promise any specific time), you have to
experiment with LC_COLLATE environment and test, what value you have to
use for it (try it with commandline 'sort' etc.). Having the appropriate
LC_COLLATE value, you may check the Sablotron code (langAliases etc.) to
find out what's happening inside.
HTH
Pavel
Andrew Ho wrote:
> Hello,
>
> AH>Warning [code:464] [URI:file:test.xsl] [line:5] [node:element
> AH>'<xsl:for-each>']
> AH> unsupported language 'en'
>
> PH>what system are you running? This time there is a problem with locale
> PH>names. Espec. Solaris systems use another names then e.g. Linux uses. We
> PH>have to add some tests into configure script or into the Sablotron code
> PH>to make the right translation between 'lang' attribute and LC_COLLATE
> PH>value. The only solution right now is hacking the code.
>
> I'm using Solaris x86. I assume the code to hack would be in context.cpp?
> I haven't done locale-aware C++ before so this'll be an adventure for me.
> As I have access to both Linux and Solaris (on both x86 and Sparc) I'll
> take a swing at it and see if I can figure out the problem.
>
> J>hello. you have been added to the sablotron mailing list after this
> J>reply to your question arrived to the list. so i send it to you. jan
> J>(listadmin)
>
> (By the way, thanks! This was very nice. I'd have missed this otherwise.)
>
> Humbly,
>
> Andrew
>
> ----------------------------------------------------------------------
> Andrew Ho http://www.tellme.com/ [EMAIL PROTECTED]
> Engineer [EMAIL PROTECTED] Voice 650-930-9062
> Tellme Networks, Inc. 1-800-555-TELL Fax 650-930-9101
> ----------------------------------------------------------------------
--
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic