following the rails4 branch for globalize3