return correct language type
Merge pull request #7422 from minggo/get-curent-language

return correct language type