Re: XForms: labels and internationalization
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Aaron Reed wrote: > [email protected] wrote: > > > Is there a way to use internatiolized xforms:labels based on the locale > > in the browser? > > > > I would suggest that the easiest way to do it would be from the server. > So have the XForm pull its labels from an external instance and point > the @src attribute on the xf:instance to the server. When the request > comes in to the server, parse the accept header to figure out the locale > of the browser, and send back the appropriate .xml file. Otherwise > you'll have to embed in your instance data all of the possible > translations and switch to the appropriate language using form logic, > which is also possible. But the first suggestion I gave is the one that > I think that most will use. > > --Aaron Thanks Aaron, Is there any example/documentation available how to this (first suggestion)? Regards, Marcel