Simplify lang management and make it working in compile mode

We already use the same approache for the geocoder and the tooltip. But I agree that it's not perfect. 
I would propose to revisit that globally, but it's quite complex...