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.

closes #982