You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2007/02/17 18:13:05 UTC

[jira] Updated: (TAPESTRY-266) Include (JVM) default locale in localized resources search path

     [ https://issues.apache.org/jira/browse/TAPESTRY-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-266:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.2

> Include (JVM) default locale in localized resources search path
> ---------------------------------------------------------------
>
>                 Key: TAPESTRY-266
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-266
>             Project: Tapestry
>          Issue Type: Wish
>          Components: Framework
>    Affects Versions: 3.0.1, 3.0.2, 4.0
>            Reporter: Samppa Saarela
>             Fix For: 4.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.
-
You can reply to this email to add a comment to the issue online.


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