tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samppa Saarela (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Created: (TAPESTRY-266) Include (JVM) default locale in localized resources search path
Date Thu, 10 Feb 2005 15:48:12 GMT
Include (JVM) default locale in localized resources search path
---------------------------------------------------------------

         Key: TAPESTRY-266
         URL: http://issues.apache.org/jira/browse/TAPESTRY-266
     Project: Tapestry
        Type: Wish
  Components: Framework  
    Versions: 3.0.1, 3.1, 3.0.2    
    Reporter: Samppa Saarela


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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message