update to work with other languages

Tested with danish
Merge pull request #8 from towster/master

fix to work with other languages