← Back to team overview

mahara-contributors team mailing list archive

[Bug 1467252] Re: Display problem with Switchbox when label strings aren't the same length as "On" & "Off"

 

So to be clear, for any translators coming across this, this issue has a
partial workaround.

Most switchboxes are On/Off, and the 'on' and 'off' strings are only
used for the switchbox, so you can set them the same as the French
langpack:

$string['off'] = 'O';
$string['on'] = '❙';

Unfortunately, the "Yes" and "No" strings are used in places other than
the switchbox, so you can't use the same thing there. Fortunately, most
of the "yesno" switchboxes are on the admin side of Mahara. The only one
visible to non-admin users is in the form for editing a task in a plan.
So, the impact of that bug should be fairly limited.

-- 
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


References