Difference between revisions of "Command/mainlanguage"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Add See Also)
Line 12: Line 12:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>nl fr en uk de es cz .. </td>
+
     <td>nl fr en uk de es cz ro.. </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 21: Line 21:
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
 
  
To get the auto-genereated language elements in German the paramater has to be <code>de</code>.
+
To get the auto-generated language elements in German the paramater has to be <code>de</code>.
  
 
The title "Inhalt" ist typeset above the table of contents ({{cmd|completecontent}}).
 
The title "Inhalt" ist typeset above the table of contents ({{cmd|completecontent}}).
Line 39: Line 38:
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
 
  
 
* {{cmd|language}} - Change the hyphenation language.
 
* {{cmd|language}} - Change the hyphenation language.
 +
* {{cmd|setuplanguage}} to alter some properties of the main language
 +
* {{cmd|setuplabeltext}} to alter some of a language's labels. (E.g. to change 'Section' to 'Lesson'.)
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 12:47, 21 May 2012

\mainlanguage

Syntax

\mainlanguage[...]
[...] nl fr en uk de es cz ro..

Description

Set the language of auto-generated language elements, like the title of the table of contents or the appendix.

Example

To get the auto-generated language elements in German the paramater has to be de.

The title "Inhalt" ist typeset above the table of contents (\completecontent).

\mainlanguage[de]

\starttext

\completecontent
\chapter{Chapter 1}

\stoptext

produces

See also

  • \language - Change the hyphenation language.
  • \setuplanguage to alter some properties of the main language
  • \setuplabeltext to alter some of a language's labels. (E.g. to change 'Section' to 'Lesson'.)

Help from ConTeXt-Mailinglist/Forum

All issues with: