Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am planning to build a multilingual CMS & I have the following:
CREATE TABLE `posts` ( `post_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `post_cat` INT(11) UNSIGNED NOT NULL, `post_date` DATETIME NOT NULL, `post_title` VARCHAR(255) NOT NULL, `post_body` TEXT NOT NULL, `post_lang` TINYINT UNSIGNED NOT NULL ); CREATE TABLE `languages` ( `lang_id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `lang_name` VARCHAR(60) NOT NULL );
Obviously enough I'll need a 3rd table to connect same posts of different languages together ... but I am out of ideas as I don't see how easy to implement it or use it in Perl i.e: when you are in a page in English you'll have the option to press on "French" button .. and you'll have the same post in French.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [OT] Database Design
by ikegami (Patriarch) on Aug 10, 2010 at 22:33 UTC | |
by Anonymous Monk on Aug 11, 2010 at 02:58 UTC | |
by ikegami (Patriarch) on Aug 11, 2010 at 03:16 UTC | |
by xiaoyafeng (Deacon) on Aug 11, 2010 at 09:50 UTC | |
|
Re: [OT] Database Design
by planetscape (Chancellor) on Aug 11, 2010 at 03:31 UTC | |
|
Re: [OT] Database Design
by Your Mother (Archbishop) on Aug 10, 2010 at 23:47 UTC | |
by Anonymous Monk on Aug 11, 2010 at 03:07 UTC | |
by ikegami (Patriarch) on Aug 11, 2010 at 03:19 UTC | |
|
Re: [OT] Database Design
by isync (Hermit) on Aug 10, 2010 at 23:42 UTC | |
by Anonymous Monk on Aug 11, 2010 at 03:01 UTC | |
|
Re: [OT] Database Design
by aquarium (Curate) on Aug 11, 2010 at 03:23 UTC |