Adapt locale regeneration to Ubuntu, for Travis CI.