![]() |
Form Validation and language selection - 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: Form Validation and language selection (/showthread.php?tid=29507) |
Form Validation and language selection - El Forum - 04-12-2010 [eluser]Adam K[/eluser] Hello, I'm using my own simple language selection through my app in CI, however I use Form Validation Class for validating forms. This is my only controller: Code: <?php as you can see, it's rather straightforward, defining LANG allows me later in templates decide which part of html to show with easily readable Code: if(LANG===SK) My problem however is with translated form validation errors - I can't find out how to tell CI which language to use Run Time, since I set language application-wide BEFORE any controller method kicks in (I use just form validation lang files) |