CodeIgniter Forums
Custom language files - 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: Custom language files (/showthread.php?tid=6061)



Custom language files - El Forum - 02-13-2008

[eluser]mrtopher[/eluser]
I've been trying to be really careful with the modifications I make to CI so that I do them in a way that won't cause problems when I do a CI update. However, something I missed was the language files. I have extended the core CI validation class to add some additional check functions and so I added the appropriate error messages to the validation_lang.php file. Then when I did the most recent update I lost my messages... my fault.

After I realized what had happened, I created a new validation_lang.php and put it in a langaugae folder within my application folder hoping that it would be used over the default, but that doesn't appear to be happening.

Is there any way to make modifications to the validation language file without making them to the default one stored in system/language/en?


Custom language files - El Forum - 02-13-2008

[eluser]xwero[/eluser]
I move the CI language files to the application/language directory and change them there. The language files in the system/language directory are only loaded when the ones in the first directory doesn't exist.