From 856c215166a7fa14cd5788842068862925d22a4b Mon Sep 17 00:00:00 2001 From: Rafael Lima Date: Thu, 25 Nov 2021 16:43:31 +0200 Subject: Document Locale / PythonVersion properties in SF_Platform service Change-Id: I141b31e9398e39d968197b11e4b8aa2ceda99480 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125827 Tested-by: Jenkins Reviewed-by: Alain Romedenne --- source/text/sbasic/shared/03/sf_platform.xhp | 33 ++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/text/sbasic/shared/03/sf_platform.xhp b/source/text/sbasic/shared/03/sf_platform.xhp index e0f8886c15..1b0409f0a8 100644 --- a/source/text/sbasic/shared/03/sf_platform.xhp +++ b/source/text/sbasic/shared/03/sf_platform.xhp @@ -61,6 +61,7 @@ Platform service;CPUCount Platform service;CurrentUser Platform service;Fonts + Platform service;Locale Platform service;Machine Platform service;OfficeVersion Platform service;OSName @@ -69,6 +70,7 @@ Platform service;OSVersion Platform service;Printers Platform service;Processor + Platform service;PythonVersion

Properties

@@ -154,7 +156,21 @@ Returns a zero-based array of strings containing the names of all available fonts. - + + + + + Locale + + + Yes + + + String + + + Returns the operating system locale as a string in the format language-COUNTRY (la-CO). + Examples: "en-US", "pt-BR", "fr-BE". @@ -257,7 +273,6 @@ The list of available printers as a zero-based array. The default printer is put in the first position of the list (index = 0). - @@ -275,6 +290,20 @@ This property may return the same value as the Machine property. + + + PythonVersion + + + Yes + + + String + + + Returns the version of the Python interpreter being used as a string in the format "Python major.minor.patchlevel" (ex: "Python 3.9.7"). + +
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": -- cgit