Determine the Current Language in a Template

From HotDocs Wiki

Jump to: navigation, search

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:

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.