LanguageMatcher: root matching root

Description

Deleted Component: xxx-spec

There is an oddity in language matcher when root (und) is involved. Because adding likely subtags gets und-Latn-US, we get funny results with the following (remember that the lists are preference-ordered.

desired language: {und}
supported language: {it, en}
=> en

or worse yet

desired language: {und, it}
supported language: {en, it}
=> en

Part of this is because 'und' has a special function in BCP47; it stands in for 'no supplied base language'.

To prevent this from happening, if the desired base language is und, the language matcher should not apply likely subtags to it. This should be documented in the spec.

xpath

None

locale

None

Activity

Show:
TracBot
May 10, 2019, 6:05 AM
Trac Comment 7 by —2012-03-21T07:09:50.000Z

Merged into branches/maint/maint-21 per r6749

Your pinned fields
Click on the next to a field label to start pinning.

Priority

medium

Assignee

Mark Davis

Reporter

Mark Davis

Reviewer

Yoshito Umaoka

Fix versions