Hi Romkabouter,
Thank you for your help. Maybe, I am not so far from the solution...
Here what I have done :
Forking the view :
// Catégorie > Titre
$modelCategory = CkJModel::getInstance('categories', 'Cmp18Model');
$modelCategory->set('context', $model->get('context'));
$nomFiltre = ($lg == 'fr') ? 'filter_category':'filter_category_en';
$filters[$nomFiltre]->jdomOptions = array(
'list' => $modelCategory->getItems()
);
Forking the items having a category field to filter on, I modify the models/forms/object.xml that way :
<field name="filter_category"
listKey="id"
labelKey="libelle"
type="ckcombo"
submit="true"
nullLabel="CMPLUTECE18_FILTER_NULL_CHOISIR_UNE_CATEGORIE"
class="span-2 element-filter"
label="CMPLUTECE18_JSEARCH_CATEGORIE_TITRE"
ui="chosen"/>
<field name="filter_category_en"
listKey="id"
labelKey="libelle_en"
type="ckcombo"
submit="true"
nullLabel="CMPLUTECE18_FILTER_NULL_CHOISIR_UNE_CATEGORIE"
class="span-2 element-filter"
label="CMPLUTECE18_JSEARCH_CATEGORIE_TITRE"
ui="chosen"/>
In the model categories.pfp file, I forked the prepareQuery function to order the query on libelle or libelle_en field depending on the selected language.
With these modifications done, I am able to get the filter combo for category filled with the selected language and it is well ordered... Great ! but...
What is not working...
In English, when a filter is applied, the combo box does not display the selected value as it does in french...
Any idea ? Or another way to do it ?
Best regards,
Fred