On further testing, it looks like the problem here is that the
switchbox's width is hard-coded to the English language labels "On" and
"Off". Having a label that is significantly shorter *or* longer than
this, will cause display problems. So, it works for the "Yes" and "No"
switches (which you see on the "Add users by CSV" screen) but it doesn't
work for "True" and "False" (which is supported by the switchbox element
but not currently used in core)

The French langpack has cleverly worked around this for on/off by
setting them to "❙" (that's some kind of unicode pipe character which is
wider than the ASCII "|") and "O" (capital-O).

For "Yes" & "No" it has "Oui" and "Non", and as a result it has display
problems.

** Summary changed:

- Display problem with Switchbox when label strings aren't exactly the same 
length as English-language label strings
+ Display problem with Switchbox when label strings aren't the same length as 
"On" & "Off"

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1467252

Title:
  Display problem with Switchbox when label strings aren't the same
  length as "On" & "Off"

Status in Mahara:
  Triaged

Bug description:
  It was ok in 15.04 but the the new interface of 15.10dev, the
  translated text for the "switch" options are not displayed correctly.

  1/ When "On", the translated text for "on" is displayed, with the text for 
"off" partially 
  2/ When "Off", the translated text for "off" is displayed centered below the 
the red bullet

  (see inclosed picture)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1467252/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to