[ http://issues.apache.org/jira/browse/TAPESTRY-266?page=all ]
Jesse Kuhnert updated TAPESTRY-266: ----------------------------------- Fix Version/s: 4.1.2 > Include (JVM) default locale in localized resources search path > --------------------------------------------------------------- > > Key: TAPESTRY-266 > URL: http://issues.apache.org/jira/browse/TAPESTRY-266 > Project: Tapestry > Issue Type: Wish > Components: Framework > Affects Versions: 3.0.1, 4.0, 3.0.2 > Reporter: Samppa Saarela > Fix For: 4.1.2 > > > Including a default locale in localized resources (templates, assets, > properties etc.) search path would improve configurability and resource > management. Configurability improvement would result from the ability to > change applications default language just by changing default locale. > Currently default language must be defined in resources (files) that have no > locale suffixes and changing it would require changing suffixes of all > localized resources/files. Better resource management would result from the > ability to define the locale used for each resource, including the default, > and to use base resource only for truely language independent resources. > The search path would be (copied from java.util.ResourceBundle API) > 1) baseName + "_" + language1 + "_" + country1 + "_" + variant1 > 2) baseName + "_" + language1 + "_" + country1 > 3) baseName + "_" + language1 > 4) baseName + "_" + language2 + "_" + country2 + "_" + variant2 > 5) baseName + "_" + language2 + "_" + country2 > 6) baseName + "_" + language2 > 7) baseName > In which language2, country2, and variant2 are from the (JVM) default locale. > Currently Tapestry skippes phases 4-6. > This improvement could be achieved in a completely transient way if the > default locale used would be configurable inside Tapestry instead of using > JVM's, and the default default locale would be "". This would result in the > exaclty same search path Tapestry currently uses. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]