I've a small issue with custom PHP code in html widgets combined to WPML because apparently widget code does not seem to be interpreted by WPML, probably a cause of hook orders. Here's how I made a widget display rencet posts depending on chosen language:
- php widget plugin : Linkable Title Html and Php Widget by PepLamb!
- code from wpml forum allows you to use ICL_LANGUAGE_CODE to make your query function icl_get_recent_posts (that I coded in functions.php) use the chosen language to query recent posts. Here is a copy of the widget configuration