language_code

This function enables you to change the ITP output language. The ITP output language is used to execute certain functions that convert values depending on the language such as: date, date_in_words, number, number_in_words, amount_in_words. It also influences the format function. The default output language can be set with the ITP administration program. Whenever you start a model ITP sets the output language to the value of this setting.

language_code ( code_from_the_list )

The result of this function is of type TEXT, the ITP output language set.

This function has 1 parameter:

  1. code_from_the_list, type TEXT. One of the language codes from the list below.
Supported ITP output languages

The following language codes are supported:

Code

Language

Country

DAN

Danish

Denmark

DES

German

Switzerland

DEU

German

Germany

ENG

English

Great Britain

ENU

English

United States

ESP

Spanish

Spain

FRA

French

France

FRB

French

Belgium

FRS

French

Switzerland

HUN

Hungarian

Hungary

ITS

Italian

Italy

NLB

Dutch

Belgium

NLD

Dutch

The Netherlands

POL

Polish

Poland

PTG

Portuguese

Portugal

SVE

Swedish

Sweden

The function returns the language code of the new current language. If support for a specific language could not be found the current language is not changed. This could be verified by testing the function result.

Example

@( language_code( "ENG" ) )

Note that the construction @ ( ) around the function means that the result of the function is displayed in the text. This construction must be used in a text part of a model document. The switch from ITP mode to text mode in a model document is made with the # characters. An ITP model document starts in text model, the #BEGIN makes the switch to ITP mode.

Polish, and Hungarian contain non-latin-1 characters (unicode characters). Therefore, the functions uppercases, uppercase2 and lowercase2 may not always result in the desired output. If the language_code is set to HUN or POL we advise to use the function compare_characters to compare two TEXTs, the function fragment_of_characters to separate a fragment from a TEXT and the function number_of_characters to calculate the length of a string.

Note the following conditions