Re: XForms: labels and internationalization
Aaron Reed <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
[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