Author: grobmeier Date: Mon Jul 15 10:13:26 2013 New Revision: 1503163 URL: http://svn.apache.org/r1503163 Log: WW-4128: Document that I18nInterceptor sets the Locale according to browser settings (thanks to Antonio Sánchez)
Modified: struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/I18nInterceptor.java Modified: struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/I18nInterceptor.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/I18nInterceptor.java?rev=1503163&r1=1503162&r2=1503163&view=diff ============================================================================== --- struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/I18nInterceptor.java (original) +++ struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/I18nInterceptor.java Mon Jul 15 10:13:26 2013 @@ -39,6 +39,8 @@ import java.util.Map; * <p/>For example, using the default parameter name, a request to <b>foo.action?request_locale=en_US</b>, then the * locale for US English is saved in the user's session and will be used for all future requests. * <p/> + if there is no locale set (for example with the first visit), the interceptor uses the browser locale. + * <p/> * <!-- END SNIPPET: description --> * <p/> * <p/> <u>Interceptor parameters:</u>