summaryrefslogtreecommitdiff
path: root/source/en-GB/helpcontent2/source/text/sbasic/guide.po
diff options
context:
space:
mode:
Diffstat (limited to 'source/en-GB/helpcontent2/source/text/sbasic/guide.po')
-rw-r--r--source/en-GB/helpcontent2/source/text/sbasic/guide.po477
1 files changed, 472 insertions, 5 deletions
diff --git a/source/en-GB/helpcontent2/source/text/sbasic/guide.po b/source/en-GB/helpcontent2/source/text/sbasic/guide.po
index 7b0074acd4a..439ad063589 100644
--- a/source/en-GB/helpcontent2/source/text/sbasic/guide.po
+++ b/source/en-GB/helpcontent2/source/text/sbasic/guide.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2019-08-21 21:36+0200\n"
+"POT-Creation-Date: 2019-11-08 19:34+0100\n"
"PO-Revision-Date: 2019-07-29 11:18+0000\n"
"Last-Translator: Stuart Swales <stuart.swales.croftnuisk@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -187,6 +187,474 @@ msgctxt ""
msgid "Compare Access2Base with Microsoft Access VBA"
msgstr "Compare Access2Base with Microsoft Access VBA"
+#. 4eXWf
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"tit\n"
+"help.text"
+msgid "Basic to Python"
+msgstr ""
+
+#. eoGBT
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0430\n"
+"help.text"
+msgid "<bookmark_value>Basic;Calling Python</bookmark_value> <bookmark_value>API;SimpleFileAccess</bookmark_value> <bookmark_value>API;PathSettings</bookmark_value> <bookmark_value>API;XScript</bookmark_value>"
+msgstr ""
+
+#. 8tB4f
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"hd_id811571848401485\n"
+"help.text"
+msgid "<variable id=\"basic2python\"><link href=\"text/sbasic/guide/basic_2_python.xhp\" name=\"Basic Programming Examples\">Calling Python Scripts from Basic</link></variable>"
+msgstr ""
+
+#. P7E4G
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0432\n"
+"help.text"
+msgid "Calling Python scripts from %PRODUCTNAME Basic macros is possible, and valuable features can be obtained such as:"
+msgstr ""
+
+#. ZKSB3
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0433\n"
+"help.text"
+msgid "<literal>ComputerName</literal> identification or <literal>OSName</literal> detection are possible,"
+msgstr ""
+
+#. AW7Lr
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0434\n"
+"help.text"
+msgid "Basic <literal>FileLen()</literal> function and <link href=\"https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1ucb_1_1SimpleFileAccess.html\" name=\"ucb.SimpleFileAccess\">com.sun.star.ucb.SimpleFileAccess.</link><literal>getSize()</literal> API function exhibit a 2 Gigabytes file size upper limit that Python helps to overcome,"
+msgstr ""
+
+#. At8D2
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0435\n"
+"help.text"
+msgid "<link href=\"https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1util_1_1PathSettings.html\" name=\"util.PathSettings\">com.sun.star.util.PathSettings</link> can be normalized,"
+msgstr ""
+
+#. CPd9K
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0436\n"
+"help.text"
+msgid "and many more."
+msgstr ""
+
+#. JvzSR
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0437\n"
+"help.text"
+msgid "A reasonable exposure to %PRODUCTNAME Basic and to <link href=\"https://api.libreoffice.org/\" name=\"Application Programming Interface\">Application Programming Interface (API)</link> features is recommended prior to perform inter-language calls from Basic to Python, to JavaScript or any other script engine."
+msgstr ""
+
+#. 4jY8s
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0438\n"
+"help.text"
+msgid "Retrieving Python Scripts"
+msgstr ""
+
+#. bBTqb
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0439\n"
+"help.text"
+msgid "Python scripts can be personal, shared, or embedded in documents. In order to execute them, %PRODUCTNAME Basic needs to be provided with Python script locations. Locating <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html\" name=\"script.provider.XScript\">com.sun.star.script.provider.XScript</link> interface compliant UNO objects allows the execution of Python scripts:"
+msgstr ""
+
+#. AZwVA
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0444\n"
+"help.text"
+msgid "''' Grab Python script object before execution"
+msgstr ""
+
+#. woGvx
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0445\n"
+"help.text"
+msgid "' Arguments:"
+msgstr ""
+
+#. nvnTr
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0446\n"
+"help.text"
+msgid "' macro : as \"library/module.py$macro\" or \"module.py$macro\""
+msgstr ""
+
+#. Au674
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0447\n"
+"help.text"
+msgid "' location: as \"document\", \"share\", \"user\" or ENUM(eration)"
+msgstr ""
+
+#. u5hgy
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0448\n"
+"help.text"
+msgid "' Result:"
+msgstr ""
+
+#. kskTS
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0449\n"
+"help.text"
+msgid "' located com.sun.star.script.provider.XScript UNO service'''"
+msgstr ""
+
+#. F9Hvi
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0452\n"
+"help.text"
+msgid "Dim sp As Object ' com.sun.star.script.provider.XScriptProvider compatible"
+msgstr ""
+
+#. osCpU
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0463\n"
+"help.text"
+msgid "Executing Python Scripts"
+msgstr ""
+
+#. pAfKa
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0464\n"
+"help.text"
+msgid "Syntax"
+msgstr ""
+
+#. gVpsb
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0466\n"
+"help.text"
+msgid "<literal>opSysName = script.invoke(Array(), in_outs, Array())</literal> ' in_out is an Array"
+msgstr ""
+
+#. jiU2w
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0469\n"
+"help.text"
+msgid "Embedded Scripts Examples"
+msgstr ""
+
+#. FadCx
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0470\n"
+"help.text"
+msgid "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."
+msgstr ""
+
+#. YbMbS
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0472\n"
+"help.text"
+msgid "Option Compatible ' Properties are supported"
+msgstr ""
+
+#. KVNHH
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0477\n"
+"help.text"
+msgid "'''Workstation name'''"
+msgstr ""
+
+#. FCaBa
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0483\n"
+"help.text"
+msgid "'''File size in bytes'''"
+msgstr ""
+
+#. D9Cbu
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0489\n"
+"help.text"
+msgid "ISEMBEDDED As String ' document script"
+msgstr ""
+
+#. bD77H
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0490\n"
+"help.text"
+msgid "ISPERSONAL As String ' user script"
+msgstr ""
+
+#. TEbDh
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0491\n"
+"help.text"
+msgid "ISSHARED As String ' %PRODUCTNAME macro"
+msgstr ""
+
+#. CHTxq
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0497\n"
+"help.text"
+msgid ".ISEMBEDDED = \"document\" ' document script"
+msgstr ""
+
+#. GGD4G
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0498\n"
+"help.text"
+msgid ".ISPERSONAL = \"user\" ' user scripts"
+msgstr ""
+
+#. hz9VR
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0499\n"
+"help.text"
+msgid ".ISSHARED = \"share\" ' %PRODUCTNAME macro"
+msgstr ""
+
+#. KfKCA
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0503\n"
+"help.text"
+msgid "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:"
+msgstr ""
+
+#. igPCi
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0526\n"
+"help.text"
+msgid "Personal or Shared Scripts Examples"
+msgstr ""
+
+#. EPVTC
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0527\n"
+"help.text"
+msgid "The calling mechanism for personal or shared Python scripts is identical to that of embedded scripts. Library names are mapped to folders. Computing %PRODUCTNAME user profile and shared modules system file paths can be performed as detailed in <link href=\"text/sbasic/python/python_session.xhp\">Getting session information</link>. Below <literal>OSName</literal>, <literal>HelloWorld</literal> and <literal>NormalizePath</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed."
+msgstr ""
+
+#. bwkSJ
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0529\n"
+"help.text"
+msgid "Option Compatible ' Properties are supported"
+msgstr ""
+
+#. 3W9xB
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0534\n"
+"help.text"
+msgid "'''Platform name as \"Linux\", \"Darwin\" or \"Windows\"'''"
+msgstr ""
+
+#. WAE7X
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0540\n"
+"help.text"
+msgid "'''%PRODUCTNAME Python shared sample'''"
+msgstr ""
+
+#. MYSSL
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0546\n"
+"help.text"
+msgid "'''Strip superfluous '\\..' in path'''"
+msgstr ""
+
+#. yTqsy
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0550\n"
+"help.text"
+msgid "Python standard modules"
+msgstr ""
+
+#. 3F9RQ
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0551\n"
+"help.text"
+msgid "%PRODUCTNAME embedded Python contains many standard libraries to benefit from. They bear a rich feature set, such as but not limited to:"
+msgstr ""
+
+#. aPbV7
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0552\n"
+"help.text"
+msgid "<emph>argparse</emph> Parser for command-line options, arguments and sub-commands"
+msgstr ""
+
+#. zBD3c
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0553\n"
+"help.text"
+msgid "<emph>cmath</emph> Mathematical functions for complex numbers"
+msgstr ""
+
+#. GDXVa
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0554\n"
+"help.text"
+msgid "<emph>csv</emph> CSV files reading and writing"
+msgstr ""
+
+#. FnCu8
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0555\n"
+"help.text"
+msgid "<emph>datetime</emph> Genuine date and time types"
+msgstr ""
+
+#. GQCwa
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0556\n"
+"help.text"
+msgid "<emph>json</emph> JSON encoder and decoder"
+msgstr ""
+
+#. JmFZK
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0557\n"
+"help.text"
+msgid "<emph>math</emph> Mathematical functions"
+msgstr ""
+
+#. PRGHi
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0558\n"
+"help.text"
+msgid "<emph>re</emph> Regular expression operations"
+msgstr ""
+
+#. XVbzW
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0559\n"
+"help.text"
+msgid "<emph>socket</emph> Low-level networking interface"
+msgstr ""
+
+#. VehtJ
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0560\n"
+"help.text"
+msgid "<emph>sys</emph> System-specific parameters and functions"
+msgstr ""
+
+#. RWzWY
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0561\n"
+"help.text"
+msgid "<emph>unittest</emph> and <emph>trace</emph> Unit testing framework and Track Python execution"
+msgstr ""
+
+#. JG3VZ
+#: basic_2_python.xhp
+msgctxt ""
+"basic_2_python.xhp\n"
+"N0562\n"
+"help.text"
+msgid "<emph>xml.etree.ElementTree</emph> ElementTree XML API"
+msgstr ""
+
#. CwBFN
#: basic_examples.xhp
msgctxt ""
@@ -295,14 +763,14 @@ msgctxt ""
msgid "Choose <emph>Tools - Macros - Organize Dialogs</emph>, and then click <emph>New</emph>."
msgstr "Choose <emph>Tools - Macros - Organise Dialogs</emph> and then click <emph>New</emph>."
-#. M3Ddd
+#. FkRCE
#: create_dialog.xhp
msgctxt ""
"create_dialog.xhp\n"
"par_id3150447\n"
"help.text"
-msgid "Enter a name for the dialog, and click OK. To rename the dialog later, right-click the name on the tab, and choose <emph>Rename</emph>."
-msgstr "Enter a name for the dialog and click OK. To rename the dialog later, right-click the name on the tab and choose <emph>Rename</emph>."
+msgid "Enter a name for the dialog and click <emph>OK</emph>. To rename the dialog later, right-click the name on the tab and choose <emph>Rename</emph>."
+msgstr ""
#. qFeYH
#: create_dialog.xhp
@@ -978,4 +1446,3 @@ msgctxt ""
"help.text"
msgid "If the user has an older version of %PRODUCTNAME that does not know localizable string resources for Basic dialogs, the user will see the default language strings."
msgstr "If the user has an older version of %PRODUCTNAME that does not know localisable string resources for Basic dialogs, the user will see the default language strings."
-