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
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/init_lang_load.txt · Last modified: by torpedo