fix Locale::translate bug