Returns the appropriate user language as an array.
Reads the language from language specific language files.
You won't need this as a plugin developer.
This will read the system language to
$SL (access by
$SL = LBSystem::readlanguage(null, null, true);
function readlanguage($template = NULL, $genericlangfile = "language.ini", $syslang = FALSE)
$syslang = True reads the LBSTEMPLATEDIR/lang/language.ini. The $genericlangfile parameter is ignored in that case. The parameter is used in head and pagestart as also for plugins we need to force the system language for the LB templates.