DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

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