Fix for issue 1735: Manually set available locales
Merge pull request #1761 from YusiFan/issue-1735

Fixes #1735.