Welcome Guest, Not a member yet? Register   Sign In
Language support for validation error messages
#1

[eluser]MABUS[/eluser]
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?
#2

[eluser]unficyp[/eluser]
heyho,

eg:
$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.




Theme © iAndrew 2016 - Forum software by © MyBB