summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2019-11-07 06:21:46 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-11-07 12:37:29 +0100
commit00bc6ac40530d13ec97ecd3bfe91ec68507c5ff2 (patch)
treee473917b55900e25360a4082b72125603d6dd3aa
parent7670e91fc5079b3bbadbe9c2ea7753974c4cb98d (diff)
Mute L10n in some Basic code lines
Change-Id: Idbaf2b44d4c7a6220aea66d75c00f36053a22f31 Reviewed-on: https://gerrit.libreoffice.org/82193 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/sbasic/guide/basic_2_python.xhp12
1 files changed, 6 insertions, 6 deletions
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 @@
<h2 id="N0463">Executing Python Scripts</h2>
<embed href="text/sbasic/python/python_2_basic.xhp#APIScriptingFramework" />
<h3 id="N0464">Syntax</h3>
- <paragraph role="paragraph" id="N0465"><literal>workstation_name = script.invoke(Array(), Array(), Array())</literal></paragraph>
+ <paragraph role="paragraph" localize="false" id="N0465"><literal>workstation_name = script.invoke(Array(), Array(), Array())</literal></paragraph>
<paragraph role="paragraph" id="N0466"><literal>opSysName = script.invoke(Array(), in_outs, Array())</literal> &apos; in_out is an Array</paragraph>
- <paragraph role="paragraph" id="N0467"><literal>file_len = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
- <paragraph role="paragraph" id="N0468"><literal>normalizedPath = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
+ <paragraph role="paragraph" localize="false" id="N0467"><literal>file_len = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
+ <paragraph role="paragraph" localize="false" id="N0468"><literal>normalizedPath = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
<h3 id="N0469">Embedded Scripts Examples</h3>
<paragraph role="paragraph" id="N0470">Below <literal>ComputerName</literal>, and <literal>GetFilelen</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.</paragraph>
<bascode>
@@ -102,7 +102,7 @@
</bascode>
<paragraph role="paragraph" id="N0503">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:</paragraph>
<list type="unordered">
- <listitem><paragraph role="paragraph" id="N0504">Platform.py</paragraph></listitem>
+ <listitem><paragraph localize="false" role="paragraph" id="N0504">Platform.py</paragraph></listitem>
</list>
<pycode>
<paragraph role="pycode" localize="false" id="N0505"># -*- coding: utf-8 -*-</paragraph>
@@ -117,7 +117,7 @@
<paragraph role="pycode" localize="false" id="N0514"> return platform.system()</paragraph>
</pycode>
<list type="unordered">
- <listitem><paragraph role="paragraph" id="N0515">Os/Path.py</paragraph></listitem>
+ <listitem><paragraph localize="false" role="paragraph" id="N0515">Os/Path.py</paragraph></listitem>
</list>
<pycode>
<paragraph role="pycode" localize="false" id="N0516"># -*- coding: utf-8 -*-</paragraph>
@@ -146,7 +146,7 @@
<paragraph role="bascode" localize="false" id="N0537">End Property &apos; OSName</paragraph>
<paragraph role="bascode" localize="false" id="N0538"> </paragraph>
<paragraph role="bascode" localize="false" id="N0539">Private Sub HelloWorld()</paragraph>
- <paragraph role="bascode" id="N0540"> &apos;&apos;&apos;LibreOffice Python shared sample&apos;&apos;&apos;</paragraph>
+ <paragraph role="bascode" id="N0540"> &apos;&apos;&apos;%PRODUCTNAME Python shared sample&apos;&apos;&apos;</paragraph>
<paragraph role="bascode" localize="false" id="N0541"> scr = GetPythonScript(&quot;HelloWorld.py$HelloWorldPython&quot;, Script.ISSHARED)</paragraph>
<paragraph role="bascode" localize="false" id="N0542"> scr.invoke(Array(), Array(), Array(),)</paragraph>
<paragraph role="bascode" localize="false" id="N0543">End Sub &apos; HelloWorld</paragraph>