Tagged: string translation
Hi, I need more help if possible about this topic, that now is closed (I’m not sure how to re-open a closed topic or if it is possible, please explain me).
I’m ok with all the modifications Yigit gave to me, but now I need to translate the string in Portuguese.
I’m using wpml, but if I search for string “All properties” it gives me no results:
How can I solve this problem?
Site and page is this
Hey Nicola!
Please change the code to following one
add_filter('avf_portfolio_sort_first_label','new_first_label');
function new_first_label() {
if(ICL_LANGUAGE_CODE=='en'){
$first_item_name = "All Properties";
}
else{
$first_item_name = "All Properties in Portuguese";
}
return $first_item_name;
}
Cheers!
Yigit
great! boom! thanks!