Discussion:
Language support
Weston Renoud
2014-05-18 14:20:03 UTC
Permalink
Hi all,

I'm trying to get language support, as in the address demo (
http://www.agencexml.com/xsltforms/address.xml) to work, but I can't get
anything other than english to show.

I have revision 597, and I'm in Chrome 34.

On the copy on my server I've tried adding the 'lang' attribute to the
xsltforms-options:

<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="yes" lang="fr"?>

But it doesn't seem to have any effect.

What am I missing?

Thanks,
Weston Renoud
Alain Couthures
2014-05-18 18:01:09 UTC
Permalink
Hi Weston,

Language support is, by default, based on browser localized version,
which is different from language settings (because language settings
cannot be accessed with Javascript instructions).

That's why, with a French version of browsers, I get French labels with
the address demo.

It is possible to force the language within the config.xsl file and the
lang option can also be used, as you mentioned.

I will change priority between config file and lang option in the next
commit so lang option will have higher priority.

Are you in a hurry?

Thanks!

-Alain
Post by Weston Renoud
Hi all,
I'm trying to get language support, as in the address demo
(http://www.agencexml.com/xsltforms/address.xml) to work, but I can't
get anything other than english to show.
I have revision 597, and I'm in Chrome 34.
On the copy on my server I've tried adding the 'lang' attribute to the
<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="yes" lang="fr"?>
But it doesn't seem to have any effect.
What am I missing?
Thanks,
Weston Renoud
Loading...