Add multilanguage support to GLPI SOC Plugin

This commit is contained in:
tips-of-mine
2025-05-31 10:57:31 +02:00
committed by GitHub
parent 5f97834036
commit c428a4271b
11 changed files with 745 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class PluginSocCase extends CommonDBTM {
* @return string
*/
static function getTypeName($nb = 0) {
return _n('SOC Case', 'SOC Cases', $nb);
return _n('SOC Case', 'SOC Cases', $nb, 'soc');
}
/**
@ -56,7 +56,7 @@ class PluginSocCase extends CommonDBTM {
self::SEVERITY_CRITICAL => __('Critical', 'soc'),
self::SEVERITY_HIGH => __('High', 'soc'),
self::SEVERITY_MEDIUM => __('Medium', 'soc'),
self::SEVERITY_MEDIUM => __('Low', 'soc')
self::SEVERITY_LOW => __('Low', 'soc')
];
}