Switch hook_civicrm_entityTypes to search by name; use E::ts()
Upstream changes in core mean that you can't count on the DAO classname as the array key. This switches to search by $entity['name'] instead.
While I was at it I also updated ts() to be E::ts().