Welcome Guest, Not a member yet? Register   Sign In
How use translated database
#24

[eluser]keevitaja[/eluser]
i would create 2 tables:

header
header_id int autoincrement

content
content_id int autoincrement
header_id int
language varchar
content text
+ some other fields

to add new content:

first create header and get its header_id
second create content and add created header_id and language segment

lets say you have about controller with 2 languages. in content table both languages have identical header_id, but different language segment.

to pull out the data from content table, you use header_id(both languages) and language segment.




Messages In This Thread
How use translated database - by El Forum - 10-01-2012, 07:35 AM
How use translated database - by El Forum - 10-01-2012, 07:45 AM
How use translated database - by El Forum - 10-01-2012, 09:18 AM
How use translated database - by El Forum - 10-01-2012, 09:19 AM
How use translated database - by El Forum - 10-01-2012, 10:54 AM
How use translated database - by El Forum - 10-01-2012, 11:02 AM
How use translated database - by El Forum - 10-01-2012, 11:06 AM
How use translated database - by El Forum - 10-01-2012, 11:38 AM
How use translated database - by El Forum - 10-01-2012, 11:52 AM
How use translated database - by El Forum - 10-01-2012, 12:43 PM
How use translated database - by El Forum - 10-01-2012, 12:47 PM
How use translated database - by El Forum - 10-01-2012, 01:08 PM
How use translated database - by El Forum - 10-01-2012, 02:10 PM
How use translated database - by El Forum - 10-02-2012, 05:10 AM
How use translated database - by El Forum - 10-02-2012, 05:18 AM
How use translated database - by El Forum - 10-02-2012, 05:27 AM
How use translated database - by El Forum - 10-02-2012, 05:33 AM
How use translated database - by El Forum - 10-02-2012, 05:36 AM
How use translated database - by El Forum - 10-02-2012, 05:39 AM
How use translated database - by El Forum - 10-02-2012, 06:46 AM
How use translated database - by El Forum - 10-02-2012, 06:53 AM
How use translated database - by El Forum - 10-02-2012, 06:55 AM
How use translated database - by El Forum - 10-02-2012, 10:34 AM
How use translated database - by El Forum - 10-02-2012, 10:41 AM
How use translated database - by El Forum - 10-05-2012, 11:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB