Wednesday, February 4, 2009

Re: How to save multilingual data in database?

Hi, do you mean to store them so that you're able later to idneitfy
them as being in french?
If so, I think it's similar to what I'm trying to do on my site. One
way to use a single model and db table to store data in different
langauges, is just to have a column to store the language of the data,
and use it as a filter during retrieving. You can populate this column
with the language value you get from the cookie and use the same value
while retrieving data.
I fyou have to support many languages and you expect huge amount of
data probably having a single table tih a language column is not the
best, so I'll be waiting with you for better suggestions.

Andrea

On Feb 4, 3:42 pm, vikas <vikas...@gmail.com> wrote:
> Hello all..
>
> I am working on a matrimonial site which is multilingual..
>
> I want that when new user register himself his with information, it
> will store be store in language he choose initially..
>
> say suppose user select french language initially.. and then register
> himself with data in french.. so is it possible that data will be
> store in french in database??
>
> I have store his selected language using cookie..
>
> waiting for reply from anyone...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: