Change locale if necessary