Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See also PHP functions to create your webpage with LoxBerry design 


Excerpt

Returns the appropriate user language as an array.


Parameter

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['COMMON.LOXBERRY_MAIN_TITLE'])

Code Block
languagephp
linenumberstrue
$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.