[T] l10n-match-language — Determine the language to translate to
<xsl:template name="l10n-match-language"> <xsl:param name="lang" /></xsl:template>
Given a language code lang
(usually obtained from
l10n-xml-language
), match it with a
language code in the localization data file. The new language code
may in fact be the same language code, or it could be the language
code with the country-code part stripped. If the localization data
file does not contain the language lang
, then some default language that
does exist is returned.