← Back to team overview

mahara-contributors team mailing list archive

[Bug 1889369] Re: Language menu shows when there's only one language

 

** Changed in: mahara/20.10
       Status: Confirmed => In Progress

** Changed in: mahara/20.10
     Assignee: (unassigned) => Cecilia Vela Gurovic (ceciliavg)

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

Title:
  Language menu shows when there's only one language

Status in Mahara:
  In Progress
Status in Mahara 19.10 series:
  Confirmed
Status in Mahara 20.04 series:
  Confirmed
Status in Mahara 20.10 series:
  In Progress

Bug description:
  On a fresh 20.04, we've seen cases of the language menu showing up
  even when only one language is actually present.

  The reason is that LANGCHOICES is an array of all possible languages
  that can be selected, and the test in the template to show/hide the
  language selector is whether LANGCHOICES is empty or not.

  There should be an additional flag for 'show language selector' which
  is true/false based on whether LANGCHOICES has > 1 entry or not in it.

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


References