Welcome Guest, Not a member yet? Register   Sign In
Language Class - loading multiple language files
#1

[eluser]GSV Sleeper Service[/eluser]
the docs in system/libraries/Language.php states
Code:
/**
* Load a language file
*
* @access    public
* @param    mixed    the name of the language file to be loaded. Can be an array
* @param    string    the language (english, etc.)
* @return    void
*/
that 'Can be an array' bit is a lie, you can't pass an array or you'll get an error along the lines of 'Unable to load the requested language file: language/Array_lang.php

Is this a planned feature? or is it a relic from an old version?
#2

[eluser]xwero[/eluser]
i think it's a relic. the whole method is based on a string filename. It seems the EL developers are not big on updating code comments as someone else found several wrongly commented @return values.




Theme © iAndrew 2016 - Forum software by © MyBB