<< Click to Display Table of Contents >> Navigation: 3. Script Language > OS and Software > OS and Software Operations |
MiniRobotLanguage (MRL)
GLI. Command
Get User or system LanguageID
Intention
This command will get the language settings of the current user or system. Usage is simple:
' Will place the current users language settings on the TOS
GLI.
DBP.$$000
May print something like this:
In the Editors debug window, if you are running on a german system.
To get deeper into international settings, you can supply parameters.
In fact, what is a german system?
You can supply a variable for the result:
GLI.u|$$RET
DBP.$$RET
ENR.
If you need a very detailed locale, prefer using options c or d.
Where is the difference between these settings?
If you take a german windows and you set the Regional Format to Switzerland like this:
then you will get the following results:
' It uses german unicode settings
GLI.s
DBP.$$000
' result is 1031
' This shows you that its set to swiss
GLI.u
DBP.$$000
' result is 2055
Here is a table with some language-id's.
1025 |
Arabic |
1041 |
Japanese |
1028 |
Chinese - Traditional |
1042 |
Korean |
1029 |
Czech |
1043 |
Dutch |
1030 |
Danish |
1044 |
Norwegian |
1031 |
German |
1045 |
Polish |
1032 |
Greek |
1046 |
Portuguese - Brazilian |
1033 |
English |
1049 |
Russian |
1034 |
Spanish |
1053 |
Swedish |
1035 |
Finnish |
1054 |
Thai |
1036 |
French |
1055 |
Turkish |
1037 |
Hebrew |
2052 |
Chinese - Simplified |
1038 |
Hungarian |
2070 |
Portuguese |
1040 |
Italian |
3076 |
Chinese - Hong Kong SAR |
You can find a more complete list with Language-ID's here:
Important:
To check if a system is of a specified language,
ILI.
is the command of your choice.
Syntax
GLI.[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) Variable for the result. If omitted, TOS is used.
Example
'-----------------------------
'
'-----------------------------
GLI.d|$$RET
DBP.$$RET
ENR.
Remarks
You can find a more complete list with Language-ID's here:
Limitations:
-
See also: