How about:

```
= _("Sockets: %s") % @subscription.sockets if @subscription.sockets > 0
```