Utilise le nouveau table u supannNomenclatures dans supannTranslateLabeledValue
This commit is contained in:
parent
0d37b2b338
commit
7ea0c40431
|
@ -74,6 +74,7 @@ LSerror :: defineError('SUPANN_02',
|
|||
'supannTranslateFunctionDirectory',
|
||||
'tableCodeUAI',
|
||||
'supannTranslateEtablissementDirectory',
|
||||
'supannNomenclatures',
|
||||
);
|
||||
foreach($MUST_DEFINE_ARRAY as $array) {
|
||||
if ( !isset($GLOBALS[$array]) || !is_array($GLOBALS[$array])) {
|
||||
|
@ -346,10 +347,15 @@ LSerror :: defineError('SUPANN_02',
|
|||
$label=$pl['label'];
|
||||
$value=$pl['value'];
|
||||
}
|
||||
if (isset($GLOBALS['supannNomenclatures'][$label][$key])) {
|
||||
$translated = $GLOBALS['supannNomenclatures'][$label][$key];
|
||||
} else {
|
||||
$translated = $value;
|
||||
}
|
||||
|
||||
return array(
|
||||
'label' => $label,
|
||||
'translated' => $value
|
||||
'translated' => $translated
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue