Use a set to collect translatables

Prevents duplicate translations from being needlessly requested from the DB.