DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:init_lang_load

Table of Contents

INIT_LANG_LOAD

Description:
manipulate the loading of the main language files
DefaultAction:
loads the English and the configured language's lang.php file
Preventable:
yes
Added:
2012-03-10

This event is signalled in inc/init.php when the language files are loaded, handlers can use it to manipulate the loaded files and the language array. Note that this event only influences the $lang global. Localized wikitext files or plugin language files are not loaded here but on demand when used.

This event is currently the earliest event available and runs even before DOKUWIKI_STARTED.

Passed Data

$data is the configured language so it's the same value as configuration setting $conf['lang']. Modifying $data does not influence the configuration setting, so you need to modify $conf['lang'] yourself if you want that behavior.

See also

devel/event/init_lang_load.txt · Last modified: 2018-12-08 15:42 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki