Fix detect_locale bug
Merge pull request #5 from ruedap/fix-issue-5

Fix detect_locale bug