The user's language preference can be found from the http header
received from the browser:
void service(HttpServletRequest req ...
String acceptList = req.getHeader("Accept-Language");
-----Original Message-----
From: Robert Nicholson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 2:18 PM
To: [EMAIL PROTECTED]
Subject: Re: web site internationalization
All of these approaches require that the user explicitly indicate which
language preference they want right? ie. nothing the browser provides
can
safely used to determine "default" language setting.
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java
Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Praveen Tapashetti
> Sent: Tuesday, March 06, 2001 7:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: web site internationalization
>
>
> You can use resourcebundle where you keep all the labels and with
server
> side script (servlet or jsp), read labels from resource bundle
> and display.
> So if u want to change language, u just have to change resource
> bundle (put
> another file with labels in that language).
> Regards
> Praveen Tapashetti
> Mascot Systems Ltd
> Chennai, India
>
> Tel: 91-44-2301236 Extn: 3321
>
>
> -----Original Message-----
> From: Alex Amies [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 05, 2001 10:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: web site internationalization
>
> I am using xml and xslt. The xml is generated with servlets
> and all translatable text is looked up from ResourceBundles.
> I separate all translatable images into a separate directory
> and the path to that directory is a xslt parameter to the
> processor.
>
> I use the Xalan xslt processor. You can find that at
>
> http://xml.apache.org/xalan/index.html
>
> You may be able to rely on client side processing now if you
> restrict
> your client browsers to IE5.5+ and Netscape 6.
>
> -----Original Message-----
> From: Sherbahadur Khurshid [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 04, 2001 6:50 PM
> To: [EMAIL PROTECTED]
> Subject: web site internationalization
>
>
> Hi,
> This is a bit off topic so I appologize in advance, but
> I think there might be people on this list who have
> delt with similar internationalization issues.
> I'm a software engineer and am looking
> for ways to make the internationalization of our web site
> more managable. Currently we maintain seperate html
> documents for each lanaguage. Since the layout of the
documents
> is very similar (just the displayed text
> differs in language) I figured there must be a mechanism
> for maintaining a single html document and generating the
> translated html documents from this single document. I'm
> thinking of using xml & xslt as a possible solution. Has
> anyone used similar solutions ?
> I would greatly appreciate any suggestions on this issue
> or if someone could point me to other resources.
> Thanks :-)
> -Sher
>
>
>
________________________________________________________________________
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and
include in
> the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and
include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html