[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'gettext' (#fcl)

GetLanguageIDs

Return the current language IDs

Declaration

Source position: gettext.pp line 73

procedure GetLanguageIDs(

  var Lang: String;

  var FallbackLang: String

);

Arguments

Lang

  

Primary language

FallbackLang

  

Secondary language

Description

GetLanguageIDsreturns the current language IDs (an ISO string) as returned by the operating system. On windows, the GetUserDefaultLCIDand GetLocaleInfocalls are used. On other operating systems, the LC_ALL, LC_MESSAGESor LANGenvironment variables are examined.