Typo in documentation about I18N -------------------------------- Key: DISPL-668 URL: http://jira.codehaus.org/browse/DISPL-668 Project: DisplayTag Issue Type: Bug Components: Documentation Reporter: David Pilato Priority: Trivial
See in http://displaytag.sourceforge.net/11/i18n.html In order to support other languages you can add any number of additional files named displaytag_LANGUAGE.properties . For example, you can add a displaytag_IT.properties for italian users with the following content: On unix systems, LOCALE is defined with lowercase characters. I tried to define a file displaytag_FR.properties but it doesn't work. displaytag_fr.properties works fine. Locale userLocale = null; HttpSession session = request.getSession(false); // Only check session if sessions are enabled if (session != null) { userLocale = (Locale) session.getAttribute(Globals.LOCALE_KEY); } if (userLocale == null) { // Returns Locale based on Accept-Language header or the server default userLocale = request.getLocale(); } userLocale is fr when I use I18nStrutsAdapter. Hope this could help others... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel