Hook: php_lang

1334

Use this hook to execute PHP language code in the index.php file.

For example:

if (file_exists(APP_PATH.'plugins/yourplugin/lang/'.$jkv["lang"].'.ini')) {
    $tlt = parse_ini_file(APP_PATH.'plugins/yourplugin/lang/'.$jkv["lang"].'.ini', true);
} else {
    $tlt = parse_ini_file(APP_PATH.'plugins/yourplugin/lang/en.ini', true);
}