How to get the language of the browser with Vaadin7 ?

Hi guys,

In Vaadin6, if i want to get the
used by the client’s browser, i used this code in the init() method :

String language1 = ((WebApplicationContext)this.getContext()).getBrowser().getLocale().getLanguage().toString();

But, this code doesn’t work any more with Vaadin7.
Do you know how to get the same info with Vaadin7 ???


getPage().getWebBrowser() returns the same as ((WebApplicationContext)this.getContext()).getBrowser()

Thank you Artur, your solution works fine