Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > General > Database Concepts & Design > Multi-lingual Database Design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-03, 22:27
wajid wajid is offline
Registered User
 
Join Date: Jun 2003
Posts: 4
Question Multi-lingual Database Design

Hi

I am working on a multi-lingual web application. This application will provide the search facilty to data related to products in different languages according to the clients locale information.

There are different approaches i have identified to store the multilingual data each have its own good and bad points.

i.e

One table per language
One column in table for each language
One row containing the data in each language with the language id

I want to have a good advice for it so that in future this design will help me for maintinance and w.r.t response time.

I will wait for your quick response.

Best Regards

WAK
Reply With Quote
  #2 (permalink)  
Old 06-10-03, 09:26
MattR MattR is offline
Registered User
 
Join Date: Mar 2001
Location: Lexington, KY
Posts: 606
I've done the language ID portion, e.g.

ErrorCode( Code, Lang, Message )
where:
{ 'Err1', 'EN', 'You broke it, dummy!';
'Err1', 'FR', 'Parlez-vouz dummy?' }

The primary key was Code, Language.
__________________
Thanks,

Matt
Reply With Quote
  #3 (permalink)  
Old 06-10-03, 09:41
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 4,874
Re: Multi-lingual Database Design

Quote:
Originally posted by wajid
Hi

I am working on a multi-lingual web application. This application will provide the search facilty to data related to products in different languages according to the clients locale information.

There are different approaches i have identified to store the multilingual data each have its own good and bad points.

i.e

One table per language
One column in table for each language
One row containing the data in each language with the language id

I want to have a good advice for it so that in future this design will help me for maintinance and w.r.t response time.

I will wait for your quick response.

Best Regards

WAK

Of the 3 approaches, only one allows for addition of further languages without having to create or alter tables - and therefore, without having to modify your application code either. That is the 3rd option with the row per language. The additional condition on queries ("and language_code=?") should not impact performance significantly.
__________________
Tony Andrews
http://tonyandrews.blogspot.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On