The Digital Calibration Certificate (DCC) supports multilingual data to meet the legal and practical requirements of countries with multiple official languages. This article outlines how multiple languages are handled within a DCC document, focusing on the elements dcc:mandatoryLangCodeISO639_1 and dcc:usedLangCodeISO639_1, and their relationship to multilingual textual content (see also dcc:coreData)
The DCC uses two XML elements to manage language declarations:
This element defines the mandatory language codes that must be considered official in cases where the interpretation of the document content is unclear or ambiguous. It specifies the languages that are deemed authoritative and are used for disambiguation.
<dcc:mandatoryLangCodeISO639_1>en</dcc:mandatoryLangCodeISO639_1>
<dcc:mandatoryLangCodeISO639_1>de</dcc:mandatoryLangCodeISO639_1>
This element specifies all the language codes that are used within a particular DCC document. It defines the set of official languages in which content is provided.
dcc:mandatoryLangCodeISO639_1.<dcc:usedLangCodeISO639_1>en</dcc:usedLangCodeISO639_1>
<dcc:usedLangCodeISO639_1>de</dcc:usedLangCodeISO639_1>
<dcc:usedLangCodeISO639_1>fr</dcc:usedLangCodeISO639_1>
dcc:textTypeMultilingual support extends to the DCC’s dcc:textType, which is used to represent textual content in the DCC. This type is defined to support either:
content elements, each with an explicit lang attribute.content element without an lang attribute, indicating the content is valid for all usedLangCodeISO639_1 languages.dcc:textTypeWhen dcc:usedLangCodeISO639_1 is declared:
The dcc:textType must contain:
content element without a language tag (implying that it applies to all used languages),content elements with lang attributes, one for each language specified in dcc:usedLangCodeISO639_1.If the latter structure is used (with language tags), every language listed in dcc:usedLangCodeISO639_1 must be represented.
<dcc:name> <!-- dcc:textType -->
<dcc:content lang="en">Force transducer</dcc:content>
<dcc:content lang="de">Kraftaufnehmer</dcc:content>
<dcc:content lang="fr">Transducteur de force</dcc:content>
</dcc:name>
<dcc:name> <!-- dcc:textType -->
<dcc:content>PTB</dcc:content>
</dcc:name>
In this case, the content is interpreted as being applicable in all languages defined in dcc:usedLangCodeISO639_1.
dcc:mandatoryLangCodeISO639_1 to define the legal fallback languages for interpretation.dcc:usedLangCodeISO639_1 includes at least the languages listed in dcc:mandatoryLangCodeISO639_1.dcc:textType, prefer language-specific content if accurate, culturally appropriate, or translated terms are necessary.