From 00bc6ac40530d13ec97ecd3bfe91ec68507c5ff2 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Thu, 7 Nov 2019 06:21:46 -0300 Subject: Mute L10n in some Basic code lines Change-Id: Idbaf2b44d4c7a6220aea66d75c00f36053a22f31 Reviewed-on: https://gerrit.libreoffice.org/82193 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/guide/basic_2_python.xhp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/text/sbasic') diff --git a/source/text/sbasic/guide/basic_2_python.xhp b/source/text/sbasic/guide/basic_2_python.xhp index 6badf718a7..4ea2d89f4e 100644 --- a/source/text/sbasic/guide/basic_2_python.xhp +++ b/source/text/sbasic/guide/basic_2_python.xhp @@ -60,10 +60,10 @@

Executing Python Scripts

Syntax

- workstation_name = script.invoke(Array(), Array(), Array()) + workstation_name = script.invoke(Array(), Array(), Array()) opSysName = script.invoke(Array(), in_outs, Array()) ' in_out is an Array - file_len = script.invoke(Array(systemFilePath), Array(), Array()) - normalizedPath = script.invoke(Array(systemFilePath), Array(), Array()) + file_len = script.invoke(Array(systemFilePath), Array(), Array()) + normalizedPath = script.invoke(Array(systemFilePath), Array(), Array())

Embedded Scripts Examples

Below ComputerName, and GetFilelen routines are calling their Python counterparts, using aforementioned GetPythonScript function. Exception handling is not detailed. @@ -102,7 +102,7 @@ Two different Python modules are called. They can either be embedded in the current document, either be stored on the file system. Argument type checking is skipped for clarity: - Platform.py + Platform.py # -*- coding: utf-8 -*- @@ -117,7 +117,7 @@ return platform.system() - Os/Path.py + Os/Path.py # -*- coding: utf-8 -*- @@ -146,7 +146,7 @@ End Property ' OSName Private Sub HelloWorld() - '''LibreOffice Python shared sample''' + '''%PRODUCTNAME Python shared sample''' scr = GetPythonScript("HelloWorld.py$HelloWorldPython", Script.ISSHARED) scr.invoke(Array(), Array(), Array(),) End Sub ' HelloWorld -- cgit