CRM-16119: Fix incorrect usages of ts().