Difference between revisions of "Command/ language"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \<i>language</i>") |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
<cd:commandgroup generated="yes" name="language" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | <cd:commandgroup generated="yes" name="language" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | ||
− | <cd:shortdesc> | + | <cd:shortdesc>The instances of <tt>\<i>language</i></tt> are used to switch the current language. |
− | |||
− | The instances of <tt>\<i>language</i></tt> are used | ||
</cd:shortdesc> | </cd:shortdesc> | ||
<cd:sequence> | <cd:sequence> | ||
Line 13: | Line 9: | ||
</cd:command> | </cd:command> | ||
</cd:variants> | </cd:variants> | ||
− | <cd:description> | + | <cd:description>The instances of <tt>\<i>language</i></tt> are used to switch the current language. |
− | < | + | |
− | </ | + | The language instances are produced by ConTeXt directly by converting the first argument of {{cmd|installlanguage}} into a control sequence. |
− | < | + | |
− | < | + | Those control sequences are often quite short (like e.g. <code>\en</code>) so they are likely to have become accidentally redefined, and for some arguments of {{cmd|installlanguage}} it is not possible to access the name directly anyway because there is a hyphen included (like e.g. <code>\installlanguage[en-us]</code>). |
− | < | + | |
− | </ | + | Because of those limitations, it is generally better to use the {{cmd|language}} command instead of directly accessing a language switching control sequence.</cd:description> |
− | + | <cd:examples></cd:examples> | |
− | </cd: | + | <cd:notes></cd:notes> |
− | <cd: | ||
− | |||
− | <cd: | ||
− | < | ||
− | |||
− | </cd:notes> | ||
<cd:seealso> | <cd:seealso> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<cd:commandref name="installlanguage" originator="system"></cd:commandref> | <cd:commandref name="installlanguage" originator="system"></cd:commandref> | ||
− | <cd:source file="lang-ini.mkiv" originator="system"></cd:source> | + | <cd:source file="lang-ini.mkiv" originator="system"></cd:source> |
− | <cd:wikipage originator="system" page="Category:Language"></cd:wikipage> | + | <cd:wikipage originator="system" page="Category:Language"></cd:wikipage> |
− | </cd:seealso> | + | <cd:source file="lang-def.mkiv">this file contains all the existing \installlanguage commands</cd:source></cd:seealso> |
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 15:46, 11 November 2021
Contents
\language
Summary
The instances of \language are used to switch the current language.
Description
The instances of \language are used to switch the current language.
The language instances are produced by ConTeXt directly by converting the first argument of \installlanguage into a control sequence.
Those control sequences are often quite short (like e.g. \en
) so they are likely to have become accidentally redefined, and for some arguments of \installlanguage it is not possible to access the name directly anyway because there is a hyphen included (like e.g. \installlanguage[en-us]
).
Because of those limitations, it is generally better to use the \language command instead of directly accessing a language switching control sequence.
Examples
Notes
See also
- \installlanguage
- lang-ini.mkiv
- lang-def.mkiv this file contains all the existing \installlanguage commands