change language in validation error message. How to get it work? - 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: change language in validation error message. How to get it work? (/showthread.php?tid=25522) |
change language in validation error message. How to get it work? - El Forum - 12-15-2009 [eluser]runrun[/eluser] I followed every steps in user guide but can't get it right, hope you can help me. I'm making a newsletter subscribing, user will provide email, if fail validation, they see error message in Vietnamese instead of English. I don't know what steps missed out. My controller: Code: class Home extends Controller { My view: Quote: <form class="sub_form" method="post" action="<?=site_url('home')?>"> My customized error message in vietnamese language file is located at Code: system/application/language/vietnamese/viet_validation_lang.php here is how it look like Code: $lang['required'] = "Cần phải cung cấp %s."; |