Fix locale problems

So in this patch I have fixed problem where fallbackLang was undefined
and navigator language problem.

I have also change the way how we use underscore and hyphen since
language code should be hyphen not underscore.
Merge pull request #984 from alicoding/fixLangProblem

Fix locale problems