Re: Choosing locale from browser settings

2013-06-26 Thread Antonio Sánchez
It seems I18nInterceptor does it by default. I've not found this feature in the documentation. I think it would be great to document it. Doing some research I've found that the way to do it, in case I18nInterceptor is not enough, is inspecting the value of the "Accept-Language" request heade

Re: Choosing locale from browser settings

2013-06-25 Thread Chester Twomey
Look into the i18n intereceptor: http://struts.apache.org/release/2.3.x/docs/i18n-interceptor.html An example: http://www.mkyong.com/struts2/struts-2-i18n-or-localization-example/ On Tue, Jun 25, 2013 at 5:27 AM, Antonio Sánchez wrote: > Hello. > > I need to return content localized to the brow

Choosing locale from browser settings

2013-06-25 Thread Antonio Sánchez
Hello. I need to return content localized to the browser locale from the very first visit. I guess I need: 1. Detect browser locale. 2. Apply that locale in response and subsequent session. How can I do it? Thanks! Antonio