<textLang>

<textLang> (text language) in a manuscript description, describes the languages and writing systems identified within the manuscript being described. 10.6.6 Languages and Writing Systems
Module msdescription — 10 Manuscript Description
In addition to global attributes In addition to global attributes
mainLang (main language) supplies a code which identifies the chief language used in the manuscript.
Status Optional
Datatype

<rng:ref name="data.language"/>
data.language
Values a recognised language ‘tag’ generated according to BCP 47 which may additionally be documented by a language element in the header
otherLangs (other languages) one or more codes identifying any other languages used in the manuscript.
Status Optional
Datatype 0–∞ occurrences of 

<rng:ref name="data.language"/>
data.language
separated by whitespace
Values a list of codes, each of which is a recognised language ‘tag’ generated according to BCP 47 which may additionally be documented by a language element in the header
Used by
May contain
Declaration

<rng:element name="textLang">
 <rng:ref name="att.global.attributes"/>
 <rng:optional>
  <rng:attribute name="mainLang">
   <rng:ref name="data.language"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="otherLangs">
   <rng:list>
    <rng:zeroOrMore>
     <rng:ref name="data.language"/>
    </rng:zeroOrMore>
   </rng:list>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.phraseSeq"/>
</rng:element>
element textLang
{
   att.global.attributes,
   attribute mainLang { data.language }?,
   attribute otherLangs { list { data.language* } }?,
   macro.phraseSeq
}
Example
<textLang mainLang="en" otherLangs="la"> Predominantly in English with Latin
glosses</textLang>
Note
Note that this element should not be used to document the languages or writing systems used for the description itself: as for all other TEI elements, such information should be provided by means of the global xml:lang attribute attached to the element containing the description. The same values should be used to identify languages and writing systems in all cases, and the codes used may be documented further in the language element.