tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Commented: (TAPESTRY-881) Allow global i18n bundle location to be customized
Date Wed, 24 Jan 2007 06:08:49 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466916
] 

Matt Raible commented on TAPESTRY-881:
--------------------------------------

Is there a timeline on the 4.1.2 release? Or maybe getting this fixed in a snapshot release?
 We're hoping to release AppFuse 2.0 in the next few weeks and w/o this fix, our Tapestry
support is not as good as I'd like it to be.  Currently, we have duplicate i18n files (in
WEB-INF for Tapestry and WEB-INF/classes for SiteMesh and tests).

> Allow global i18n bundle location to be customized
> --------------------------------------------------
>
>                 Key: TAPESTRY-881
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-881
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.1
>            Reporter: Matt Raible
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>
> 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.
-
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


Mime
View raw message