# Sys_GetLocaleLanguageID

> Returns the language ID used on the machine.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/system-functions/sys-getlocalelanguageid/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Returns the language ID used on the machine

### Syntax

Sys_GetLocaleLanguageID() As Boolean

### Return value

Result will be stored in gsLanguage

### Example

**VBScript**

```vb
If bStatus Then bStatus = Sys_GetLocaleLanguageID() 
If bStatus Then bStatus = Job_Writelog("Custom", "gsLanguage: " & gsLanguage, bStatus, True)
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Sys_BreakthruMsgbox](/capainstaller/vb-scripting-library/system-functions/sys-breakthrumsgbox/) [Job_SetLanguage](/capainstaller/vb-scripting-library/job-functions/job-setlanguage/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
