Comment 11 for bug 1467252

Revision history for this message
Aaron Wells (u-aaronw) wrote :

The patch for Bug 1508723 creates dedicate language strings for the Switchbox. So that means that for 15.10 and 16.04, the workaround is to make sure that the translations for these language strings are roughly the same size as the English word "Yes":

pieforms/switchbox.true (English: "True")
pieforms/switchbox.false (English: "False")
pieforms/switchbox.on (English: "On")
pieforms/switchbox.off (English: "Off")
pieforms/switchbox.yes (English: "Yes")
pieforms/switchbox.no (English: "No")

As described in this note ( https://bugs.launchpad.net/mahara/+bug/1508723/comments/7 ) we didn't backport the patch to 15.04, because it would break existing translations. So those dedicated language strings don't exist in Mahara 15.04. But there is a patch for 15.04 which affected sites can apply manually if they'd like to.

But the above is just a workaround. The underlying bug here still exists. Specifically, the bug is that the switchbox is hard-coded to a certain size. Instead, it should be dynamically sized to fit the text labels that particular switchbox is displaying.