kohana validation rule versus language file

i have a kohana powered website and i use a language file for language messages. in the model i do validation, and i have a 'matches' rule. here is one:

    ->rule('email2',  'matches', array('email');    

and in the languge file i do:

   'email2.matches' => 'message here.', 

but i get the error message: E-mail: must be the same as E-mail: instead of 'message here.'.

where i am wrong? is this thing documented ?

thanks a lot!

Answers


Validation errors use messages, which are separate from i18n. You will need to make your own messages/validation.php, and include

<?php

return array(
    'email2' => array(
        'matches' => 'Message here',
    ),
);

Need Your Help

Looking for a PHP/Ajax/MySQL code snippet to add/edit tags - same as stackOverflow

php mysql ajax

I'm in the middle of adding a tagging system to my website. I want to be able to easily add/edit items tags.

Core data problems in iPhone testing

iphone ios xcode core-data

I have an app which I test in my mac and emulator and it rocks. But when I try to test it with an iPhone or another person try to run it. It gets an error in someplace and sends this: