IXX-Commands: IF .. THEN ... ELSE ... ENDIF 

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > IXX. - Choose one of two cases >

IXX-Commands: IF .. THEN ... ELSE ... ENDIF 

ILI. / NLI. -  If Language ID

Previous Top Next


MiniRobotLanguage (MRL)

 

ILI. Conditional Statement

If User or system LanguageID

 

 

Intention

 

This command can be used to verify the language settings of the current user or system. Usage is simple:

 

' Try if we are running on a windows with german settings:

ILI.u|german

 DBP.We're on a german system

EIF.

 

 

' Try if we are running on a german windows:

ILI.s|german

 DBP.We're on a german system

EIF.

 

What is the difference between "u" and "s" ?

 

If you take a german windows and you set the Regional Format to Switzerland like this:

 

graphic

 

 

then you will get the following results:

 

' It uses german unicode settings

GLI.s

DBP.$$000

' result is 1031

ILI.s|1031

 DBP.True

EIF.

 

' This shows you that its set to swiss

GLI.u

DBP.$$000

' result is 2055

ILI.s|2055

 DBP.True

EIF.

 

You can use any combination of Language-ID's and languages descriptors:

 

ILI.u|german,english,1055

 DBP.Is valid

EIF.

 

ILI.u|1031,1055,1045

 DBP.Is valid

EIF.

 

NLI.s|fra,dan

 DBP.Is valid

ELS.

 DBP.wrong language!

EIF.

 

 

Important:

To get the Language ID a a number, use the GLI. - command.

 

 

 

 

Syntax

 

 

ILI.[P1][|P2]

 

 

Parameter Explanation

 

 

P1 - (optioal)  defines the method which is used to get the Language ID.

 

 u - Returns the language identifier for the current user locale.That is the Format

         settings (for date, time, currency, etc.) of current user in Regional and

         Language Options in Control Panel.

         This is the default option is no letter is specified.

 

  s - Returns the Language Identifier for the system locale. In fact you get the is

         the "Language for Non-Unicode programs" of current user.

 

  c - an alternative system is used to get the Language ID for user. This supports more

          international properties providing a more culturally appropriate user experience.

 

  d - an alternative system is used to get the Language ID for the system (d),

           This supports more international properties providing a more culturally appropriate

            user experience.

 

         

P2 - (optioal) Language-descriptor or Language ID('s).

   

P2 can be any of these:

 

 

"core"

 the english-speaking "core" countries:

 USA, UK, Ireland, Australia, Canada, New Zealand

   with the following Language-ID's: 1033,2057,3081,4105,5129,6153

 

 

"eng","englisch","english"

 multiple english speaking countries, including these:

 USA, UK, Ireland, Australia, Canada, New Zealand, South Africa, Jamaica, Caribbean, Belize, Trinidad, Zimbabwe, Philippines.

 

 

"ger","german","deutsch","deu"

 all european german speaking countries:

Germany, Switzerland, Austria, Luxembourg, Liechtenstein

 Using these Language ID's: 1031,2055,3079,4103,5127"

 

 

"spa","span","spanish","spanisch"

 includes the 20 most important spanish speaking countries, worldwide.

 Using these Language-IS's:

20490,19466,18442,17418,16394,15370,14346,13322,12298,11274,

10250,9226.8202,7178,6154,5130,4106,3082,2058,1034

 

 

"fra","french","franz","französisch"

 Includes France, Belgium, Canada, Switzerland, Luxembourg,

 Monaco. Using these Language-ID's:

 1036,2060,3084,4108,5132,6156"

 

 

"danish","dan","denmark"

Denmark -  1030

 

 

"sweden","swedish","schweden","schwedisch"

Sweden, Finland - 1053,2077

 

 

"ita","italy","italienisch","italian"

Italy, Switzerland - 1040,2064

 

 

"dutch","nederland","niederländisch","netherlands"

Netherlands, Belgium - 1043,2067

 

 

"portuguese","por","port","portugal"

Portugal, Brazil - 1046,2070

 

 

"catalan"  - 1027

"basque"   - 1069

"galician" - 1110

 

or you can give  any Language-ID or List of Language ID's separated by comma.

 

 

 

For a list of most language ID's see here:

Language-ID's

 

 

 

 

Example

 

 

'-----------------------------

'

'-----------------------------

ILI.u|german,english,1055

 DBP.Is valid

EIF.

ENR.

 

 

 

Remarks

 

You can find a more complete list with Language-ID's here:

Language-ID's

 

Often used Language-ID's (WEB-Link)

 

 

 

Limitations:

 

-

 

 

See also:

 

    GLI. - Get Language ID

    GFI. - Get File Information

    GFD. - Get File Date

    GFV. - Get File Version