Adding method translate() and getTypeIcon()