fixing bug #3960
fixing the way the user language is retrieved
Merge pull request #285 from NicolasEYSSERIC/bug-3960

fixing bug #3960