[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

LazGetLanguageIDs

Gets the Language ID and a fallback value for the platform.

Declaration

Source position: lazutf8.pas line 211

procedure LazGetLanguageIDs(

  var Lang: string;

  var FallbackLang: string

);

Arguments

Lang

  

Language code for the platform.

FallbackLang

  

Fallback language code for the platform.

Description

LazGetLanguageIDs is a procedure used to get the primary language ID and a fallback value. The values are returned in the Lang and FallbackLang variable parameters.

The implementation for the routine is platform or operating-system specific. For the Darwin platform, localizations in the Main bundle are checked for language and fallback values. For other platforms, the GetLanguageIDs routine in the GetText unit is called is called to get the default Language Code ID. The value in FallbackLang appends the country code to the value in Lang.