System.SysUtils.PreferredUILanguages

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PreferredUILanguages: string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall PreferredUILanguages(void);

Properties

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

Description

PreferredUILanguages returns the preferred UI languages for user default UI languages at run time.

PreferredUILanguages uses the GetUILanguages routine with GetUserDefaultUILanguage Windows API and DefaultFallbackLanguages settings. If a language name is duplicated in both language lists, one of them will be eliminated without any action required. To read DefaultFallbackLanguages, use the GetDefaultFallbackLanguages routine. To set DefaultFallbackLanguages, use the SetDefaultFallbackLanguages routine.

See Also