From 9e29d23b1fe6a2019c031b85966bb19b51206f0e Mon Sep 17 00:00:00 2001 From: dsiders Date: Mon, 11 Sep 2023 22:41:47 +0100 Subject: [PATCH] Docs: LazUtils/translations. Adds Darwin-specific content in the GetLanguageID topic for changes in 6ae07c24. (cherry picked from commit 441cf03564fd9d3ea7bcea622cd1d488799f28ac) --- docs/xml/lazutils/translations.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/xml/lazutils/translations.xml b/docs/xml/lazutils/translations.xml index 2319cc7071..e93a6107c4 100644 --- a/docs/xml/lazutils/translations.xml +++ b/docs/xml/lazutils/translations.xml @@ -163,6 +163,14 @@ Don't assume that language code is always two-letters (ISO 639-1), it can have a bigger length (e. g. three letters, like in ISO 639-2).
  • +Provides support for locale information on Darwin platforms. macOS does not +set language environment variables for GUI applications which are not started +from a terminal. This routine ensures that locale information is available for +both console applications and GUI applications, independent of environment +variables like LC_ALL / LC_MESSAGES / LANG, or Application bundle settings. The +locale information uses ISO formats like `ru_RU`, `zh_CN`, or `it_IT`. +
  • +
  • Returns the locale information in a record type. This allows additional fields in a backwards-compatible manner. Currently it contains language ID, language code and country code.