Current location: Hot Scripts Forums » Other Discussions » Database » Multi language articles in CMS


Multi language articles in CMS

Reply
  #1 (permalink)  
Old 09-14-09, 06:19 AM
3Nex 3Nex is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Multi language articles in CMS

Hello,

I'm wondering what would be the best database structure for my Articles modul to have multi language support. Does it involve more then one table or not..

Currently i have it solved with the `language_group` column which, if the article is on other language then the original, has the same value as `article_id` of the original article. Otherwise it's NULL. So, the first article has the `article_id` = 1, `language_group` = NULL (and `lang` = "en") and is in english. Then if you were to translate it to spanish and save it, it would become a new row inside the same table with `article_id` = 2 (of course), and `language_group` = 1 (and `lang` = "es").

Is this okay, what are the downsides, do you have any better ideas, how did you do it, how do other people do it?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-14-09, 07:35 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-15-09, 02:40 PM
3Nex 3Nex is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I honestly can't see how that helps me. Am i missing something or did you not read my whole post?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-15-09, 04:25 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
I did read your post.

There are two reasons I offered the link. First, if you need a multi-lingual CMS and you don't have one, or you're in the middle of building one, you may want to choose an existing system. The second reason is that you could identify existing multi-lingual CMSs and look at the code to see how they implemented it, then choose the approach you like best.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
multi language cms


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Multi Language Support Forbin Job Offers & Assistance 2 07-28-09 06:04 PM
multi language jonnekke PHP 8 06-30-08 10:50 AM
multi languege cms system soloWebDev Script Requests 1 11-21-07 01:06 PM
Community / Forums / Articles / Blogs (not CMS) Arkinia Job Offers & Assistance 7 06-21-07 08:53 PM
multi language help toemik PHP 1 08-10-03 04:15 PM


All times are GMT -5. The time now is 07:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.