Lps 42852 wsrp check language

Hi Michael.
I send you this PR based on LPS-42852.

If you have some question about it please ask me. I think that this approach could be interesting because it fixes problems with unsupported locales set in the client browser.

Thank you