m_sCode = $sCode; $aAvailableLanguages = Dict::GetLanguages(); $aLanguageCodes = []; foreach ($aAvailableLanguages as $sLangCode => $aInfo) { $aLanguageCodes[$sLangCode] = $aInfo['description'].' ('.$aInfo['localized_description'].')'; } // N°6462 This should be sorted directly in \Dict during the compilation but we can't for 2 reasons: // - Additional languages can be added on the fly even though it is not recommended // - Formatting is done at run time (just above) natcasesort($aLanguageCodes); $aParams["allowed_values"] = new ValueSetEnum($aLanguageCodes); parent::__construct($sCode, $aParams); } public function RequiresIndex() { return true; } public function GetBasicFilterLooseOperator() { return '='; } }