Refresh locale mapping after application enable

Closes  #1779
Remove superfluous variable.
Merge pull request #2060 from hgtonight/patch-1

Refresh locale mapping after application enable