Hi Dennis, and thank you for your reply. I think I didn’t explain my subject correctly.
With WPML, we have the following code to translate a category with its ID and current language :
$cat_id=14; //cat id in english version, default site language
$translated_cat_id = icl_object_id($cat_id, ‘category’, false, ICL_LANGUAGE_CODE);
$category = get_category($translated_cat_id);
…
In this particular code, if ICL_LANGUAGE_CODE = ‘en’, the $translated_cat_id will always remain 14, otherwise, it’ll be replaced by the ID of the translated category.
I want the equivalent of this function with Multilinguage switcher.
Or have kind of :
if (ICL_LANGUAGE_CODE==’en’) $cat_id=14;
else $cat_id=22;
and I want to know the equivalent function of ICL_LANGUAGE_CODE
Thank you