Language support for validation error messages

So ... how do we use languages in such a way that it can be used for validation (form validation) error messages.

I am using CI's validation class to do validation, and it seems that I will need to manipulate it's error messages for languages. what do I do to just set the messages to verify with the loaded language first?


$this->lang->load('validation', 'german');

and in the language dir :
- add new directory for your language
- copy english/validation_lang.php to your new dir.
- edit the strings inside this file.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.