In the webwml repository there's a branch named language-selector which is an old attempt to implement this. Maybe you want to have a look at it. -- regards Thomas