Command/translate

From ConTeXt wiki

\translate

Syntax (autogenerated)

\translate[...=...,...]
languagetext


Syntax

\translate[...,...=...,...]
name text


Description

Specify different texts for different languages as a key-value list, where the keys are language codes. The value corresponding to the current document language (set with \language or \mainlanguage) will be printed. If the current document language is not present among the key-value pairs, the last value in the list will be used.

Example

Writing business letters in different languages:

Depending on the language used you get the correct headers in the referencing part of the letter.

\startbuffer
\starttabulate[|*{4}{lw(.25\textwidth)|}]
    \NC \tfx \translate[nl=Uw brief van,en=Your letter dated]
    \NC \tfx \translate[nl=Uw kenmerk,en=Your reference]
    \NC \tfx \translate[nl=Ons kenmerk,en=Our reference]
    \NC \tfx \translate[nl=Datum,en=Date] \NC\NR
\stoptabulate
\stopbuffer

\language[en]
\getbuffer

\language[nl]
\getbuffer

\language[fr]
\getbuffer

See also

\language

Help from ConTeXt-Mailinglist/Forum

All issues with: