From b0aa7ba6ead7f39f46971b0e495cd94341c3b59e Mon Sep 17 00:00:00 2001 From: dsiders Date: Sun, 4 Jun 2023 00:04:40 +0100 Subject: [PATCH] Docs: LazUtils/lazutf8. Updates content in LazGetShortLanguageID for changes in d05dd86b. --- docs/xml/lazutils/lazutf8.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/xml/lazutils/lazutf8.xml b/docs/xml/lazutils/lazutf8.xml index 5e076afbed..064721aaeb 100644 --- a/docs/xml/lazutils/lazutf8.xml +++ b/docs/xml/lazutils/lazutf8.xml @@ -2862,15 +2862,24 @@ appends the country code to the value in Lang. -Removes country information from a language ID. + +Returns the current short language ID (without the country code). +

LazGetShortLanguageID strips country information from the language ID, making it simpler to use. Ideally the resulting ID should conform to ISO -639-1, or ISO 639-2 when the language code is not in ISO 639-1. +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.

- + + +
Language ID examined in the routine.