You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohit Gupta <mo...@gmail.com> on 2014/02/27 15:32:42 UTC
Do i need to send locale as request parameter explicitly from browser?
Hi All,
when i use s:text . it makes use of locale information sent by browser to
pick the correct resource bundle. My question is does browsers send the
locale info itself in header(and struts 2 makes use
of this header info) or developer need to send explicitly?
re: Do i need to send locale as request parameter explicitly from browser?
Posted by Christoph Nenning <Ch...@lex-com.net>.
> Hi All,
>
> when i use s:text . it makes use of locale information sent by browser
to
> pick the correct resource bundle. My question is does browsers send the
> locale info itself in header(and struts 2 makes use
> of this header info)
Yes. The header is called Accept-Language.
> or developer need to send explicitly?
No, it is not necessary.
But you still can let users choose a differnt language. Then you have to
implement your own mechanism.
regards,
Christoph
This Email was scanned by Sophos Anti Virus