If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Database for website content

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-11, 11:23
DragulaROB DragulaROB is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
Database for website content

I´m building a database for my website, and I have around 30 languages to translate it to.
I build a table for languages, and I want to relate content to it.

Example:

table languages
language
language_short (content example : EN)

table navigation
language_short (related, EN or CRO for croatian, depending on the row)
logout (example : logout, "odlogiraj se" in croatian)
signup
jointhefans
firstname
surname
email
country (rel)
city (rel)
select gender
month
day
year
pleasetype
doyouagree
So you see the problem?
How do I structure so many information without having to make so many collumns? How do I make it more simple, while I still structure the content into a logical database?
Reply With Quote
  #2 (permalink)  
Old 07-11-11, 18:12
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
When I develop multi lingual applications I look at this in a different way. I use a concept of labels. So you start off with a label called FIELD. In english we would translate that into Field, in Spanish Campo, in French champs ... So my table structure is

LabelName, LanguageID, LabelValue
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 07-12-11, 02:40
DragulaROB DragulaROB is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
THX!! How could I have not seen that? xD
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

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