From 4cbfef4feb88cc1186760ca3dec7208e207c82e8 Mon Sep 17 00:00:00 2001 From: Rafael Lima Date: Fri, 11 Feb 2022 18:55:53 +0100 Subject: [PATCH] Document new locale-related properties in SF_Platform New properties are: FormatLocale, OfficeLocale and SystemLocale. Change-Id: I9203a41c891f3c7491d78b8d2eede369d77679e6 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/129831 Tested-by: Jenkins Reviewed-by: Alain Romedenne --- source/text/sbasic/shared/03/sf_platform.xhp | 48 +++++++++++++++++++- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/source/text/sbasic/shared/03/sf_platform.xhp b/source/text/sbasic/shared/03/sf_platform.xhp index 07a4c4c050..e6b94a9955 100644 --- a/source/text/sbasic/shared/03/sf_platform.xhp +++ b/source/text/sbasic/shared/03/sf_platform.xhp @@ -62,8 +62,10 @@ Platform service;CurrentUser Platform service;Extensions Platform service;Fonts + Platform service;FormatLocale Platform service;Locale Platform service;Machine + Platform service;OfficeLocale Platform service;OfficeVersion Platform service;OSName Platform service;OSPlatform @@ -72,6 +74,7 @@ Platform service;Printers Platform service;Processor Platform service;PythonVersion + Platform service;SystemLocale

Properties

@@ -173,6 +176,20 @@ Returns a zero-based array of strings containing the names of all available fonts. + + + FormatLocale + + + Yes + + + String + + + Returns the locale used for numbers and dates as a string in the format "la-CO" (language-COUNTRY). + + Locale @@ -184,8 +201,7 @@ String - Returns the operating system locale as a string in the format language-COUNTRY (la-CO). - Examples: "en-US", "pt-BR", "fr-BE". + Returns the locale of the operating system as a string in the format "la-CO" (language-COUNTRY). This is equivalent to the SystemLocale property. @@ -202,6 +218,20 @@ The machine type. Examples are: 'i386' or 'x86_64'. + + + OfficeLocale + + + Yes + + + String + + + Returns the locale of the user interface as a string in the format "la-CO" (language-COUNTRY). + + OfficeVersion @@ -319,6 +349,20 @@ Returns the version of the Python interpreter being used as a string in the format "Python major.minor.patchlevel" (ex: "Python 3.9.7"). + + + SystemLocale + + + Yes + + + String + + + Returns the locale of the operating system as a string in the format "la-CO" (language-COUNTRY). This is equivalent to the Locale property. + +
The following examples in Basic and Python illustrate how to use the Fonts property to write the names of all available fonts to the current Calc sheet starting at cell "A1":