Language support for validation error messages - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Language support for validation error messages (/showthread.php?tid=8814) |
Language support for validation error messages - El Forum - 06-01-2008 [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? Language support for validation error messages - El Forum - 06-02-2008 [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. |