http://book.cakephp.org/view/1230/Localization-in-CakePHP

Reload invalidate() method.

On 13 окт, 18:38, heohni <[email protected]> wrote:
> Hi,
>
> I have this in my app_model.php
> public $validate = array();
>
>     public function __construct($id = false, $table = null, $ds =
> null) {
>         parent::__construct($id, $table, $ds);
>
>         $this->_validationRules();
>     }
>
> And this way I have my model
> unction _validationRules() {
>         $this->validate = array(
>             'name' => array(
>                 'rule' => 'notEmpty',
>                 'message' => __('Name can not be empty', true)
>             ),
>
> I have a .po file and translated all these strings.
>
> The project works perfect when I switch the languages, just not for
> the validation error.
>
> Has anyone any ideas?

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to