Make gettext work in Windows.

The gettext module seems to take language from an environment variable
instead of the locale module.