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
Component:
Branches: Release01x01 trunk
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