Are you willing to create (at a later stage) a PR for that?
Yes
iTop version
No response
PHP version
No response
Reproduction procedure
as code in CKEditorHelper.php
// Extract language from user preferences
$sLanguageCountry = trim(UserRights::GetUserLanguage());
$sLanguage = strtolower(explode(' ', $sLanguageCountry)[0]);
$aSanitizerConfiguration = self::GetDOMSanitizerForCKEditor();
"ZH CN" will get "zh" as lang code in ckedtor 5, in fact ,"zh-cn" should be the correct one
Additional information (if needed)
No response
Are you willing to create (at a later stage) a PR for that?
Yes
iTop version
No response
PHP version
No response
Reproduction procedure
as code in CKEditorHelper.php
// Extract language from user preferences
$sLanguageCountry = trim(UserRights::GetUserLanguage());
$sLanguage = strtolower(explode(' ', $sLanguageCountry)[0]);
$aSanitizerConfiguration = self::GetDOMSanitizerForCKEditor();
"ZH CN" will get "zh" as lang code in ckedtor 5, in fact ,"zh-cn" should be the correct one
Additional information (if needed)
No response