wordpress multilingual in widgets

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: