I18N issue, without have English language -----------------------------------------
Key: DISPL-278 URL: http://jira.codehaus.org/browse/DISPL-278 Project: DisplayTag Type: Bug Versions: 1.1 Reporter: Bruno Braga I found an error utilizing the displaytag with i18n. Details: 1) My software possessed translation for PT and ES (displaytag_es.properties, displaytag_pt.properties). 2) I utilize Struts for control the Local (org.displaytag.localization.I18nStrutsAdapter) 3) Suppose that Struts Locale = ES ok? Upon accessing for the first time, displaytag (class TableProperties) seeks always the file displaytag_en.properties first. He does not exist -> java.util.MissingResourceException: Can' t find bundle will go base name displaytag, local en. With that he is not going to do load in the key local.resolve, and continue. He did not find the Locale = ES because did not load the LocaleResolver still. In the end TableProperties load my System Locale (PT), and load the file displaytag_pt.properties ( < = = ERROR) My Struts Locale = ES. Cause: The error happened because was not found the file displaytag_en.properties (or displaytag.properties) because my software does not have language EN. If I create that file, the functions correctly. Solution: Do not it utilize the displaytag.properties for keys of config. ex: local.provider, local.resolve, factory.requesthelper diplaytag.properties is only language. It creates another file - ex: displaytag-config.properties and put the key of configuration in this file. That file would not be i18n, only of config. -- 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel