On Fri, 9 Feb 2001, [iso-8859-1] Herv� Guidetti wrote:
> Hi all,
>
> Does anyone already thought about multilanguage site ?
> Do you use multiple templates (one for each language) or do you have
> another solution ?
> If yes how to tell Turbine to get templates for the right language ?
I was thinking of making a MessageManager application tool that
would be used with the PullService. I would like to have a single
set of templates and use something like the following:
$toolbox.mm.WelcomeText
I think that the multiple template strategy should also be
developed whereby you have separate template trees for
different locales because simply replacing a localized
piece of text may not be enough: the layout may need
to change for locales that read from right to left
or what have you.
Velocity itself doesn't support locales yet (it is something
that I have been meaning to add but haven't had time yet) in
the form of multiple template paths, one for each locale, but
it could soon if the demand was there. I intend to add it
but it's not high on my priority list as I haven't reached
the localization phase of the project I'm working on :-)
I think the MessageManager would be a nicer way to go
if you can get away with a single set of templates: say
for en, fr, and de.
I also wanted to add the ability for messages stored
in bundles to be little velocity templates themselves.
So something like $toolbox.mm.WelcomeText
might actually represent:
Hi $user, welcome to the site! You been here $visits times!
And the values of $user and $visits would be pulled from
the context before rendering the message.
> Is there something in Turbine to do that ?
Not yet, but I plan to make a MessageManager class to be used
with the Pull service. Kasper was going to give it a whirl
but I haven't heard from him for a while ;-)
jvz.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]