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 2006/11/18 22:49:37 UTC

[jira] Resolved: (TAPESTRY-881) Allow global i18n bundle location to be customized

     [ http://issues.apache.org/jira/browse/TAPESTRY-881?page=all ]

Jesse Kuhnert resolved TAPESTRY-881.
------------------------------------

    Fix Version/s: 4.1.1
       Resolution: Fixed

Hope you're happy... ;)

Documentation is coming as well, but the new meta configurable property name is "org.apache.tapestry.namespace-properties-name". 

The classpath is search by default in addition to WEB-INF/ for the application spec file as well.


> Allow global i18n bundle location to be customized
> --------------------------------------------------
>
>                 Key: TAPESTRY-881
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-881
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Matt Raible
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.1
>
>
> The current mechanism for specifying a global i18n resource bundle is not very flexible.
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization.namespace
> It requires you to name your i18n bundles the same as your .application file.  Furthermore, it requires that your bundles be places in the WEB-INF directory.  Most other web frameworks (and Java applications in general) require you to have the ResourceBundle somewhere in your classpath (generally in the root - WEB-INF/classes).  
> 1. I think the root of the classpath should be the default location - even if you're using the ".application name matches i18n name" mechanism.
> 2. It should be possible to customize the name of the file. Possibly something like the following in your .application file:
> <property name="org.apache.tapestry.global-properties" value="ApplicationResources"/> -> points to WEB-INF/classes/ApplicationResources.properties (and others with _locale.properties
> <property name="org.apache.tapestry.global-properties" value="com.myapplication.web.messages"/> - points to /WEB-INF/classes/com/myapplication/web/messages.properties

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org