My translate behavior is like this:
public $actsAs = array(
 
'Translate'=>array('title','content','image')
                            );
I am using single i18n table for all tables.'title' and 'content' are
saved but 'image' is not saved as i am using image field as file type
and doing extra process to upload image in model.However if i make
'image' filed a text input then it's saved in i18n table but when i
change it to file type it's not saved.Can we set image field manually
for the language before saving data something like $this->data['User']
['eng']['image'] so that it gets saved in i18n table?What's the data
structure to to set before saving like  $this->data['User']['eng']
['image'] or  $this->data['eng']['User']['image'] or another one?

On Nov 23, 4:33 pm, Constantin FF <constantin...@gmail.com> wrote:
> Still not solved!
> And I dont get anything saved in the i18n table
>
> Attachment Model:
>         var $actsAs = array('Tree',
>                                 'Translate' => array(
>                                         'title' => 'titleTranslation',
>                                         'body' => 'bodyTranslation'
>                                 )
>                         );
> The View and Controller are just the classic once
>
>
>
>
>
>
>
> On Wed, Nov 23, 2011 at 1:20 PM, msujit <shoes...@gmail.com> wrote:
> > Hai,
> >       Did you managed to solve it?I am also having exact proble.I am
> > trying to save image string to i18n table but it's not saving but
> > other fileds like title,content are saved in i18n.
>
> > On Nov 23, 2:05 pm, "Constantin.FF" <constantin...@gmail.com> wrote:
> >> My Attachment model actAs Translate to be able to translate the image
> >> titles, I get the attachment saved in it's attachments table, but
> >> nothing goes to the i18n table. This is the beforeSave model data:
>
> >> Array
> >> (
> >>     [Attachment] => Array
> >>         (
> >>             [parent_id] => 0
> >>             [type] => Attachment
> >>             [status] => 1
> >>             [promoted] => 0
> >>             [attachment] => Array
> >>                 (
> >>                     [name] => bla-bla-picture.gif
> >>                     [type] => image/gif
> >>                     [tmp_name] => /tmp/phpVTolMj
> >>                     [error] => 0
> >>                     [size] => 26886
> >>                 )
>
> >>             [updated] => 2011-11-22 18:20:49
> >>             [created] => 2011-11-22 18:20:49
> >>             [lft] => 33
> >>             [rght] => 34
> >>             [body] => bla-bla-picture.gif
> >>             [title] => Bla Bla Picture
> >>             [mime_type] => image/gif
> >>             [attachmentSize] => 26886
> >>             [path] => /img/attachments/
> >>         )
>
> >> )
>
> >> How to debug and see what is the data before inserting in the model
> >> and i18n tables? Any ideas for the error?
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to