Bugfix: LANG env variable is ignored

Introduced by 361a784e2f572aecfb53deaf1a58b27d3a8f688a

In order to improve readability, the use of variables 'language' and 'locale' is swapped.