Move trans from logic-less array to inside business logic. Convert tabs to spaces.