System.GetUILanguages

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetUILanguages(const LANGID: WORD): string;

C++

extern DELPHI_PACKAGE UnicodeString __fastcall GetUILanguages(const Word LANGID);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

GetUILanguages returns a list of UI languages.

GetUILanguages retrieves the preferred user interface languages for the LANGID parameter. The return string is a language name list, separated by commas, like 'de-DE,en-US,en'. If the LANGID parameter is invalid, the return string will be empty. If the runtime environment is Vista or later, this function will use GetThreadPreferredUILanguages Windows API. If the runtime environment is XP or a previous version, this function emulates to return the same result.

See Also