mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:40:28 +02:00
Docs: LazUtils/lazutf8. Adds deprecation notices for changes in 65ed61c3ba
.
This commit is contained in:
parent
f2444c071d
commit
1cab990a9d
@ -2837,64 +2837,39 @@ Unfinished source char has occurred
|
|||||||
|
|
||||||
<element name="LazGetLanguageIDs">
|
<element name="LazGetLanguageIDs">
|
||||||
<short>
|
<short>
|
||||||
Gets the Language ID and a fallback value for the platform.
|
Deprecated. Use the GetLanguageID function from the
|
||||||
|
<file>translations.pas</file> unit instead.
|
||||||
</short>
|
</short>
|
||||||
<descr>
|
<descr/>
|
||||||
<p>
|
<version>
|
||||||
<var>LazGetLanguageIDs</var> is a procedure used to get the language
|
Deprecated in LazUtils version 2.3.0.
|
||||||
identifier and a fallback value. The values are returned in the
|
</version>
|
||||||
<var>Lang</var> and <var>FallbackLang</var> variable parameters.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
LazGetLanguageIDs calls the <var>GetLanguageIDs</var> routine in the
|
|
||||||
<file>GetText</file> 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.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
LazGetLanguageIDs is called during execution of routines in the
|
|
||||||
<file>lcltranslator.pas</file> unit in the LCL, like
|
|
||||||
TranslateUnitResourceStringsEx and SetDefaultLang.
|
|
||||||
</p>
|
|
||||||
</descr>
|
|
||||||
<seealso>
|
<seealso>
|
||||||
<link id="#lcl.lcltranslator.TranslateUnitResourceStringsEx">TranslateUnitResourceStringsEx</link>
|
<link id="#lazutils.translations.GetLanguageID"/>
|
||||||
<link id="#lcl.lcltranslator.SetDefaultLang">SetDefaultLang</link>
|
|
||||||
</seealso>
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
<element name="LazGetLanguageIDs.Lang">
|
<element name="LazGetLanguageIDs.Lang">
|
||||||
<short>Language code for the platform.</short>
|
<short/>
|
||||||
</element>
|
</element>
|
||||||
<element name="LazGetLanguageIDs.FallbackLang">
|
<element name="LazGetLanguageIDs.FallbackLang">
|
||||||
<short>Fallback language code for the platform.</short>
|
<short/>
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="LazGetShortLanguageID">
|
<element name="LazGetShortLanguageID">
|
||||||
<short>
|
<short>
|
||||||
Returns the current short language ID (without the country code).
|
Deprecated. Use the GetLanguageID function from the
|
||||||
|
<file>translations.pas</file> unit instead.
|
||||||
</short>
|
</short>
|
||||||
<descr>
|
<descr/>
|
||||||
<p>
|
<version>
|
||||||
<var>LazGetShortLanguageID</var> strips country information from the language
|
Deprecated in LazUtils version 2.3.0.
|
||||||
ID, making it simpler to use. Ideally the resulting ID should conform to ISO
|
</version>
|
||||||
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.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Calls LazGetLanguageIDs to lookup the language identifiers. It uses the
|
|
||||||
fallback language ID as the value for the Lang argument.
|
|
||||||
</p>
|
|
||||||
</descr>
|
|
||||||
<seealso>
|
<seealso>
|
||||||
<link id="LazGetLanguageIDs"/>
|
<link id="#lazutils.translations.GetLanguageID"/>
|
||||||
</seealso>
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
<element name="LazGetShortLanguageID.Lang">
|
<element name="LazGetShortLanguageID.Lang">
|
||||||
<short>Language ID examined in the routine.</short>
|
<short/>
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="FPUpChars">
|
<element name="FPUpChars">
|
||||||
|
Loading…
Reference in New Issue
Block a user