db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvaro Coronel <alvarocorone...@yahoo.com>
Subject RE: Multilanguage application
Date Wed, 23 Feb 2005 11:03:46 GMT
Hello Derek. The zip attachment got lost in the way ( see the "File attachment: I18N.zip The
file attached to this email was removed because the file name is not allowed." at the end
of the mail).
Could you put it somewhere to be downloaded, or tell us how to get hold of it?
Many thanks in advance!

Anderson Derek Civ AU/SCI <Derek.Anderson@MAXWELL.AF.MIL> wrote:
I wrote a decent stand-alone I18n implementation a while back. I think
you're going after the same thing I was. You're free to use it if you

Here is the table structure I use:

Describing: I18N

ID for the id, LANG for the W3C language code, NS for the namespace (ie
MyApp/MyJSP.jsp) and TEXT for the user-customizable text.

Attached is the interface code, with some samples in the Javadoc comments.
Read I18n.java.

Derek C. Anderson
AUREPM Project Lead
Computer Sciences Corporation

-----Original Message-----
From: Alex Hepp [mailto:hepp@evamann.de] 
Sent: Tuesday, February 22, 2005 10:49 AM
To: Apache Torque Users List
Subject: Re: Multilanguage application

Hi everybody,
hi Kintzel.

If I had enough time to develop such a solution (for there are no 
problems, but only solutions;) ), i would only save references to 
resources in db instead of real text.

have a resource table with ids and optionally names. then have a 
language table with ids and optionally names. then have a table 
language_resources with resource id, language id and the real text.
in the table link in the column description you only have a reference to 
the id of the resources table.

then you can decide, whether you have a property, or let the user 
decide, which language to use. With the combination of language id and 
resource id you know the row of language_resources you have to fetch. 
simple criteria there.

But there is one factor you have to think about. This method is pretty 
time intensive. You can surely also use the internationalisation service 
(i18n) that comes with turbine, but i didn´t try that.

Good luck and have fun!
kind regards
Alex Hepp

T E Schmitz schrieb:

> Kintzel Levente wrote:
>> This is important for a multilanguage application. Example: For a 
>> "link" on a linkpage I have a description in more than one language 
>> and the url. I want to store the description in several languages in 
>> such a way to be easy to maintain. Some design patterns for this 
>> problem? How to design the tables for this problem? (schema?).
> Recently I came across Jakarta Commons Resources 
> http://jakarta.apache.org/commons/resources/
> The API provides access to JDBC Resources. I haven't had a close look 
> at it, so I don't really know whether it is suitable for your 
> application, but it might give you some ideas.

File attachment: I18N.zip
The file attached to this email was removed
because the file name is not allowed.
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message