making locale generation variable dependent