Hello all :)

I use the Translate Behavior normaly but I'm not sure if the way I'm
using it is the correct, that's why I need your help !

Tha way I use it is this

var $actsAs = array(
        'Translate'=>array(
                'name'=>'nameTranslated'
        )
);

Where name is the field name that I like to translate.

After every saving into the I18n I get one record like this

id        locale       model             foreign_key      field
content
1         gre           MenuGroup     1                     name
My greek content
2         gre           MenuGroup     2                     name
My another greek content

Now If I change my language to english and I add some records into my
table the i18n get again the new records like that

id        locale       model             foreign_key      field
content
1         gre           MenuGroup     1                     name
My greek content
2         gre           MenuGroup     2                     name
My another greek content
3         gre           MenuGroup     3                     name
My english content
4         gre           MenuGroup     4                     name
My another english content

Is that correct ? ? ?

Or Am I doing something wrong ? ? ?

May the foreign key must point to the i18n id column of the the greek
records ? ? ?

I mean something like that :

id        locale       model             foreign_key      field
content
1 <-     gre           MenuGroup     1                     name     My
greek content
2 <-     gre           MenuGroup     2                     name     My
another greek content
3         gre           MenuGroup     1 <-                 name     My
english content
4         gre           MenuGroup     2 <-                 name     My
another english content

And if this is the normal how to fix this think ? ? ?

Kind regards

Merianos Nikos
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to