diff --git a/docs/xml/lazutils/lazutf8.xml b/docs/xml/lazutils/lazutf8.xml index daddb24e1c..6416344e9e 100644 --- a/docs/xml/lazutils/lazutf8.xml +++ b/docs/xml/lazutils/lazutf8.xml @@ -2837,64 +2837,39 @@ Unfinished source char has occurred -Gets the Language ID and a fallback value for the platform. +Deprecated. Use the GetLanguageID function from the +translations.pas unit instead. - -

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

-

-LazGetLanguageIDs calls the GetLanguageIDs routine in the -GetText unit to get the default Language Code ID. If the return -value in Lang includes country or encoding information, it is removed. On the -Linux platform, the language identifier can be in the form 'ru_RU.utf8'. The -encoding suffix can prevent loading of translations files in the form -'project1.ru_RU.po'. To prevent this situation, the encoding suffix is removed -from the Lang argument value. It contains only the text prior to the initial -'.' character found in the language identifier. -

-

-LazGetLanguageIDs is called during execution of routines in the -lcltranslator.pas unit in the LCL, like -TranslateUnitResourceStringsEx and SetDefaultLang. -

-
+ + +Deprecated in LazUtils version 2.3.0. + -TranslateUnitResourceStringsEx -SetDefaultLang +
-Language code for the platform. + -Fallback language code for the platform. + -Returns the current short language ID (without the country code). +Deprecated. Use the GetLanguageID function from the +translations.pas unit instead. - -

-LazGetShortLanguageID strips country information from the language -ID, making it simpler to use. Ideally the resulting ID should conform to ISO -639-1 (2-digit code like 'ru' or 'en'), or ISO 639-2 (3-digit code like 'rus' -or 'eng') when the language code is not in ISO 639-1. -

-

-Calls LazGetLanguageIDs to lookup the language identifiers. It uses the -fallback language ID as the value for the Lang argument. -

-
+ + +Deprecated in LazUtils version 2.3.0. + - +
-Language ID examined in the routine. +