locale transfer class in PHP