Hi
I have devloped an application, though, not in turbine that had 3 languages
associated with it.
We created a Properties file that contained properties similar to this :
DE_TITLE=Title in german
FR_TITLE=Title in French
EN_TITLE=Title in English
These properties were read in added to the session. When a user logged in
they had a language field in the User table which was added to that users
session upon login.
I suggest in Turbine that in the doBuildTemplate method of the template in
question you retrieve the elements from the properties and place them into
the context.
String lang = (String) session.getAttribute("UserLanguage");
Properties props = (Properties) session.getAttribute("LangaugeProperties");
String title = props.getProperty(lang + "_TITLE");
Then add this to the context
context.put("title",Title);
Now in your template you can display the title in the language of the
current user.
I know this may not be a very elegant solution but it worked and the
customer was very happy with the solution.
Rgrds
John
----- Original Message -----
From: "Matthew Forder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 4:23 PM
Subject: Multiple Languages
> Does anyone have any good tips or tricks on how to implement turbine
> applications that have to display their web pages in multiple languages?
> I have a requirement to build a simple application that can display its
> interface in Dutch (ugh! =;o) ) or English, and I'm sure somebody out
> there must have run into similar problems and has already come up with a
> nifty solution.
>
> Any light you shed on this is greatly appreciated.
>
> Thanks in advance,
>
> Matt
>
> --
> ____ | Matthew J. Forder | Data Center Supervisor
> / / () | Seagate Techology | Tel:+31 20 316 7468
> \ \ \ | Koolhovenlaan 1 | Fax:+31 20 653 5537
> ()_/_/ | 1119 NB Schiphol-Rijk, NL | [EMAIL PROTECTED]
>
>
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.263 / Virus Database: 135 - Release Date: 6/22/2001
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]