Difference between revisions of "Command/ language"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>language</i>")
 
 
Line 1: Line 1:
<?xml version='1.0'?>
 
<!-- this file was generated on 2020-08-20T09:05 -->
 
 
<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.
<!-- a short command summary goes here -->
 
The instances of  <tt>\<i>language</i></tt> are used for ...
 
 
</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 long description of the command goes here -->
+
 
</cd:description>
+
The language instances are produced by ConTeXt directly by converting the first argument of {{cmd|installlanguage}} into a control sequence.
<cd:examples>
+
 
<!--  command example(s)
+
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>).
<cd:example title="">
+
 
</cd:example>
+
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:examples>
+
<cd:notes></cd:notes>
<cd:notes>
 
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
 
<cd:note author="..." date="...">
 
</cd:note>
 
-->
 
</cd:notes>
 
 
<cd:seealso>
 
<cd:seealso>
<!-- one or more of these:
 
<cd:commandref name="xx"></cd:commandref>
 
<cd:wikipage  page="xx"></cd:wikipage>
 
<cd:url        url="https://xx"></cd:url>
 
<cd:manual    pdf="xx"></cd:manual>
 
<cd:source    file="xx"></cd:source>
 
-->
 
 
<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


\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

Help from ConTeXt-Mailinglist/Forum

All issues with: