Determine the Current Language in a Template

HotDocs Version:HD6, HD2005, HD2006, HD2007, HD2008, HD2009
Word Processor:Microsoft Word, WordPerfect
Added to Knowledge Base:September 2004

You can use the LANGUAGE instruction in a Computation variable to find out which language is currently being used by the template. This is useful only in multiple-language templates. (For more information on multiple-language templates, see the HotDocs Help.)

When HotDocs processes the LANGUAGE instruction in the computation, it returns a code (text value) representing the current language. The table below lists the possible languages and their codes:

LanguageCode

Dutch

NLD

English

ENG

French

FRA

German

DEU

German (Swiss)

DES

German (Austrian)

DEA

Italian

(Requires HotDocs 6.2 or later)

ITA

Spanish

ESN

To determine the current language in a template

  1. Create a Computation variable, or open an existing Computation variable for editing. The Computation Editor appears.
  2. Place the cursor at the point in the computation script where you want to return the current language.
  3. Type LANGUAGE, then click OK until you return to the template.