fixing setting the locale back to what should be expected
fix should be applyed for every window interface and generation
Merge pull request #3046 from StevenPuttemans:fix_Qt_locale