You can enable changing of locales by adding theLocaleChangeInterceptorto one of the handler mappings (see [Section 21.4, "Handler mappings"](mvc.html
mvc-handlermapping "21.4 Handler mappings" )). It will detect a parameter in
the request and change the locale. It calls setLocale() on the LocaleResolver that also exists in the context. The following example shows that calls to all *.view resources containing a parameter namedsiteLanguage will now change the locale. So, for example, a request for the following URL, <http://www.sf.net/home.view?siteLanguage=nl> will change the site language to Dutch.
更多建議: