Lazarus

Programming => Operating Systems => Linux => Topic started by: vladimirr on February 28, 2019, 09:43:08 am

Title: System language
Post by: vladimirr on February 28, 2019, 09:43:08 am
Hi! How to get default system language?

Title: Re: System language
Post by: Thaddy on February 28, 2019, 10:05:30 am
formatsettings
Title: Re: System language
Post by: wp on February 28, 2019, 10:31:47 am
Call either GetLanguageIDs(var Lang, FallbackLang: string) (in unit GetText) or LazGetLanguageIDs(var Lang, FallbackLang: string) (in unit LazUTF8); the latter is an extension of the first one to work also in Darwin.
Title: Re: System language
Post by: vladimirr on March 05, 2019, 12:04:02 pm
Call either GetLanguageIDs(var Lang, FallbackLang: string) (in unit GetText) or LazGetLanguageIDs(var Lang, FallbackLang: string) (in unit LazUTF8); the latter is an extension of the first one to work also in Darwin.

Thank you! I've found one more - LazGetShortLanguageID() // returns "en", "ru"..