But now I have other trouble...
I wanna use the Translate behavior in a model... Already create the i18n
table using the console.
I added the below code at model:
public $actAs = array(
'Translate' => array('name' =>'tName',
'clean_name' => 'tClean_name',
'description' => 'tDescription',
'video_id' => 'tVideo_id')
);
and this in controller (before $this->Article->save()):
$this->Article->locale = 'pol';
But when I create a record in the articles table, CakePHP does not generate
the respective recrod in i18n table.
Have I to setup anything else?
Thank you.
Regards
--
View this message in context: http://cakephp.1045679.n5.nabble.com/Extract-po-file-from-my-app-with-i18n-extract-console-command-tp4542889p4545125.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment