← Back to team overview

mahara-contributors team mailing list archive

[Bug 914019] A change has been merged

 

Reviewed:  https://reviews.mahara.org/11498
Committed: https://git.mahara.org/mahara/mahara/commit/b53830efebfc4a1f06307e308daaae4a8714a1b5
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    master

commit b53830efebfc4a1f06307e308daaae4a8714a1b5
Author: Doris Tam <doristam@xxxxxxxxxxxxxxx>
Date:   Tue Dec 8 10:30:46 2020 +1300

Bug 914019: Default to the first language listed in Accept-Language for
lang dropdown

Set the default language when no preferences have been set to the first language
in the request header Accept-Language where there is a lang pack installed,
otherwise default to en.utf8.

Default string only appears when the current language is not the Accept-
Language

Added a method to match lang packs to Accept-Language list

Change-Id: I7ed02c5be10ede0967861cba353bd0fc4ccb650e

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/914019

Title:
  The language chooser drop down should honor Accept-Language

Status in Mahara:
  Fix Committed

Bug description:
  Browsers send an Accept-Language header in every HTTP request based on
  the user's language preferences.

  When more than one language is installed in Mahara, we display a
  language chooser.

  We should default to the first language listed in Accept-Language
  (ignoring languages listed there for which no langpack is installed).

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


References