You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Matt Raible <mr...@gmail.com> on 2006/02/24 17:45:59 UTC

Is it possible to do a global i18n bundle with Tapestry 4?

In Tapestry 3.0.3, I was able to specify a global properties file
(i18n bundle) with the following:

<property name="org.apache.tapestry.global-properties"
value="ApplicationResources"/>

I tried doing something similar in Tapestry 4.0, but no dice.

<meta key="org.apache.tapestry.global-properties" value="ApplicationResources"/>

Is it possible to do a global i18n bundle with Tapestry 4?

Thanks,

Matt

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


Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Jesse Kuhnert <jk...@gmail.com>.
I don't have an answer just yet, but I'll be opening up the 4.0 branch in a
little bit to fix some other things and will find an answer for you.

On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
>
> Yeah, I saw that.  I like this feature and think that smart defaults
> are cool - however, I'd like to override this and specify a different
> name.  Is that possible?
>
> Thanks,
>
> Matt
>
> On 2/24/06, James Carman <ja...@carmanconsulting.com> wrote:
> > Oh, and I got that information from here:
> >
> >
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > .namespace
> >
> >
> > -----Original Message-----
> > From: Matt Raible [mailto:mraible@gmail.com]
> > Sent: Friday, February 24, 2006 11:46 AM
> > To: Tapestry users
> > Subject: Is it possible to do a global i18n bundle with Tapestry 4?
> >
> > In Tapestry 3.0.3, I was able to specify a global properties file
> > (i18n bundle) with the following:
> >
> > <property name="org.apache.tapestry.global-properties"
> > value="ApplicationResources"/>
> >
> > I tried doing something similar in Tapestry 4.0, but no dice.
> >
> > <DEFANGED_meta key="org.apache.tapestry.global-properties"
> > value="ApplicationResources"/>
> >
> > Is it possible to do a global i18n bundle with Tapestry 4?
> >
> > Thanks,
> >
> > Matt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Jesse Kuhnert <jk...@gmail.com>.
A JIRA issue would be nice. I think a 4.0.1 release in the next week or two
is very probable. There is/has been a lot of bug fixing going on so it would
make sense.

I can't promise when this particular issue will make it out though. To get
into the framework in a non-hacky way it will require a lot of careful
thought.

On 3/10/06, Matt Raible <mr...@gmail.com> wrote:
>
> On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > From what I've seen I'm guessing that the fix had to do with the
> > > applicationId.application notion more than the abililty to name the
> file
> > > whatever you want. It does provide a global message catalog, just not
> the
> > > ability to name the associated properties file whatever you like.
> > >
> > > I will double check again to be sure it's not really possible to name
> the
> > > file whatever you want.
> > >
> > > If it isn't possible ~currently~, will a fix in 4.0.1 be a useless
> effort
> > > for your purposes?
> >
> > Yes.
>
> Should I enter an issue for this in JIRA?  I know it's tough to
> predict, but do you have a rough estimate of when 4.0.1 will be
> released?
>
> Thanks,
>
> Matt
>
> >
> > Thanks,
> >
> > Matt
> >
> > >
> > >
> > >  On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > > On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > > I am probably wrong, but without spending too much time on it (and
> more
> > > > > buying time until Howard can come in and correct me) I believe
> that you
> > > more
> > > > > or less ~have~ to have your global il10n properties file match
> your
> > > > > application specification file name. (Like pages and components
> do) .
> > > > >
> > > > > There is a property you can configure (in your web.xml servlet
> init
> > > param )
> > > > >
> > > > > "org.apache.tapestry.application-specification"
> > > > >
> > > > > Which is a string path to locate your .application file. So, if
> you had
> > > an
> > > > > application file named " petstoredemo.application" , your global
> il10n
> > > > > properties file would need to be named "petstoredemo.properties" .
> (for
> > > your
> > > > > default locale, "petstoredemo_fr.properties" for francais, etc...)
> > > > >
> > > > >  Of course I am probably completely wrong, but that's what it
> looks like
> > > so
> > > > > far. If the functionality was taken out I'm sure it was an
> oversight, or
> > > > > just not known that it was needed.
> > > > >
> > > > > What is the "use case" more or less for renaming the file? To
> follow
> > > another
> > > > > convention someone already has in place?
> > > >
> > > > I'd prefer to name it whatever I like - for instance, with Struts
> this
> > > > file is commonly named ApplicationResources.properties.  With Spring
> > > > MVC, it's commonly named messages.properties.  While neither of
> these
> > > > frameworks have a default file name, both of them allow you to
> > > > customize it to whatever you want.  I'd prefer to leave my files
> named
> > > > ApplicationResources.properties so Tapestry is easier to learn for
> > > > Struts users.
> > > >
> > > > I tried setting
> > > "org.apache.tapestry.application-specification" as an
> > > > init-parameter, but if I do this, I have to change the name of my
> > > > .application file as well.
> > > >
> > > > I tried using the following, but that didn't work either:
> > > >
> > > >
> > >
> http://wiki.apache.org/jakarta-tapestry/UsingCustomResourceSourceForLibs
> > > >
> > > > Here's the jist of what I'm looking for - and while Howard says it's
> > > > "fixed and fixed well" - I have a hard time believing that unless
> the
> > > > name is customizable. Here's my original desire.
> > > >
> > > > http://issues.apache.org/jira/browse/TAPESTRY-229
> > > >
> > > > My guess is using a different filename is already possible, just not
> > > documented.
> > > >
> > > > Thanks,
> > > >
> > > > Matt
> > > >
> > > > >
> > > > > Unless Howard either says I'm completely wrong and here is how you
> do
> > > it, or
> > > > > says that he doesn't think this is a necessary feature, I don't
> see any
> > > > > reason why a JIRA post couldn't make this happen in 4.0.1.
> > > > >
> > > > >  P.S. Does this apply to .component and .page specifications as
> well?
> > > They
> > > > > all share a lot of the same infrastructure
> > > > > (application/library/page/component) for defining these
> > > > > things, just wondering which pill I'm looking at ;)
> > > > >
> > > > > j
> > > > > On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > > > > Yeah, I saw that.  I like this feature and think that smart
> defaults
> > > > > > are cool - however, I'd like to override this and specify a
> different
> > > > > > name.  Is that possible?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > On 2/24/06, James Carman < james@carmanconsulting.com > wrote:
> > > > > > > Oh, and I got that information from here:
> > > > > > >
> > > > > > >
> > > > >
> > >
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > > > > > > .namespace
> > > > > > >
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Matt Raible [mailto:mraible@gmail.com ]
> > > > > > > Sent: Friday, February 24, 2006 11:46 AM
> > > > > > > To: Tapestry users
> > > > > > > Subject: Is it possible to do a global i18n bundle with
> Tapestry 4?
> > > > > > >
> > > > > > > In Tapestry 3.0.3, I was able to specify a global properties
> file
> > > > > > > (i18n bundle) with the following:
> > > > > > >
> > > > > > > <property
> > > name="org.apache.tapestry.global-properties"
> > > > > > > value="ApplicationResources"/>
> > > > > > >
> > > > > > > I tried doing something similar in Tapestry 4.0, but no dice.
> > > > > > >
> > > > > > > <DEFANGED_meta
> > > > > key="org.apache.tapestry.global-properties"
> > > > > > > value="ApplicationResources"/>
> > > > > > >
> > > > > > > Is it possible to do a global i18n bundle with Tapestry 4?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Matt
> > > > > > >
> > > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > > > > For additional commands, e-mail:
> > > > > tapestry-user-help@jakarta.apache.org
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > > > For additional commands, e-mail:
> > > > > tapestry-user-help@jakarta.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>

Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Matt Raible <mr...@gmail.com>.
On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > From what I've seen I'm guessing that the fix had to do with the
> > applicationId.application notion more than the abililty to name the file
> > whatever you want. It does provide a global message catalog, just not the
> > ability to name the associated properties file whatever you like.
> >
> > I will double check again to be sure it's not really possible to name the
> > file whatever you want.
> >
> > If it isn't possible ~currently~, will a fix in 4.0.1 be a useless effort
> > for your purposes?
>
> Yes.

Should I enter an issue for this in JIRA?  I know it's tough to
predict, but do you have a rough estimate of when 4.0.1 will be
released?

Thanks,

Matt

>
> Thanks,
>
> Matt
>
> >
> >
> >  On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > I am probably wrong, but without spending too much time on it (and more
> > > > buying time until Howard can come in and correct me) I believe that you
> > more
> > > > or less ~have~ to have your global il10n properties file match your
> > > > application specification file name. (Like pages and components do) .
> > > >
> > > > There is a property you can configure (in your web.xml servlet init
> > param )
> > > >
> > > > "org.apache.tapestry.application-specification"
> > > >
> > > > Which is a string path to locate your .application file. So, if you had
> > an
> > > > application file named " petstoredemo.application" , your global il10n
> > > > properties file would need to be named "petstoredemo.properties" . (for
> > your
> > > > default locale, "petstoredemo_fr.properties" for francais, etc...)
> > > >
> > > >  Of course I am probably completely wrong, but that's what it looks like
> > so
> > > > far. If the functionality was taken out I'm sure it was an oversight, or
> > > > just not known that it was needed.
> > > >
> > > > What is the "use case" more or less for renaming the file? To follow
> > another
> > > > convention someone already has in place?
> > >
> > > I'd prefer to name it whatever I like - for instance, with Struts this
> > > file is commonly named ApplicationResources.properties.  With Spring
> > > MVC, it's commonly named messages.properties.  While neither of these
> > > frameworks have a default file name, both of them allow you to
> > > customize it to whatever you want.  I'd prefer to leave my files named
> > > ApplicationResources.properties so Tapestry is easier to learn for
> > > Struts users.
> > >
> > > I tried setting
> > "org.apache.tapestry.application-specification" as an
> > > init-parameter, but if I do this, I have to change the name of my
> > > .application file as well.
> > >
> > > I tried using the following, but that didn't work either:
> > >
> > >
> > http://wiki.apache.org/jakarta-tapestry/UsingCustomResourceSourceForLibs
> > >
> > > Here's the jist of what I'm looking for - and while Howard says it's
> > > "fixed and fixed well" - I have a hard time believing that unless the
> > > name is customizable. Here's my original desire.
> > >
> > > http://issues.apache.org/jira/browse/TAPESTRY-229
> > >
> > > My guess is using a different filename is already possible, just not
> > documented.
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > >
> > > > Unless Howard either says I'm completely wrong and here is how you do
> > it, or
> > > > says that he doesn't think this is a necessary feature, I don't see any
> > > > reason why a JIRA post couldn't make this happen in 4.0.1.
> > > >
> > > >  P.S. Does this apply to .component and .page specifications as well?
> > They
> > > > all share a lot of the same infrastructure
> > > > (application/library/page/component) for defining these
> > > > things, just wondering which pill I'm looking at ;)
> > > >
> > > > j
> > > > On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > > > Yeah, I saw that.  I like this feature and think that smart defaults
> > > > > are cool - however, I'd like to override this and specify a different
> > > > > name.  Is that possible?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Matt
> > > > >
> > > > > On 2/24/06, James Carman < james@carmanconsulting.com > wrote:
> > > > > > Oh, and I got that information from here:
> > > > > >
> > > > > >
> > > >
> > http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > > > > > .namespace
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Matt Raible [mailto:mraible@gmail.com ]
> > > > > > Sent: Friday, February 24, 2006 11:46 AM
> > > > > > To: Tapestry users
> > > > > > Subject: Is it possible to do a global i18n bundle with Tapestry 4?
> > > > > >
> > > > > > In Tapestry 3.0.3, I was able to specify a global properties file
> > > > > > (i18n bundle) with the following:
> > > > > >
> > > > > > <property
> > name="org.apache.tapestry.global-properties"
> > > > > > value="ApplicationResources"/>
> > > > > >
> > > > > > I tried doing something similar in Tapestry 4.0, but no dice.
> > > > > >
> > > > > > <DEFANGED_meta
> > > > key="org.apache.tapestry.global-properties"
> > > > > > value="ApplicationResources"/>
> > > > > >
> > > > > > Is it possible to do a global i18n bundle with Tapestry 4?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > > > For additional commands, e-mail:
> > > > tapestry-user-help@jakarta.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > > tapestry-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>

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


Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Matt Raible <mr...@gmail.com>.
On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> From what I've seen I'm guessing that the fix had to do with the
> applicationId.application notion more than the abililty to name the file
> whatever you want. It does provide a global message catalog, just not the
> ability to name the associated properties file whatever you like.
>
> I will double check again to be sure it's not really possible to name the
> file whatever you want.
>
> If it isn't possible ~currently~, will a fix in 4.0.1 be a useless effort
> for your purposes?

Yes.

Thanks,

Matt

>
>
>  On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > I am probably wrong, but without spending too much time on it (and more
> > > buying time until Howard can come in and correct me) I believe that you
> more
> > > or less ~have~ to have your global il10n properties file match your
> > > application specification file name. (Like pages and components do) .
> > >
> > > There is a property you can configure (in your web.xml servlet init
> param )
> > >
> > > "org.apache.tapestry.application-specification"
> > >
> > > Which is a string path to locate your .application file. So, if you had
> an
> > > application file named " petstoredemo.application" , your global il10n
> > > properties file would need to be named "petstoredemo.properties" . (for
> your
> > > default locale, "petstoredemo_fr.properties" for francais, etc...)
> > >
> > >  Of course I am probably completely wrong, but that's what it looks like
> so
> > > far. If the functionality was taken out I'm sure it was an oversight, or
> > > just not known that it was needed.
> > >
> > > What is the "use case" more or less for renaming the file? To follow
> another
> > > convention someone already has in place?
> >
> > I'd prefer to name it whatever I like - for instance, with Struts this
> > file is commonly named ApplicationResources.properties.  With Spring
> > MVC, it's commonly named messages.properties.  While neither of these
> > frameworks have a default file name, both of them allow you to
> > customize it to whatever you want.  I'd prefer to leave my files named
> > ApplicationResources.properties so Tapestry is easier to learn for
> > Struts users.
> >
> > I tried setting
> "org.apache.tapestry.application-specification" as an
> > init-parameter, but if I do this, I have to change the name of my
> > .application file as well.
> >
> > I tried using the following, but that didn't work either:
> >
> >
> http://wiki.apache.org/jakarta-tapestry/UsingCustomResourceSourceForLibs
> >
> > Here's the jist of what I'm looking for - and while Howard says it's
> > "fixed and fixed well" - I have a hard time believing that unless the
> > name is customizable. Here's my original desire.
> >
> > http://issues.apache.org/jira/browse/TAPESTRY-229
> >
> > My guess is using a different filename is already possible, just not
> documented.
> >
> > Thanks,
> >
> > Matt
> >
> > >
> > > Unless Howard either says I'm completely wrong and here is how you do
> it, or
> > > says that he doesn't think this is a necessary feature, I don't see any
> > > reason why a JIRA post couldn't make this happen in 4.0.1.
> > >
> > >  P.S. Does this apply to .component and .page specifications as well?
> They
> > > all share a lot of the same infrastructure
> > > (application/library/page/component) for defining these
> > > things, just wondering which pill I'm looking at ;)
> > >
> > > j
> > > On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > > Yeah, I saw that.  I like this feature and think that smart defaults
> > > > are cool - however, I'd like to override this and specify a different
> > > > name.  Is that possible?
> > > >
> > > > Thanks,
> > > >
> > > > Matt
> > > >
> > > > On 2/24/06, James Carman < james@carmanconsulting.com > wrote:
> > > > > Oh, and I got that information from here:
> > > > >
> > > > >
> > >
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > > > > .namespace
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Matt Raible [mailto:mraible@gmail.com ]
> > > > > Sent: Friday, February 24, 2006 11:46 AM
> > > > > To: Tapestry users
> > > > > Subject: Is it possible to do a global i18n bundle with Tapestry 4?
> > > > >
> > > > > In Tapestry 3.0.3, I was able to specify a global properties file
> > > > > (i18n bundle) with the following:
> > > > >
> > > > > <property
> name="org.apache.tapestry.global-properties"
> > > > > value="ApplicationResources"/>
> > > > >
> > > > > I tried doing something similar in Tapestry 4.0, but no dice.
> > > > >
> > > > > <DEFANGED_meta
> > > key="org.apache.tapestry.global-properties"
> > > > > value="ApplicationResources"/>
> > > > >
> > > > > Is it possible to do a global i18n bundle with Tapestry 4?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Matt
> > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > tapestry-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> >
>
>

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


Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Jesse Kuhnert <jk...@gmail.com>.
>From what I've seen I'm guessing that the fix had to do with the
applicationId.application notion more than the abililty to name the file
whatever you want. It does provide a global message catalog, just not the
ability to name the associated properties file whatever you like.

I will double check again to be sure it's not really possible to name the
file whatever you want.

If it isn't possible ~currently~, will a fix in 4.0.1 be a useless effort
for your purposes?

On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
>
> On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > I am probably wrong, but without spending too much time on it (and more
> > buying time until Howard can come in and correct me) I believe that you
> more
> > or less ~have~ to have your global il10n properties file match your
> > application specification file name. (Like pages and components do) .
> >
> > There is a property you can configure (in your web.xml servlet init
> param )
> >
> > "org.apache.tapestry.application-specification"
> >
> > Which is a string path to locate your .application file. So, if you had
> an
> > application file named " petstoredemo.application" , your global il10n
> > properties file would need to be named "petstoredemo.properties" . (for
> your
> > default locale, "petstoredemo_fr.properties" for francais, etc...)
> >
> >  Of course I am probably completely wrong, but that's what it looks like
> so
> > far. If the functionality was taken out I'm sure it was an oversight, or
> > just not known that it was needed.
> >
> > What is the "use case" more or less for renaming the file? To follow
> another
> > convention someone already has in place?
>
> I'd prefer to name it whatever I like - for instance, with Struts this
> file is commonly named ApplicationResources.properties.  With Spring
> MVC, it's commonly named messages.properties.  While neither of these
> frameworks have a default file name, both of them allow you to
> customize it to whatever you want.  I'd prefer to leave my files named
> ApplicationResources.properties so Tapestry is easier to learn for
> Struts users.
>
> I tried setting "org.apache.tapestry.application-specification" as an
> init-parameter, but if I do this, I have to change the name of my
> .application file as well.
>
> I tried using the following, but that didn't work either:
>
> http://wiki.apache.org/jakarta-tapestry/UsingCustomResourceSourceForLibs
>
> Here's the jist of what I'm looking for - and while Howard says it's
> "fixed and fixed well" - I have a hard time believing that unless the
> name is customizable. Here's my original desire.
>
> http://issues.apache.org/jira/browse/TAPESTRY-229
>
> My guess is using a different filename is already possible, just not
> documented.
>
> Thanks,
>
> Matt
>
> >
> > Unless Howard either says I'm completely wrong and here is how you do
> it, or
> > says that he doesn't think this is a necessary feature, I don't see any
> > reason why a JIRA post couldn't make this happen in 4.0.1.
> >
> >  P.S. Does this apply to .component and .page specifications as well?
> They
> > all share a lot of the same infrastructure
> > (application/library/page/component) for defining these
> > things, just wondering which pill I'm looking at ;)
> >
> > j
> > On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > Yeah, I saw that.  I like this feature and think that smart defaults
> > > are cool - however, I'd like to override this and specify a different
> > > name.  Is that possible?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > On 2/24/06, James Carman < james@carmanconsulting.com> wrote:
> > > > Oh, and I got that information from here:
> > > >
> > > >
> >
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > > > .namespace
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Matt Raible [mailto:mraible@gmail.com ]
> > > > Sent: Friday, February 24, 2006 11:46 AM
> > > > To: Tapestry users
> > > > Subject: Is it possible to do a global i18n bundle with Tapestry 4?
> > > >
> > > > In Tapestry 3.0.3, I was able to specify a global properties file
> > > > (i18n bundle) with the following:
> > > >
> > > > <property name="org.apache.tapestry.global-properties"
> > > > value="ApplicationResources"/>
> > > >
> > > > I tried doing something similar in Tapestry 4.0, but no dice.
> > > >
> > > > <DEFANGED_meta
> > key="org.apache.tapestry.global-properties"
> > > > value="ApplicationResources"/>
> > > >
> > > > Is it possible to do a global i18n bundle with Tapestry 4?
> > > >
> > > > Thanks,
> > > >
> > > > Matt
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
>

Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Matt Raible <mr...@gmail.com>.
On 2/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> I am probably wrong, but without spending too much time on it (and more
> buying time until Howard can come in and correct me) I believe that you more
> or less ~have~ to have your global il10n properties file match your
> application specification file name. (Like pages and components do) .
>
> There is a property you can configure (in your web.xml servlet init param )
>
> "org.apache.tapestry.application-specification"
>
> Which is a string path to locate your .application file. So, if you had an
> application file named " petstoredemo.application" , your global il10n
> properties file would need to be named "petstoredemo.properties" . (for your
> default locale, "petstoredemo_fr.properties" for francais, etc...)
>
>  Of course I am probably completely wrong, but that's what it looks like so
> far. If the functionality was taken out I'm sure it was an oversight, or
> just not known that it was needed.
>
> What is the "use case" more or less for renaming the file? To follow another
> convention someone already has in place?

I'd prefer to name it whatever I like - for instance, with Struts this
file is commonly named ApplicationResources.properties.  With Spring
MVC, it's commonly named messages.properties.  While neither of these
frameworks have a default file name, both of them allow you to
customize it to whatever you want.  I'd prefer to leave my files named
ApplicationResources.properties so Tapestry is easier to learn for
Struts users.

I tried setting "org.apache.tapestry.application-specification" as an
init-parameter, but if I do this, I have to change the name of my
.application file as well.

I tried using the following, but that didn't work either:

http://wiki.apache.org/jakarta-tapestry/UsingCustomResourceSourceForLibs

Here's the jist of what I'm looking for - and while Howard says it's
"fixed and fixed well" - I have a hard time believing that unless the
name is customizable. Here's my original desire.

http://issues.apache.org/jira/browse/TAPESTRY-229

My guess is using a different filename is already possible, just not documented.

Thanks,

Matt

>
> Unless Howard either says I'm completely wrong and here is how you do it, or
> says that he doesn't think this is a necessary feature, I don't see any
> reason why a JIRA post couldn't make this happen in 4.0.1.
>
>  P.S. Does this apply to .component and .page specifications as well? They
> all share a lot of the same infrastructure
> (application/library/page/component) for defining these
> things, just wondering which pill I'm looking at ;)
>
> j
> On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
> > Yeah, I saw that.  I like this feature and think that smart defaults
> > are cool - however, I'd like to override this and specify a different
> > name.  Is that possible?
> >
> > Thanks,
> >
> > Matt
> >
> > On 2/24/06, James Carman < james@carmanconsulting.com> wrote:
> > > Oh, and I got that information from here:
> > >
> > >
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > > .namespace
> > >
> > >
> > > -----Original Message-----
> > > From: Matt Raible [mailto:mraible@gmail.com ]
> > > Sent: Friday, February 24, 2006 11:46 AM
> > > To: Tapestry users
> > > Subject: Is it possible to do a global i18n bundle with Tapestry 4?
> > >
> > > In Tapestry 3.0.3, I was able to specify a global properties file
> > > (i18n bundle) with the following:
> > >
> > > <property name="org.apache.tapestry.global-properties"
> > > value="ApplicationResources"/>
> > >
> > > I tried doing something similar in Tapestry 4.0, but no dice.
> > >
> > > <DEFANGED_meta
> key="org.apache.tapestry.global-properties"
> > > value="ApplicationResources"/>
> > >
> > > Is it possible to do a global i18n bundle with Tapestry 4?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >
> >
>
>

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


Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Jesse Kuhnert <jk...@gmail.com>.
I am probably wrong, but without spending too much time on it (and more
buying time until Howard can come in and correct me) I believe that you more
or less ~have~ to have your global il10n properties file match your
application specification file name. (Like pages and components do) .

There is a property you can configure (in your web.xml servlet init param )

"org.apache.tapestry.application-specification"

Which is a string path to locate your .application file. So, if you had an
application file named "petstoredemo.application" , your global il10n
properties file would need to be named "petstoredemo.properties" . (for your
default locale, "petstoredemo_fr.properties" for francais, etc...)

Of course I am probably completely wrong, but that's what it looks like so
far. If the functionality was taken out I'm sure it was an oversight, or
just not known that it was needed.

What is the "use case" more or less for renaming the file? To follow another
convention someone already has in place?

Unless Howard either says I'm completely wrong and here is how you do it, or
says that he doesn't think this is a necessary feature, I don't see any
reason why a JIRA post couldn't make this happen in 4.0.1.

P.S. Does this apply to .component and .page specifications as well? They
all share a lot of the same infrastructure
(application/library/page/component) for defining these things, just
wondering which pill I'm looking at ;)

j
On 2/24/06, Matt Raible <mr...@gmail.com> wrote:
>
> Yeah, I saw that.  I like this feature and think that smart defaults
> are cool - however, I'd like to override this and specify a different
> name.  Is that possible?
>
> Thanks,
>
> Matt
>
> On 2/24/06, James Carman <ja...@carmanconsulting.com> wrote:
> > Oh, and I got that information from here:
> >
> >
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> > .namespace
> >
> >
> > -----Original Message-----
> > From: Matt Raible [mailto:mraible@gmail.com]
> > Sent: Friday, February 24, 2006 11:46 AM
> > To: Tapestry users
> > Subject: Is it possible to do a global i18n bundle with Tapestry 4?
> >
> > In Tapestry 3.0.3, I was able to specify a global properties file
> > (i18n bundle) with the following:
> >
> > <property name="org.apache.tapestry.global-properties"
> > value="ApplicationResources"/>
> >
> > I tried doing something similar in Tapestry 4.0, but no dice.
> >
> > <DEFANGED_meta key="org.apache.tapestry.global-properties"
> > value="ApplicationResources"/>
> >
> > Is it possible to do a global i18n bundle with Tapestry 4?
> >
> > Thanks,
> >
> > Matt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Matt Raible <mr...@gmail.com>.
Yeah, I saw that.  I like this feature and think that smart defaults
are cool - however, I'd like to override this and specify a different
name.  Is that possible?

Thanks,

Matt

On 2/24/06, James Carman <ja...@carmanconsulting.com> wrote:
> Oh, and I got that information from here:
>
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
> .namespace
>
>
> -----Original Message-----
> From: Matt Raible [mailto:mraible@gmail.com]
> Sent: Friday, February 24, 2006 11:46 AM
> To: Tapestry users
> Subject: Is it possible to do a global i18n bundle with Tapestry 4?
>
> In Tapestry 3.0.3, I was able to specify a global properties file
> (i18n bundle) with the following:
>
> <property name="org.apache.tapestry.global-properties"
> value="ApplicationResources"/>
>
> I tried doing something similar in Tapestry 4.0, but no dice.
>
> <DEFANGED_meta key="org.apache.tapestry.global-properties"
> value="ApplicationResources"/>
>
> Is it possible to do a global i18n bundle with Tapestry 4?
>
> Thanks,
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>

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


RE: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by James Carman <ja...@carmanconsulting.com>.
Oh, and I got that information from here:

http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization
.namespace


-----Original Message-----
From: Matt Raible [mailto:mraible@gmail.com] 
Sent: Friday, February 24, 2006 11:46 AM
To: Tapestry users
Subject: Is it possible to do a global i18n bundle with Tapestry 4?

In Tapestry 3.0.3, I was able to specify a global properties file
(i18n bundle) with the following:

<property name="org.apache.tapestry.global-properties"
value="ApplicationResources"/>

I tried doing something similar in Tapestry 4.0, but no dice.

<DEFANGED_meta key="org.apache.tapestry.global-properties"
value="ApplicationResources"/>

Is it possible to do a global i18n bundle with Tapestry 4?

Thanks,

Matt

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




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


Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Mi...@expeditors.com.
I've tried before this with little success....to confirm....

You put <property name="org.apache.tapestry.global-properties" 
value="ApplicationResources"/>
In your .application file?  and then 


web/WEB-INF/classes/ApplicationResources.properties








"Matt Raible" <mr...@gmail.com> 
02/24/2006 08:45 AM
Please respond to
"Tapestry users" <ta...@jakarta.apache.org>


To
"Tapestry users" <ta...@jakarta.apache.org>
cc

Subject
Is it possible to do a global i18n bundle with Tapestry 4?






In Tapestry 3.0.3, I was able to specify a global properties file
(i18n bundle) with the following:

<property name="org.apache.tapestry.global-properties"
value="ApplicationResources"/>

I tried doing something similar in Tapestry 4.0, but no dice.

<meta key="org.apache.tapestry.global-properties" 
value="ApplicationResources"/>

Is it possible to do a global i18n bundle with Tapestry 4?

Thanks,

Matt

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



Re: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by Mi...@expeditors.com.
sorry.....I hit send too soon......I think I've figured it out.....

RE: Is it possible to do a global i18n bundle with Tapestry 4?

Posted by James Carman <ja...@carmanconsulting.com>.
/WEB-INF/applicationname.properties



-----Original Message-----
From: Matt Raible [mailto:mraible@gmail.com] 
Sent: Friday, February 24, 2006 11:46 AM
To: Tapestry users
Subject: Is it possible to do a global i18n bundle with Tapestry 4?

In Tapestry 3.0.3, I was able to specify a global properties file
(i18n bundle) with the following:

<property name="org.apache.tapestry.global-properties"
value="ApplicationResources"/>

I tried doing something similar in Tapestry 4.0, but no dice.

<DEFANGED_meta key="org.apache.tapestry.global-properties"
value="ApplicationResources"/>

Is it possible to do a global i18n bundle with Tapestry 4?

Thanks,

Matt

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




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