mirror of
https://github.com/tips-of-mine/GLPI-Plugin-SOC-Case-Management.git
synced 2025-06-28 05:38:42 +02:00
Correction du fichier hook.php pour le plugin SOC
This commit is contained in:
17
inc/plugin_init_translations.php
Normal file
17
inc/plugin_init_translations.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Initialize plugin translations
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function plugin_init_soc_translations() {
|
||||
global $CFG_GLPI;
|
||||
|
||||
$domain = 'soc';
|
||||
$locale_dir = GLPI_ROOT . '/plugins/soc/locales/';
|
||||
|
||||
if (file_exists($locale_dir)) {
|
||||
// Load plugin translations
|
||||
$GLOBALS['LANG']->addTranslationFile('gettext', $locale_dir, $domain, $_SESSION['glpilanguage']);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user