Thank you, James. It all works great now. :)

Martin

On Tue, 14 Mar 2006 12:50:54 +0100, James Carman <[EMAIL PROTECTED]> wrote:

You put it right next to your module definition and it's called
hivemodule.properties (the different language versions are placed there too,
like hivemodule_fr.properties).

http://jakarta.apache.org/hivemind/localization.html

The docs are kind of hidden.  They're not with all the other general
information. They're in a section called "Tutorials and Information" on the
website.

-----Original Message-----
From: Martin Strand [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 6:00 AM
To: Tapestry users
Subject: Re: Inject locale

Thanks, but where do I put the *.properties file?
I tried looking at HiveMind's source for ModuleMessages but couldn't quite
figure it out.

Martin

On Mon, 13 Mar 2006 13:48:55 +0100, James Carman
<[EMAIL PROTECTED]> wrote:

You can use your HiveMind Messages object to do the i18n/formatting.  It
will automatically use the correct locale.

-----Original Message-----
From: Norbert Sándor [mailto:[EMAIL PROTECTED]
Sent: Monday, March 13, 2006 6:45 AM
To: Tapestry users
Subject: Re: Inject locale

I think that the ThreadLocale
(http://jakarta.apache.org/hivemind/hivemind/ThreadLocale.html) service
is for this purpose.

Regards,
Norbi

Martin Strand wrote:
Hi.
Newbie question... I wanna do some extra date formatting ("today",
"yesterday" and similar) in a HM service.
How do I inject the Locale for the current request?
Does this formatting service need to be model="threaded" or will
HiveMind handle that automagically? (since I'm injecting the current
request's Locale, which is unique to each thread)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date:
2006.03.10.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to