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

LazGetShortLanguageID

Removes country information from a language ID.

Declaration

Source position: lazutf8.pas line 212

procedure LazGetShortLanguageID(

  var Lang: string

);

Arguments

Lang

  

Language ID examined in the routine.

Description

LazGetShortLanguageID strips country information from the language ID, making it simpler to use. Ideally the resulting ID should conform to ISO 639-1, or ISO 639-2 when the language code is not in ISO 639-1.