![]() |
Problem with Form_validation with multilenguage 1.7.2 (Solved) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with Form_validation with multilenguage 1.7.2 (Solved) (/showthread.php?tid=37471) |
Problem with Form_validation with multilenguage 1.7.2 (Solved) - El Forum - 01-11-2011 [eluser]Agustín Villalba[/eluser] Hello! I'm trying to use multilenguage in my site, and when I set the language to spanish, the form_validation library still shows the validation_errors() messages in english, but I have the file "form_validation_lang.php" in my system/language/spanish folder, and the other strings (my strings) in my site are in Spanish. What I have to do in order to use multilenguage in form_validation properly? Thanks. Problem with Form_validation with multilenguage 1.7.2 (Solved) - El Forum - 01-11-2011 [eluser]Ochetski[/eluser] 1. Do you have all the files inside system/language/spanish folder? 2. form_validation_lang.php and validation_lang.php are there? 3. Is the message a custom validation method or CI methods (required|is_natural|...)? Problem with Form_validation with multilenguage 1.7.2 (Solved) - El Forum - 01-11-2011 [eluser]Agustín Villalba[/eluser] I have solved it. The problem is that I have to set dynamically the default language, like this: $this->config->set_item('language',$new_language); With that, my problem is solved. Thanks anyway! |