Hook: php_admin_lang

1068

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

For example:

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