With 2.0 M4, if I log into http://demo.appfuse.org/appfuse-struts and append "?locale=it" to the mainMenu.html URL - everything seems to work fine. If I edit my profile, the buttons have the proper Italian translation (at least AFAICT).
Can you reproduce your issue on the demo site? Thanks, Matt On 3/30/07, ros <[EMAIL PROTECTED]> wrote:
My app is Appfuse 2.0-m3+Struts based and this jsp code <s:submit cssClass="button" key="button.mybutton" /> shows English text when current locale is ru. I set current locale with request parameter locale=ru. My PREFERRED_LOCALE_KEY constant is "org.apache.struts2.action.LOCALE". But I18nInterceptor uses WW_TRANS_I18N_LOCALE and expects request_locale. See: http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/I18nInterceptor.html#DEFAULT_SESSION_ATTRIBUTE Does it make sense? mraible wrote: > > Can you provide a better description of how to reproduce this problem? > > Thanks, > > Matt > > On 3/30/07, ros <[EMAIL PROTECTED]> wrote: >> >> Hi! >> >> I have a strange effect with struts2+appfuse2 - all struts tags are in >> system default locale after locale=ru parameter passed. (fmt tags are ok) >> >> It look like I18nInterceptor is not compatible with current >> implementation >> of appfuse LocaleFilter. >> >> Quick solution is to redefine interceptor in struts.xml >> >> <!-- Interceptor i18n to use our locale parameter to switch >> struts actions locale --> >> <interceptor name="my_i18n" >> class="com.opensymphony.xwork2.interceptor.I18nInterceptor"> >> <param name="parameterName">locale</param> >> </interceptor> >> >> And override old i18n with new my_i18n in the interceptors stack: >> <interceptor-ref name="my_i18n"/> >> >> >> Is it appfuse LocaleFilter problem? >> >> Thanks. >> -- >> View this message in context: >> http://www.nabble.com/struts2-switch-locale-tf3493568s2369.html#a9757479 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/struts2-switch-locale-tf3493568s2369.html#a9760102 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
