You can clone with
No one assigned
If I create a form validation language file in 'application/language/english/form_validation_lang.php', CodeIgniter only loads this language file and the one from 'system/language/english/form_validation_lang.php' is not loaded.
I can avoid this behavior by writing the following line of code in 'application/language/english/form_validation_lang.php':include('system/language/english/form_validation_lang.php');
It would be correct if CodeIgniter would automatically load both language files and merge them.
The User Guide (http://codeigniter.com/user_guide/libraries/language.html) states, that CI will first llok in application/language and then in system/language for the language file you want to load (or in this case that's auto-loaded by the form_validation library) and will load the first file it finds. No where does it say that the files will be merged if more than one file is found.
However I can totally see why you'd prefer the merging behaviour over the current one. I would image that it loads the one in the system folder first and then looks for the one in the application folder. If only one of them is found then we are done and business as usual. If however both are found, then they should be merged in that way, that the values from the file in application/languages overwrite those in system/languages. Agree?
You are right, the user guide does not state that the files should be merged. I agree with you that values from application/languages must overwrite the values from system/languages. In my opinion this behavior will be more useful for the programmers. However, if this contradicts the specification adding an include line, as stated above, in 'application/language/english/form_validation_lang.php' is not such a big deal.
Implement cascade-style loading of language files
(as requested in issue #452)
Implemented, see the above commit.
Merge pull request #452 from ibarrajo/2
Added and fixed spanish translations