Item12482: Incorrect derivation of value for 'lang' and 'xml:lang' attributes

Priority: Urgent
Current State: Closed
Released In: 1.1.9
Target Release: patch
Applies To: Engine
Branches: Release01x01 trunk
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
The value of the lang and xml:lang attributes in the html tag of any output page is generated from the LANG macro. However this macro is incorrect - it generates language identifiers that are not compliant with any of the relevant RFCs or BCP 47, all of which require '-' as a separator - we are generating '_' (underscore).

This comes about because the language code is obtained from the locale setting (irrespective of whether UseLocale is set) and defaults to en_US

See Support.Question1223 for how this was found.

-- CrawfordCurrie - 01 May 2013

See also: Item8520


ItemTemplate edit

Summary Incorrect derivation of value for 'lang' and 'xml:lang' attributes
ReportedBy CrawfordCurrie
SVN Range
AppliesTo Engine
Priority Urgent
CurrentState Closed
Checkins distro:8970f989e47a distro:379ab7a78459
TargetRelease patch
ReleasedIn 1.1.9
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:8970f989e47a
Release01x01Checkins distro:379ab7a78459
Topic revision: r5 - 25 Jun 2015, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy