From 1dad391af70297dccdfb57e7bee46f401c975d48 Mon Sep 17 00:00:00 2001 From: dsiders Date: Sun, 17 Mar 2024 17:30:31 +0100 Subject: [PATCH] Docs: LazUtils/translations. Adds missing topics and content for: * GetLanguageIDFromLocaleName * UpdatePOFile --- docs/xml/lazutils/translations.xml | 76 ++++++++++++++++++++++++++++-- 1 file changed, 71 insertions(+), 5 deletions(-) diff --git a/docs/xml/lazutils/translations.xml b/docs/xml/lazutils/translations.xml index 605a79fdb2..0dbb74e711 100644 --- a/docs/xml/lazutils/translations.xml +++ b/docs/xml/lazutils/translations.xml @@ -1744,6 +1744,63 @@ system character set. + + +Gets the language identifier found in the specified locale identifier. + + +

+GetLanguageIDFromLocaleName is a TLanguageID function +used to get a language identifier for the values in LocaleName. +LocaleName contains a value which consists of the following: +

+ +[lang][_region][.codeset][.modifier] + +
+
[lang]
+
Language code (ISO 639-1 or 639-2).
+
[_region]
+
Region (ISO 3166 country code).
+
[.codeset]
+
Code set (optional/currently ignored).
+
[.modifier]
+
Modifier (optional/currently ignored),
+
+

+For example: +

+
    +
  • EN_US
  • +
  • en_GB.UTF-8
  • +
  • de_DE
  • +
  • es_MX.UTF-8
  • +
+

+Values are parsed and stored in the corresponding members in the TLanguageID +return value. +

+

+GetLanguageIDFromLocaleName is used in the implementation of the GetLanguageID +routine for platforms other than Windows. +

+
+ + + + +
+ + +TLanguageID with the values found in LocaleName. + + + + +String with the language, region, and optional code page for a locale. + + + Gets the unit name and language used in the specified Filename. @@ -1853,19 +1910,28 @@ system locale. - + +Updates a specified .PO template using the list of translations specified. + -??? +How is this used? See: tools/updatepofiles.pas. - + +Returns True if the .PO template was modified and stored in the +routine. + - + +Translations where the template is applied. + - + +.PO template processed in the routine. +