[Libreoffice-commits] help.git: source/text

Olivier Hallot (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 7 11:37:49 UTC 2019


 source/text/sbasic/guide/basic_2_python.xhp |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 00bc6ac40530d13ec97ecd3bfe91ec68507c5ff2
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Thu Nov 7 06:21:46 2019 -0300
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Thu Nov 7 12:37:29 2019 +0100

    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 at libreoffice.org>

diff --git a/source/text/sbasic/guide/basic_2_python.xhp b/source/text/sbasic/guide/basic_2_python.xhp
index 6badf718a..4ea2d89f4 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> ' 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 ' 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">    '''LibreOffice Python shared sample'''</paragraph>
+         <paragraph role="bascode" id="N0540">    '''%PRODUCTNAME Python shared sample'''</paragraph>
          <paragraph role="bascode" localize="false" id="N0541">    scr = GetPythonScript("HelloWorld.py$HelloWorldPython", 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 ' HelloWorld</paragraph>


More information about the Libreoffice-commits mailing list