summaryrefslogtreecommitdiff
path: root/source/en-GB/helpcontent2/source/text/sbasic/python.po
blob: 11957388ff5ad9c5e28e159dd891e75c7268da8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
#. extracted from helpcontent2/source/text/sbasic/python
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-04-24 18:25+0200\n"
"PO-Revision-Date: 2019-04-20 09:35+0000\n"
"Last-Translator: Stuart Swales <stuart.swales.croftnuisk@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Accelerator-Marker: ~\n"
"X-Generator: LibreOffice\n"
"X-POOTLE-MTIME: 1555752929.000000\n"

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"tit\n"
"help.text"
msgid "Python Scripts"
msgstr "Python Scripts"

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"bm_id491543348147708\n"
"help.text"
msgid "<bookmark_value>macros;Python scripts</bookmark_value>        <bookmark_value>Python;macros</bookmark_value>        <bookmark_value>scripts;Python</bookmark_value>"
msgstr "<bookmark_value>macros;Python scripts</bookmark_value>        <bookmark_value>Python;macros</bookmark_value>        <bookmark_value>scripts;Python</bookmark_value>"

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"hd_id3154232\n"
"help.text"
msgid "<variable id=\"pythonscriptshelp\"><link href=\"text/sbasic/python/main0000.xhp\" name=\"mainpython\">%PRODUCTNAME Python Scripts Help</link></variable>"
msgstr "<variable id=\"pythonscriptshelp\"><link href=\"text/sbasic/python/main0000.xhp\" name=\"mainpython\">%PRODUCTNAME Python Scripts Help</link></variable>"

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"par_id3153894\n"
"help.text"
msgid "%PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit <link href=\"https://api.libreoffice.org/\" name=\"api.libreoffice.org\">https://api.libreoffice.org</link>"
msgstr "%PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit <link href=\"https://api.libreoffice.org/\" name=\"api.libreoffice.org\">https://api.libreoffice.org</link>"

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"par_id3147226\n"
"help.text"
msgid "This help section explains the most common Python script functions for %PRODUCTNAME. For more in-depth information please refer to the <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"wiki.documentfoundation.org PYTHON Guide\">Designing & Developing Python Applications</link> on the Wiki."
msgstr "This help section explains the most common Python script functions for %PRODUCTNAME. For more in-depth information please refer to the <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"wiki.documentfoundation.org PYTHON Guide\">Designing & Developing Python Applications</link> on the Wiki."

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"hd_id3146957\n"
"help.text"
msgid "Working with Python Scripts in %PRODUCTNAME"
msgstr "Working with Python Scripts in %PRODUCTNAME"

#: main0000.xhp
msgctxt ""
"main0000.xhp\n"
"N0102\n"
"help.text"
msgid "You can execute Python scripts choosing <menuitem>Tools - Macros - Run Macro</menuitem>. Editing scripts can be done with your preferred text editor. Python scripts are present in various locations detailed hereafter. You can refer to Programming examples for macros illustrating how to run the Python interactive console from %PRODUCTNAME."
msgstr "You can execute Python scripts choosing <menuitem>Tools - Macros - Run Macro</menuitem>. Editing scripts can be done with your preferred text editor. Python scripts are present in various locations detailed hereafter. You can refer to Programming examples for macros illustrating how to run the Python interactive console from %PRODUCTNAME."

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"tit\n"
"help.text"
msgid "Python: Opening a Dialog"
msgstr "Python: Opening a Dialog"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0334\n"
"help.text"
msgid "<bookmark_value>Python;dialogs</bookmark_value>        <bookmark_value>dialog box;Python</bookmark_value>        <bookmark_value>dialogs;Python</bookmark_value>"
msgstr "<bookmark_value>Python;dialogs</bookmark_value>        <bookmark_value>dialog box;Python</bookmark_value>        <bookmark_value>dialogs;Python</bookmark_value>"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0336\n"
"help.text"
msgid "<variable id=\"pythondialog\"><link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"command_name\">Opening a Dialog in Python</link></variable>"
msgstr "<variable id=\"pythondialog\"><link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"command_name\">Opening a Dialog in Python</link></variable>"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0337\n"
"help.text"
msgid "%PRODUCTNAME static dialogs are created with the <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"dialog editor\">Dialog editor</link> and are stored in varying places according to their personal (My Macros), shared (%PRODUCTNAME Macros) or document-embedded nature. In reverse, dynamic dialogs are constructed at runtime, from Basic or Python scripts, or using any other <link href=\"text/shared/guide/scripting.xhp\">%PRODUCTNAME supported language</link> for that matter. Opening static dialogs with Python is illustrated herewith. Exception handling and internationalization are omitted for clarity."
msgstr "%PRODUCTNAME static dialogs are created with the <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"dialog editor\">Dialog editor</link> and are stored in varying places according to their personal (My Macros), shared (%PRODUCTNAME Macros) or document-embedded nature. In reverse, dynamic dialogs are constructed at runtime, from Basic or Python scripts, or using any other <link href=\"text/shared/guide/scripting.xhp\">%PRODUCTNAME supported language</link> for that matter. Opening static dialogs with Python is illustrated herewith. Exception handling and internationalization are omitted for clarity."

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0338\n"
"help.text"
msgid "My Macros or %PRODUCTNAME Macros dialogs"
msgstr "My Macros or %PRODUCTNAME Macros dialogs"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0339\n"
"help.text"
msgid "The examples below open <literal>Access2Base Trace</literal> console or the imported <literal>TutorialsDialog</literal> dialog with <menuitem>Tools – Macros – Run Macro...</menuitem> menu:"
msgstr "The examples below open <literal>Access2Base Trace</literal> console or the imported <literal>TutorialsDialog</literal> dialog with <menuitem>Tools – Macros – Run Macro...</menuitem> menu:"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0364\n"
"help.text"
msgid "Document embedded dialogs"
msgstr "Document embedded dialogs"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0365\n"
"help.text"
msgid "The example below opens a newly edited <literal>Dialog1</literal> dialog from a document with <menuitem>Tools – Macros – Run Macro...</menuitem> menu:"
msgstr "The example below opens a newly edited <literal>Dialog1</literal> dialog from a document with <menuitem>Tools – Macros – Run Macro...</menuitem> menu:"

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0370\n"
"help.text"
msgid "\"\"\" Display a doc-based dialog \"\"\""
msgstr "\"\"\" Display a doc-based dialog \"\"\""

#: python_dialogs.xhp
msgctxt ""
"python_dialogs.xhp\n"
"N0381\n"
"help.text"
msgid "Refer to <literal>msgbox.py</literal> in <literal>{installation}/program/</literal> directory for Python dynamic dialog examples."
msgstr "Refer to <literal>msgbox.py</literal> in <literal>{installation}/program/</literal> directory for Python dynamic dialog examples."

#: python_examples.xhp
msgctxt ""
"python_examples.xhp\n"
"tit\n"
"help.text"
msgid "Python examples"
msgstr "Python examples"

#: python_examples.xhp
msgctxt ""
"python_examples.xhp\n"
"bm_id20191031405\n"
"help.text"
msgid "<bookmark_value>Python;examples</bookmark_value>            <bookmark_value>Python;shell</bookmark_value>            <bookmark_value>Python;platform</bookmark_value>            <bookmark_value>Python;session</bookmark_value>            <bookmark_value>Python;screen input/output</bookmark_value>"
msgstr "<bookmark_value>Python;examples</bookmark_value>            <bookmark_value>Python;shell</bookmark_value>            <bookmark_value>Python;platform</bookmark_value>            <bookmark_value>Python;session</bookmark_value>            <bookmark_value>Python;screen input/output</bookmark_value>"

#: python_examples.xhp
msgctxt ""
"python_examples.xhp\n"
"hd_id201901031407\n"
"help.text"
msgid "<variable id=\"pythonexamples2\"><link href=\"text/sbasic/python/python_examples.xhp\" name=\"python examples\">Python programming examples</link></variable>"
msgstr "<variable id=\"pythonexamples2\"><link href=\"text/sbasic/python/python_examples.xhp\" name=\"python examples\">Python programming examples</link></variable>"

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"tit\n"
"help.text"
msgid "IDE for Python"
msgstr "IDE for Python"

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"bm_id761543349138561\n"
"help.text"
msgid "<bookmark_value>APSO</bookmark_value>            <bookmark_value>Alternative Python Scripts Organizer</bookmark_value>            <bookmark_value>python;IDE - integrated development environment</bookmark_value>            <bookmark_value>python;editor</bookmark_value>"
msgstr "<bookmark_value>APSO</bookmark_value>            <bookmark_value>Alternative Python Scripts Organiser</bookmark_value>            <bookmark_value>python;IDE - integrated development environment</bookmark_value>            <bookmark_value>python;editor</bookmark_value>"

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"hd_id151543348965464\n"
"help.text"
msgid "<variable id=\"pythonideh1\"><link href=\"text/sbasic/python/python_ide.xhp\" name=\"Python IDE Setup\">Setting up an Integrated Development Environment (IDE) for Python</link></variable>"
msgstr "<variable id=\"pythonideh1\"><link href=\"text/sbasic/python/python_ide.xhp\" name=\"Python IDE Setup\">Setting up an Integrated Development Environment (IDE) for Python</link></variable>"

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"par_id541543348965465\n"
"help.text"
msgid "Writing Python macros requires extra configuration steps to set an IDE of choice."
msgstr "Writing Python macros requires extra configuration steps to set an IDE of choice."

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"N0106\n"
"help.text"
msgid "Unlike Basic language macros development in %PRODUCTNAME, developing Python scripts for %PRODUCTNAME requires to configure an external Integrated Development Environment (IDE). Multiple IDEs are available that range from beginners to advanced Python coders. While using a Python IDE programmers benefit from numerous features such as syntax highlighting, code folding, class browsing, code completion, coding standard enforcement, test driven development, debugging, version control and many more. You can refer to <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"Designing & Developing Python Applications\">Designing & Developing Python Applications</link> on the Wiki for more in-depth information about the setup of a bridge between your IDE and a running instance %PRODUCTNAME."
msgstr "Unlike Basic language macros development in %PRODUCTNAME, developing Python scripts for %PRODUCTNAME requires to configure an external Integrated Development Environment (IDE). Multiple IDEs are available that range from beginners to advanced Python coders. While using a Python IDE programmers benefit from numerous features such as syntax highlighting, code folding, class browsing, code completion, coding standard enforcement, test driven development, debugging, version control and many more. You can refer to <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"Designing & Developing Python Applications\">Designing & Developing Python Applications</link> on the Wiki for more in-depth information about the setup of a bridge between your IDE and a running instance %PRODUCTNAME."

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"hd_id761544698669786\n"
"help.text"
msgid "The APSO Extension"
msgstr "The APSO Extension"

#: python_ide.xhp
msgctxt ""
"python_ide.xhp\n"
"N0104\n"
"help.text"
msgid "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"Alternative Python Script Organizer (APSO)\">Alternative Python Script Organizer (APSO)</link> extension eases the edition of Python scripts, in particular when embedded in a document. Using APSO you can configure your preferred source code editor, start the integrated Python shell and debug Python scripts. Extensions exist that help inspect arbitrary UNO objects, refer to <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"eDesigning & Developing Python Applications\">Designing & Developing Python Applications</link> for additional details on such extensions."
msgstr "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"Alternative Python Script Organizer (APSO)\">Alternative Python Script Organizer (APSO)</link> extension eases the edition of Python scripts, in particular when embedded in a document. Using APSO you can configure your preferred source code editor, start the integrated Python shell and debug Python scripts. Extensions exist that help inspect arbitrary UNO objects, refer to <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"eDesigning & Developing Python Applications\">Designing & Developing Python Applications</link> for additional details on such extensions."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"tit\n"
"help.text"
msgid "Python : Importing Modules"
msgstr "Python : Importing Modules"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0461\n"
"help.text"
msgid "<bookmark_value>Python;import</bookmark_value>        <bookmark_value>Python;Modules</bookmark_value>        <bookmark_value>Python;pythonpath</bookmark_value>        <bookmark_value>PythonLibraries</bookmark_value>"
msgstr "<bookmark_value>Python;import</bookmark_value>        <bookmark_value>Python;Modules</bookmark_value>        <bookmark_value>Python;pythonpath</bookmark_value>        <bookmark_value>PythonLibraries</bookmark_value>"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0462\n"
"help.text"
msgid "<variable id=\"pythonimporth1\"><link href=\"text/sbasic/python/python_import.xhp\" name=\"python imports\">Importing Python Modules</link></variable>"
msgstr "<variable id=\"pythonimporth1\"><link href=\"text/sbasic/python/python_import.xhp\" name=\"python imports\">Importing Python Modules</link></variable>"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0463\n"
"help.text"
msgid "%PRODUCTNAME Python scripts come in three distinct flavors, they can be personal, shared or embedded in documents. They are stored in varying places described in <link href=\"text/sbasic/python/python_locations.xhp\">Python Scripts Organization and Location</link>. In order to import Python modules, their locations must be known from Python at run time."
msgstr ""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0464\n"
"help.text"
msgid "This mechanism is illustrated for file system based modules and document based modules. Exception handling is omitted for clarity. The terms library or directory, scripts or modules are used interchangeably. A Python macro refers to a function inside a module."
msgstr "This mechanism is illustrated for file system based modules and document based modules. Exception handling is omitted for clarity. The terms library or directory, scripts or modules are used interchangeably. A Python macro refers to a function inside a module."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0465\n"
"help.text"
msgid "Note that <literal><User Profile>/Scripts/python/pythonpath</literal> local directory is always explored when running a Python macro from <literal><User Profile>/Scripts/python</literal>."
msgstr "Note that <literal><User Profile>/Scripts/python/pythonpath</literal> local directory is always explored when running a Python macro from <literal><User Profile>/Scripts/python</literal>."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0466\n"
"help.text"
msgid "File System module import"
msgstr "File System module import"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0467\n"
"help.text"
msgid "User or Shared Modules"
msgstr "User or Shared Modules"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0468\n"
"help.text"
msgid "Personal & shared Python scripts can be imported once their directories are included in Python run time path. Refer to <link href=\"text/sbasic/python/python_session.xhp\">Getting session information</link> page for more details regarding omitted Session Class."
msgstr "Personal & shared Python scripts can be imported once their directories are included in Python run-time path. Refer to <link href=\"text/sbasic/python/python_session.xhp\">Getting session information</link> page for more details regarding omitted Session Class."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0473\n"
"help.text"
msgid "user_lib = Session().UserPythonScripts  # User scripts location"
msgstr "user_lib = Session().UserPythonScripts  # User scripts location"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0475\n"
"help.text"
msgid "sys.path.insert(0, user_lib)  # Add to search path"
msgstr "sys.path.insert(0, user_lib)  # Add to search path"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0476\n"
"help.text"
msgid "import screen_io as ui  # 'screen_io.py' module resides in user_lib directory"
msgstr "import screen_io as ui  # 'screen_io.py' module resides in user_lib directory"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0477\n"
"help.text"
msgid "# Your code follows here"
msgstr "# Your code follows here"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0478\n"
"help.text"
msgid "This Python example exposes a local XSCRIPTCONTEXT variable to an imported module:"
msgstr "This Python example exposes a local XSCRIPTCONTEXT variable to an imported module:"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0483\n"
"help.text"
msgid "share_lib = Session.SharedPythonScripts()  # Shared scripts location"
msgstr "share_lib = Session.SharedPythonScripts()  # Shared scripts location"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0485\n"
"help.text"
msgid "sys.path.insert(0, share_lib)  # Add to search path"
msgstr "sys.path.insert(0, share_lib)  # Add to search path"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0486\n"
"help.text"
msgid "from IDE_utils import ScriptContext  # 'IDE_utils.py' sits with shared Python scripts."
msgstr "from IDE_utils import ScriptContext  # 'IDE_utils.py' sits with shared Python scripts."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0488\n"
"help.text"
msgid "# Your code follows here"
msgstr "# Your code follows here"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0489\n"
"help.text"
msgid "Installation Modules for Applications"
msgstr "Installation Modules for Applications"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0490\n"
"help.text"
msgid "Unlike personal and shared scripts, %PRODUCTNAME installation scripts can be imported any time. Next to <literal>uno</literal> & <literal>unohelper</literal> %PRODUCTNAME Python modules, other scripts present in <literal><installation_path>/program</literal> directory can be imported directly, such as the <literal>msgbox</literal> module."
msgstr "Unlike personal and shared scripts, %PRODUCTNAME installation scripts can be imported any time. Next to <literal>uno</literal> & <literal>unohelper</literal> %PRODUCTNAME Python modules, other scripts present in <literal><installation_path>/program</literal> directory can be imported directly, such as the <literal>msgbox</literal> module."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0491\n"
"help.text"
msgid "With Python shell:"
msgstr "With Python shell:"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0534\n"
"help.text"
msgid "Document Module Import"
msgstr "Document Module Import"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0535\n"
"help.text"
msgid "Importing a Python document embedded module is illustrated below. Error handling is not detailed. Python run time path is updated when document has been opened and before closure. Refer to <link href=\"text/sbasic/shared/01040000.xhp\">Event-Driven Macros</link> to learn how to associate Python macros to document events."
msgstr "Importing a Python document embedded module is illustrated below. Error handling is not detailed. Python run-time path is updated when document has been opened and before closure. Refer to <link href=\"text/sbasic/shared/01040000.xhp\">Event-Driven Macros</link> to learn how to associate Python macros to document events."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0541\n"
"help.text"
msgid "\"\"\" Prepare Python modules import when doc. loaded \"\"\""
msgstr "\"\"\" Prepare Python modules import when doc. loaded \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0542\n"
"help.text"
msgid "PythonLibraries.loadLibrary('lib/subdir')  # Add directory to search path"
msgstr "PythonLibraries.loadLibrary('lib/subdir')  # Add directory to search path"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0543\n"
"help.text"
msgid "PythonLibraries.loadLibrary('my_gui', 'screen_io')  # Add dir. & import screen_io"
msgstr "PythonLibraries.loadLibrary('my_gui', 'screen_io')  # Add dir. & import screen_io"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0546\n"
"help.text"
msgid "\"\"\" Cleanup PYTHON_PATH when doc. Gets closed \"\"\""
msgstr "\"\"\" Cleanup PYTHON_PATH when doc. Gets closed \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0547\n"
"help.text"
msgid "PythonLibraries.unloadLibrary('my_gui')  # Python runtime path cleanup"
msgstr "PythonLibraries.unloadLibrary('my_gui')  # Python runtime path cleanup"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0548\n"
"help.text"
msgid "# Note: imported modules remain loaded in this example.."
msgstr "# Note: imported modules remain loaded in this example.."

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0553\n"
"help.text"
msgid "\"\"\" Python library loader and module importer"
msgstr "\"\"\" Python library loader and module importer"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0555\n"
"help.text"
msgid "adapted from 'Bibliothèque de fonctions' by Hubert Lambert"
msgstr "adapted from 'Bibliothèque de fonctions' by Hubert Lambert"

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0556\n"
"help.text"
msgid "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213 \"\"\""
msgstr "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213 \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0558\n"
"help.text"
msgid "\"\"\" Check run time module list \"\"\""
msgstr "\"\"\" Check run time module list \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0561\n"
"help.text"
msgid "\"\"\" Check PYTHON_PATH content \"\"\""
msgstr "\"\"\" Check PYTHON_PATH content \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0564\n"
"help.text"
msgid "\"\"\" add directory to PYTHON_PATH, import named module \"\"\""
msgstr "\"\"\" add directory to PYTHON_PATH, import named module \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0573\n"
"help.text"
msgid "\"\"\" remove directory from PYTHON_PATH \"\"\""
msgstr "\"\"\" remove directory from PYTHON_PATH \"\"\""

#: python_import.xhp
msgctxt ""
"python_import.xhp\n"
"N0580\n"
"help.text"
msgid "Refer to <link href=\"text/sbasic/python/python_listener.xhp\">Creating a Python Listener</link> for examples of event-driven macros."
msgstr "Refer to <link href=\"text/sbasic/python/python_listener.xhp\">Creating a Python Listener</link> for examples of event-driven macros."

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"tit\n"
"help.text"
msgid "Python Listeners : Creating Event Listeners"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0385\n"
"help.text"
msgid "<bookmark_value>Python;Event Listener</bookmark_value>         <bookmark_value>Python;createUnoListener</bookmark_value>         <bookmark_value>Basic;Event Listener</bookmark_value>"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0386\n"
"help.text"
msgid "<variable id=\"pythonlistener\"><link href=\"text/sbasic/python/python_listener.xhp\" name=\"python listeners\">Creating Event Listeners</link></variable>"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0387\n"
"help.text"
msgid "Events raised by dialogs, documents, forms or graphical controls can be linked to macros, which is referred to as event-driven programming. The most common method to relate events to macros are the <literal>Events</literal> tab in <menuitem>Tools – Customize</menuitem> menu and the <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"Create dialog\">Dialog Editor</link> Control properties pane from <menuitem>Tools - Macros – Organise Dialogs...</menuitem> menu."
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0388\n"
"help.text"
msgid "Graphical artifacts, keyboard inputs, mouse moves and other man/machine interactions can be controlled using UNO listeners that watch for the user’s behaviour. Listeners are dynamic program code alternatives to macro assignments. One may create as many UNO listeners as events to watch for. A single listener can also handle multiple user interface controls."
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0389\n"
"help.text"
msgid "Creating an event listener"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0390\n"
"help.text"
msgid "Listeners get attached to controls held in dialogs, as well as to document or form events. Listeners are also used when creating runtime dialogs or when adding controls to a dialog on the fly."
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0391\n"
"help.text"
msgid "This example creates a listener for <literal>Button1</literal> control of <literal>Dialog1</literal> dialog in <literal>Standard</literal> library."
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0392\n"
"help.text"
msgid "With Python"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0405\n"
"help.text"
msgid "_MY_LABEL = 'Python listens..'"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0417\n"
"help.text"
msgid "MsgBox(\"The user acknowledged the dialog.\")"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0419\n"
"help.text"
msgid "MsgBox(\"The user canceled the dialog.\")"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0424\n"
"help.text"
msgid "\"\"\" Create a Dialog from its location \"\"\""
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0437\n"
"help.text"
msgid "\"\"\" Listen to & count button clicks \"\"\""
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0448\n"
"help.text"
msgid "def disposing(self, evt: EventObject):  # mandatory routine"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0457\n"
"help.text"
msgid "<emph>msgbox.py</emph> in <emph>{installation}/program/</emph> directory has some examples of button listeners."
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0458\n"
"help.text"
msgid "With %PRODUCTNAME Basic"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0459d\n"
"help.text"
msgid "Const MY_LABEL = \"Basic listens..\""
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0478\n"
"help.text"
msgid "Case rc.OK : MsgBox \"The user acknowledged the dialog.\",, \"Basic\""
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0479\n"
"help.text"
msgid "Case rc.CANCEL : MsgBox \"The user canceled the dialog.\",, \"Basic\""
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0486\n"
"help.text"
msgid "''' Listen to & count button clicks '''"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0496\n"
"help.text"
msgid "' your code goes here"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0498\n"
"help.text"
msgid "Other Event Listeners"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0499\n"
"help.text"
msgid "Listeners are usually coded along with <link href=\"text/sbasic/python/python_dialog.xhp\" name=\"dialog opening\">dialog opening</link>. Numerous listener approaches are possible such as event handlers for dialogs or event monitors for documents or forms."
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0505\n"
"help.text"
msgid "<link href=\"text/sbasic/shared/03132000.xhp\" name=\"CreateUnoListener Function\">CreateUnoListener Function</link>"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0506\n"
"help.text"
msgid "<link href=\"text/swriter/01/05060700.xhp\" name=\"Events mapping to objects\">Events mapping to objects</link>"
msgstr ""

#: python_listener.xhp
msgctxt ""
"python_listener.xhp\n"
"N0509\n"
"help.text"
msgid "See also <link href=\"text/sbasic/shared/01040000.xhp\" name=\"Document events\">Document events</link>, <link href=\"text/shared/02/01170202.xhp\" name=\"Form events\">Form events</link>."
msgstr ""

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"tit\n"
"help.text"
msgid "Python Scripts Organization"
msgstr "Python Scripts Organisation"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id391543358231021\n"
"help.text"
msgid "<variable id=\"pythonlocations1\"><link href=\"text/sbasic/python/python_locations.xhp\" name=\"command_name\">Python Scripts Organization and Location</link></variable>"
msgstr "<variable id=\"pythonlocations1\"><link href=\"text/sbasic/python/python_locations.xhp\" name=\"command_name\">Python Scripts Organisation and Location</link></variable>"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id771543358231022\n"
"help.text"
msgid "The Python script files are stored in the filesystem, in folders controlled by %PRODUCTNAME. The macros can be started at installation, user or file level."
msgstr "The Python script files are stored in the filesystem, in folders controlled by %PRODUCTNAME. The macros can be started at installation, user or file level."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id911544049584458\n"
"help.text"
msgid "Python Script Locations"
msgstr "Python Script Locations"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id121551089455774\n"
"help.text"
msgid "Refer to <link href=\"text/sbasic/python/python_session.xhp\" name=\"Getting Session Information\">Getting Session Information</link> in order to get programmatic access to Python script locations."
msgstr "Refer to <link href=\"text/sbasic/python/python_session.xhp\" name=\"Getting Session Information\">Getting Session Information</link> in order to get programmatic access to Python script locations."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id591544049572647\n"
"help.text"
msgid "%PRODUCTNAME Macros container"
msgstr "%PRODUCTNAME Macros container"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id261544049064421\n"
"help.text"
msgid "Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here."
msgstr "Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id861544210028670\n"
"help.text"
msgid "The %PRODUCTNAME  Macros container location in the file system depends on the operating system:"
msgstr "The %PRODUCTNAME  Macros container location in the file system depends on the operating system:"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id191544210072242\n"
"help.text"
msgid "For <emph>Windows</emph>: <literal>{Installation}\\share\\Scripts\\python</literal>."
msgstr "For <emph>Windows</emph>: <literal>{Installation}\\share\\Scripts\\python</literal>."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id61544210078654\n"
"help.text"
msgid "For <emph>Linux</emph> and <emph>macOS</emph>: <literal>{Installation}/share/Scripts/python</literal>."
msgstr "For <emph>Linux</emph> and <emph>macOS</emph>: <literal>{Installation}/share/Scripts/python</literal>."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id861544049692222\n"
"help.text"
msgid "My Macros"
msgstr "My Macros"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id981544049055996\n"
"help.text"
msgid "This container is accessible only by the %PRODUCTNAME user. Any open document can access macros stored the container. Macros in this location are stored in the %PRODUCTNAME user profile."
msgstr "This container is accessible only by the %PRODUCTNAME user. Any open document can access macros stored the container. Macros in this location are stored in the %PRODUCTNAME user profile."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id341544210187846\n"
"help.text"
msgid "The My Macros container location is in the user space and depends on the operating system:"
msgstr "The My Macros container location is in the user space and depends on the operating system:"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id381544210213190\n"
"help.text"
msgid "For <emph>Windows</emph>,<br/><literal>%APPDATA%\\LibreOffice\\4\\user\\Scripts\\python</literal>."
msgstr "For <emph>Windows</emph>,<br/><literal>%APPDATA%\\LibreOffice\\4\\user\\Scripts\\python</literal>."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id691544210219850\n"
"help.text"
msgid "For <emph>Linux</emph> and <emph>macOS</emph>,<br/><literal>$HOME/.config/libreoffice/4/user/Scripts/python</literal>."
msgstr "For <emph>Linux</emph> and <emph>macOS</emph>,<br/><literal>$HOME/.config/libreoffice/4/user/Scripts/python</literal>."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id101544049707712\n"
"help.text"
msgid "Document macros"
msgstr "Document macros"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id31544049046497\n"
"help.text"
msgid "Document macros are embedded in the document and are accessible only when the document is open."
msgstr "Document macros are embedded in the document and are accessible only when the document is open."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id171544049715310\n"
"help.text"
msgid "Libraries, Modules and Macros"
msgstr "Libraries, Modules and Macros"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id181544209916707\n"
"help.text"
msgid "Like BASIC macros, Python macros can be organized in libraries, modules and macros."
msgstr "Like BASIC macros, Python macros can be organised in libraries, modules and macros."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id21544209865082\n"
"help.text"
msgid "Creating a Python Library"
msgstr "Creating a Python Library"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id191544209928221\n"
"help.text"
msgid "Libraries are folders in the container tree. To create a library, add a folder in the target container. The library name is the folder name."
msgstr "Libraries are folders in the container tree. To create a library, add a folder in the target container. The library name is the folder name."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id31544209872869\n"
"help.text"
msgid "Creating a Python Module."
msgstr "Creating a Python Module."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id161544209936743\n"
"help.text"
msgid "A module is a python file in the library or the container. Create a module adding a file in the container."
msgstr "A module is a python file in the library or the container. Create a module adding a file in the container."

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"hd_id151544209895574\n"
"help.text"
msgid "Python macros"
msgstr "Python macros"

#: python_locations.xhp
msgctxt ""
"python_locations.xhp\n"
"par_id61544209944591\n"
"help.text"
msgid "A macro is a python object in the module."
msgstr "A macro is a python object in the module."

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"tit\n"
"help.text"
msgid "Python : Platform class"
msgstr "Python : Platform class"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0508\n"
"help.text"
msgid "<bookmark_value>Platform;isLinux</bookmark_value>        <bookmark_value>Platform;isMacOsX</bookmark_value>        <bookmark_value>Platform;isWindows</bookmark_value>        <bookmark_value>Platform;ComputerName</bookmark_value>        <bookmark_value>Platform;OSName</bookmark_value>"
msgstr "<bookmark_value>Platform;isLinux</bookmark_value>        <bookmark_value>Platform;isMacOsX</bookmark_value>        <bookmark_value>Platform;isWindows</bookmark_value>        <bookmark_value>Platform;ComputerName</bookmark_value>        <bookmark_value>Platform;OSName</bookmark_value>"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0509\n"
"help.text"
msgid "<variable id=\"pythonplatform\"><link href=\"text/sbasic/python/python_platform.xhp\" name=\"platform01\">Identifying the operating system</link></variable>"
msgstr "<variable id=\"pythonplatform\"><link href=\"text/sbasic/python/python_platform.xhp\" name=\"platform01\">Identifying the operating system</link></variable>"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0510\n"
"help.text"
msgid "Identifying the operating system can be performed with Python or Basic language."
msgstr "Identifying the operating system can be performed with Python or Basic language."

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0511\n"
"help.text"
msgid "%PRODUCTNAME Basic lacks Mac OS X native recognition while ComputerName property is solely available for Windows. Basic calls to Python macros help overcome such limitations."
msgstr "%PRODUCTNAME Basic lacks Mac OS X native recognition while ComputerName property is solely available for Windows. Basic calls to Python macros help overcome such limitations."

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0512\n"
"help.text"
msgid "Using a Python class:"
msgstr "Using a Python class:"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0529\n"
"help.text"
msgid "Using a Basic classmodule:"
msgstr "Using a Basic classmodule:"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0564\n"
"help.text"
msgid "Examples:"
msgstr "Examples:"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0565\n"
"help.text"
msgid "With Python"
msgstr "With Python"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0567\n"
"help.text"
msgid "<literal>>>> print(Platform().isMacOSX)  # object property</literal>"
msgstr "<literal>>>> print(Platform().isMacOSX)  # object property</literal>"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0569\n"
"help.text"
msgid "<literal>>>> input(Platform().OSName)  # object property</literal>"
msgstr "<literal>>>> input(Platform().OSName)  # object property</literal>"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0571\n"
"help.text"
msgid "From <menuitem>Tools – Macros - Run Macro...</menuitem> menu."
msgstr "From <menuitem>Tools – Macros - Run Macro...</menuitem> menu."

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0576\n"
"help.text"
msgid "With %PRODUCTNAME Basic"
msgstr "With %PRODUCTNAME Basic"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0578\n"
"help.text"
msgid "Dim p As New Platform ' instance of Platform class"
msgstr "Dim p As New Platform ' instance of Platform class"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0579\n"
"help.text"
msgid "MsgBox p.isLinux ' object property"
msgstr "MsgBox p.isLinux ' object property"

#: python_platform.xhp
msgctxt ""
"python_platform.xhp\n"
"N0580\n"
"help.text"
msgid "Print p.isWindows, p.OSName ' object properties"
msgstr "Print p.isWindows, p.OSName ' object properties"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"tit\n"
"help.text"
msgid "Python : Programming with Python"
msgstr "Python : Programming with Python"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0218\n"
"help.text"
msgid "<bookmark_value>Python;Programming</bookmark_value>        <bookmark_value>XSCRIPTCONTEXT;Python</bookmark_value>        <bookmark_value>uno.py</bookmark_value>"
msgstr "<bookmark_value>Python;Programming</bookmark_value>        <bookmark_value>XSCRIPTCONTEXT;Python</bookmark_value>        <bookmark_value>uno.py</bookmark_value>"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"hd_id691546462755220\n"
"help.text"
msgid "<variable id=\"pythonprogrammingheading\"><link href=\"text/sbasic/python/python_programming.xhp\" name=\"python programming\">Programming with Python Scripts</link></variable>"
msgstr "<variable id=\"pythonprogrammingheading\"><link href=\"text/sbasic/python/python_programming.xhp\" name=\"python programming\">Programming with Python Scripts</link></variable>"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0220\n"
"help.text"
msgid "A Python macro is a function within a .py file, identified as a module. Unlike %PRODUCTNAME Basic and its dozen of <link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects functions or services\">UNO objects functions or services</link>, Python macros use the <literal>XSCRIPTCONTEXT</literal> UNO single object, shared with JavaScript and BeanShell. The <literal>g_exportedScripts</literal> global tuple explicitly lists selectable macros from a module. Python modules hold autonomous code logic, and are independent from one another."
msgstr "A Python macro is a function within a .py file, identified as a module. Unlike %PRODUCTNAME Basic and its dozen of <link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects functions or services\">UNO objects functions or services</link>, Python macros use the <literal>XSCRIPTCONTEXT</literal> UNO single object, shared with JavaScript and BeanShell. The <literal>g_exportedScripts</literal> global tuple explicitly lists selectable macros from a module. Python modules hold autonomous code logic, and are independent from one another."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0221\n"
"help.text"
msgid "XSCRIPTCONTEXT Global Variable"
msgstr "XSCRIPTCONTEXT Global Variable"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0222\n"
"help.text"
msgid "Genuine Basic UNO facilities can be inferred from <literal>XSCRIPTCONTEXT</literal> global variable. Refer to %PRODUCTNAME API for a complete <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScriptContext.html\" name=\"description of XSCRIPTCONTEXT\">description of XSCRIPTCONTEXT</link>. <literal>XSCRIPTCONTEXT</literal> methods summarize as:"
msgstr "Genuine Basic UNO facilities can be inferred from <literal>XSCRIPTCONTEXT</literal> global variable. Refer to %PRODUCTNAME API for a complete <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScriptContext.html\" name=\"description of XSCRIPTCONTEXT\">description of XSCRIPTCONTEXT</link>. <literal>XSCRIPTCONTEXT</literal> methods summarize as:"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0224\n"
"help.text"
msgid "Methods"
msgstr "Methods"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0225\n"
"help.text"
msgid "Description"
msgstr "Description"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0226\n"
"help.text"
msgid "Mapped in Basic as"
msgstr "Mapped in Basic as"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0228\n"
"help.text"
msgid "The document reference on which the script can operate."
msgstr "The document reference on which the script can operate."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0231\n"
"help.text"
msgid "The desktop reference on which the script can operate."
msgstr "The desktop reference on which the script can operate."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0234\n"
"help.text"
msgid "The component context which the script can use to create other uno components."
msgstr "The component context which the script can use to create other UNO components."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0237\n"
"help.text"
msgid "<emph>HelloWorld</emph> and <emph>Capitalise</emph> installation shared scripts illustrate UNO-related macros making use of <literal>XSCRIPTCONTEXT</literal> global variable."
msgstr "<emph>HelloWorld</emph> and <emph>Capitalise</emph> installation shared scripts illustrate UNO-related macros making use of <literal>XSCRIPTCONTEXT</literal> global variable."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0238\n"
"help.text"
msgid "Python standard output file is not available when running Python macros from <menuitem>Tools - Macros - Run Macro</menuitem> menu. Refer to <emph>Input/Output to Screen</emph> for more information."
msgstr "Python standard output file is not available when running Python macros from <menuitem>Tools - Macros - Run Macro</menuitem> menu. Refer to <emph>Input/Output to Screen</emph> for more information."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0239\n"
"help.text"
msgid "Module import"
msgstr "Module import"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0240\n"
"help.text"
msgid "<literal>XSCRIPTCONTEXT</literal> is not provided to imported modules."
msgstr "<literal>XSCRIPTCONTEXT</literal> is not provided to imported modules."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0241\n"
"help.text"
msgid "%PRODUCTNAME Basic libraries contain classes, routines and variables, Python modules contain classes, functions and variables. Common pieces of reusable Python or UNO features must be stored in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"My macros\">My macros</link> within <literal><User Profile>/Scripts/python/pythonpath</literal>. Python libraries help organize modules in order to prevent module name collisions. Import <literal>uno.py</literal> inside shared modules."
msgstr "%PRODUCTNAME Basic libraries contain classes, routines and variables, Python modules contain classes, functions and variables. Common pieces of reusable Python or UNO features must be stored in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"My macros\">My macros</link> within <literal><User Profile>/Scripts/python/pythonpath</literal>. Python libraries help organise modules in order to prevent module name collisions. Import <literal>uno.py</literal> inside shared modules."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0242\n"
"help.text"
msgid "Genuine BASIC UNO facilities can be inferred using <literal>uno.py</literal> module. Use <link href=\"text/sbasic/python/python_shell.xhp\" name=\"Python interactive shell\">Python interactive shell</link> to get a complete module description using <literal>dir()</literal> and <literal>help()</literal> Python commands."
msgstr "Genuine BASIC UNO facilities can be inferred using <literal>uno.py</literal> module. Use <link href=\"text/sbasic/python/python_shell.xhp\" name=\"Python interactive shell\">Python interactive shell</link> to get a complete module description using <literal>dir()</literal> and <literal>help()</literal> Python commands."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0244\n"
"help.text"
msgid "Functions"
msgstr "Functions"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0245\n"
"help.text"
msgid "Description"
msgstr "Description"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0246\n"
"help.text"
msgid "Mapped in Basic as"
msgstr "Mapped in Basic as"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0248\n"
"help.text"
msgid "Returns an absolute file url from the given urls."
msgstr "Returns an absolute file URL from the given URLs."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0251\n"
"help.text"
msgid "Creates a UNO struct or exception given by typeName."
msgstr "Creates a UNO struct or exception given by typeName."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0254\n"
"help.text"
msgid "Returns a system path."
msgstr "Returns a system path."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0257\n"
"help.text"
msgid "Returns the class of a concrete UNO exception, struct, or interface."
msgstr "Returns the class of a concrete UNO exception, struct, or interface."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0260\n"
"help.text"
msgid "Returns the UNO component context used to initialize the Python runtime."
msgstr "Returns the UNO component context used to initialise the Python runtime."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0264\n"
"help.text"
msgid "Looks up the value of an IDL constant by giving its explicit name."
msgstr "Looks up the value of an IDL constant by giving its explicit name."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0265\n"
"help.text"
msgid "See API constant groups"
msgstr "See API constant groups"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0267\n"
"help.text"
msgid "Returns True, when obj is a class of a UNO interface."
msgstr "Returns True, when obj is a class of a UNO interface."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0270\n"
"help.text"
msgid "Returns a file URL for the given system path."
msgstr "Returns a file URL for the given system path."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0272\n"
"help.text"
msgid "<emph>LibreLogo</emph> and <emph>TableSample</emph> installation shared scripts use <literal>uno.py</literal> module."
msgstr "<emph>LibreLogo</emph> and <emph>TableSample</emph> installation shared scripts use <literal>uno.py</literal> module."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0273\n"
"help.text"
msgid "More Python-Basic samples"
msgstr "More Python-Basic samples"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0275\n"
"help.text"
msgid "Python UNO"
msgstr "Python UNO"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0276\n"
"help.text"
msgid "Basic UNO features"
msgstr "Basic UNO features"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0284\n"
"help.text"
msgid "See <link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"Opening a Dialog\">Opening a Dialog</link>"
msgstr ""

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0286\n"
"help.text"
msgid "See <link href=\"text/sbasic/python/python_listener.xhp\" name=\"Creating a Listener\">Creating a Listener</link>"
msgstr "See <link href=\"text/sbasic/python/python_listener.xhp\" name=\"Creating a Listener\">Creating a Listener</link>"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0288\n"
"help.text"
msgid "See UNO data types"
msgstr "See UNO data types"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0297\n"
"help.text"
msgid "Importing an embedded Module"
msgstr "Importing an embedded Module"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0298\n"
"help.text"
msgid "Similarly to %PRODUCTNAME Basic that supports browsing and dynamic loading of libraries, Python libraries can be explored and imported on demand. For more information on library containers, visit <link href=\"https://api.libreoffice.org/\" name=\"API Documentation site\">%PRODUCTNAME Application Programming Interface</link> (API) or download <link href=\"https://www.libreoffice.org/download/download/\" name=\"SDK download page\">%PRODUCTNAME Software Development Kit</link> (SDK)."
msgstr "Similarly to %PRODUCTNAME Basic that supports browsing and dynamic loading of libraries, Python libraries can be explored and imported on demand. For more information on library containers, visit <link href=\"https://api.libreoffice.org/\" name=\"API Documentation site\">%PRODUCTNAME Application Programming Interface</link> (API) or download <link href=\"https://www.libreoffice.org/download/download/\" name=\"SDK download page\">%PRODUCTNAME Software Development Kit</link> (SDK)."

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0299\n"
"help.text"
msgid "Importing a Python document embedded module is illustrated below, exception handling is not detailed:"
msgstr "Importing a Python document embedded module is illustrated below, exception handling is not detailed:"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0303\n"
"help.text"
msgid "\"\"\" load library and import module"
msgstr "\"\"\" load library and import module"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0305\n"
"help.text"
msgid "Adapted from 'Bibliothèque de fonctions' by Hubert Lambert"
msgstr "Adapted from 'Bibliothèque de fonctions' by Hubert Lambert"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0306\n"
"help.text"
msgid "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\""
msgstr "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\""

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0307\n"
"help.text"
msgid "doc = XSCRIPTCONTEXT.getDocument()  # current document"
msgstr "doc = XSCRIPTCONTEXT.getDocument()  # current document"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0310\n"
"help.text"
msgid "if not url in sys.path:  # add path if necessary"
msgstr "if not url in sys.path:  # add path if necessary"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0311\n"
"help.text"
msgid "sys.path.insert(0, url)  # doclib takes precedence"
msgstr "sys.path.insert(0, url)  # doclib takes precedence"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0312\n"
"help.text"
msgid "if module_name:  # import if requested"
msgstr "if module_name:  # import if requested"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0316\n"
"help.text"
msgid "ui = load_library(\"my_gui\",'screen_io')  # add <lib> path + import <module>"
msgstr "ui = load_library(\"my_gui\",'screen_io')  # add <lib> path + import <module>"

#: python_programming.xhp
msgctxt ""
"python_programming.xhp\n"
"N0321\n"
"help.text"
msgid "<link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects page\">Basic UNO Objects, Functions and Services</link>"
msgstr "<link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects page\">Basic UNO Objects, Functions and Services</link>"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"tit\n"
"help.text"
msgid "Python : Screen Input/Output"
msgstr "Python : Screen Input/Output"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0433\n"
"help.text"
msgid "<bookmark_value>Python;InputBox</bookmark_value>        <bookmark_value>Python;MsgBox</bookmark_value>        <bookmark_value>Python;Print</bookmark_value>"
msgstr "<bookmark_value>Python;InputBox</bookmark_value>        <bookmark_value>Python;MsgBox</bookmark_value>        <bookmark_value>Python;Print</bookmark_value>"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0434\n"
"help.text"
msgid "<variable id=\"ioscreen\"><link href=\"text/sbasic/python/python_screen.xhp\" name=\"IO to screen\">Input/Output to Screen</link></variable>"
msgstr "<variable id=\"ioscreen\"><link href=\"text/sbasic/python/python_screen.xhp\" name=\"IO to screen\">Input/Output to Screen</link></variable>"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0435\n"
"help.text"
msgid "Python standard output file is not available when running Python macros from <menuitem>Tools – Macros - Run Macro</menuitem>... menu. Presenting the output of a module requires the Python interactive console. Features such as <literal>input()</literal>, <literal>print()</literal>, <literal>repr()</literal> and <literal>str()</literal> are available from the Python shell."
msgstr "Python standard output file is not available when running Python macros from <menuitem>Tools – Macros - Run Macro</menuitem>... menu. Presenting the output of a module requires the Python interactive console. Features such as <literal>input()</literal>, <literal>print()</literal>, <literal>repr()</literal> and <literal>str()</literal> are available from the Python shell."

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0436\n"
"help.text"
msgid "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"apso\">Alternative Python Script Organizer</link> (APSO) extension offers a msgbox() function out of its <literal>apso_utils</literal> module."
msgstr "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"apso\">Alternative Python Script Organizer</link> (APSO) extension offers a msgbox() function out of its <literal>apso_utils</literal> module."

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0437\n"
"help.text"
msgid "%PRODUCTNAME Basic proposes <literal>InputBox()</literal>, <literal>Msgbox()</literal> and <literal>Print()</literal> screen I/O functions. Python alternatives exist relying either on %PRODUCTNAME API Abstract Windowing Toolkit, either on Python to Basic function calls. The latter proposes a syntax that is intentionally close to that of Basic, and uses a Python module next to a Basic module. The API Scripting Framework is used to perform Basic, BeanShell, JavaScript and Python inter-languages function calls."
msgstr "%PRODUCTNAME Basic proposes <literal>InputBox()</literal>, <literal>Msgbox()</literal> and <literal>Print()</literal> screen I/O functions. Python alternatives exist relying either on %PRODUCTNAME API Abstract Windowing Toolkit, either on Python to Basic function calls. The latter proposes a syntax that is intentionally close to that of Basic, and uses a Python module next to a Basic module. The API Scripting Framework is used to perform Basic, BeanShell, JavaScript and Python inter-languages function calls."

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0438\n"
"help.text"
msgid "Python syntax:"
msgstr "Python syntax:"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0442\n"
"help.text"
msgid "Examples:"
msgstr "Examples:"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0449\n"
"help.text"
msgid "Installation:"
msgstr "Installation:"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0450\n"
"help.text"
msgid "Copy <literal>screen_io</literal> Python module in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">My macros</link> within <UserProfile>/Scripts/python/pythonpath,"
msgstr "Copy <literal>screen_io</literal> Python module in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">My macros</link> within <UserProfile>/Scripts/python/pythonpath,"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0451\n"
"help.text"
msgid "Copy <literal>uiScripts</literal> Basic module in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">My macros</link> Standard Basic library,"
msgstr "Copy <literal>uiScripts</literal> Basic module in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">My macros</link> Standard Basic library,"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0452\n"
"help.text"
msgid "Restart %PRODUCTNAME."
msgstr "Restart %PRODUCTNAME."

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0453\n"
"help.text"
msgid "<literal>screen_io</literal> Python module"
msgstr "<literal>screen_io</literal> Python module"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0467\n"
"help.text"
msgid "\"\"\" Displays a dialog box containing a message and returns a value.\"\"\""
msgstr "\"\"\" Displays a dialogue box containing a message and returns a value.\"\"\""

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0473\n"
"help.text"
msgid "\"\"\" Displays a prompt in a dialog box at which the user can enter text.\"\"\""
msgstr "\"\"\" Displays a prompt in a dialogue box at which the user can enter text.\"\"\""

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0479\n"
"help.text"
msgid "\"\"\"Outputs the specified strings or numeric expressions in a dialog box.\"\"\""
msgstr "\"\"\"Outputs the specified strings or numeric expressions in a dialogue box.\"\"\""

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0492\n"
"help.text"
msgid "<literal>uiScripts</literal> Basic module"
msgstr "<literal>uiScripts</literal> Basic module"

#: python_screen.xhp
msgctxt ""
"python_screen.xhp\n"
"N0505\n"
"help.text"
msgid "<link href=\"text/sbasic/python/python_2_basic.xhp\" name=\"Calling Basic macros from Python\">Calling Basic macros from Python</link>"
msgstr "<link href=\"text/sbasic/python/python_2_basic.xhp\" name=\"Calling Basic macros from Python\">Calling Basic macros from Python</link>"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"tit\n"
"help.text"
msgid "Python_Session : Session class"
msgstr "Python_Session : Session class"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0339\n"
"help.text"
msgid "<bookmark_value>Session;ComputerName</bookmark_value>        <bookmark_value>Session;SharedScripts</bookmark_value>        <bookmark_value>Session;SharedPythonScripts</bookmark_value>        <bookmark_value>Session;UserProfile</bookmark_value>        <bookmark_value>Session;UserScripts</bookmark_value>        <bookmark_value>Session;UserPythonScripts</bookmark_value>"
msgstr "<bookmark_value>Session;ComputerName</bookmark_value>        <bookmark_value>Session;SharedScripts</bookmark_value>        <bookmark_value>Session;SharedPythonScripts</bookmark_value>        <bookmark_value>Session;UserProfile</bookmark_value>        <bookmark_value>Session;UserScripts</bookmark_value>        <bookmark_value>Session;UserPythonScripts</bookmark_value>"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0340\n"
"help.text"
msgid "<variable id=\"pythonsession\"><link href=\"text/sbasic/python/python_session.xhp\" name=\"session01\">Getting Session Information</link></variable>"
msgstr "<variable id=\"pythonsession\"><link href=\"text/sbasic/python/python_session.xhp\" name=\"session01\">Getting Session Information</link></variable>"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0341\n"
"help.text"
msgid "Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information."
msgstr "Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information."

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0343\n"
"help.text"
msgid "Examples:"
msgstr "Examples:"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0344\n"
"help.text"
msgid "With Python shell."
msgstr "With Python shell."

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0346\n"
"help.text"
msgid "<literal>>>> print(Session.SharedPythonScripts())  # static method</literal>"
msgstr "<literal>>>> print(Session.SharedPythonScripts())  # static method</literal>"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0347\n"
"help.text"
msgid "<literal>>>> print(Session().UserName)  # object property</literal>"
msgstr "<literal>>>> print(Session().UserName)  # object property</literal>"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0348\n"
"help.text"
msgid "<literal>>>> input(Session().UserProfile)  # object property</literal>"
msgstr "<literal>>>> input(Session().UserProfile)  # object property</literal>"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0349\n"
"help.text"
msgid "From <menuitem>Tools – Macros - Run Macro</menuitem>... menu."
msgstr "From <menuitem>Tools – Macros - Run Macro</menuitem>... menu."

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0354\n"
"help.text"
msgid "ui.MsgBox(Session.Share(),title='Installation Share')  # static method"
msgstr "ui.MsgBox(Session.Share(),title='Installation Share')  # static method"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0355\n"
"help.text"
msgid "ui.Print(Session.SharedPythonScripts())  # static method"
msgstr "ui.Print(Session.SharedPythonScripts())  # static method"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0356\n"
"help.text"
msgid "s = Session()  # instance creation"
msgstr "s = Session()  # instance creation"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0357\n"
"help.text"
msgid "ui.MsgBox(s.UserName,title='Hello')  # object property"
msgstr "ui.MsgBox(s.UserName,title='Hello')  # object property"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0358\n"
"help.text"
msgid "ui.Print(s.UserPythonScripts)  # object property"
msgstr "ui.Print(s.UserPythonScripts)  # object property"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0360\n"
"help.text"
msgid "g_exportedScripts = (demo_session,)  # public macros"
msgstr "g_exportedScripts = (demo_session,)  # public macros"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0361\n"
"help.text"
msgid "With %PRODUCTNAME Basic."
msgstr "With %PRODUCTNAME Basic."

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0364\n"
"help.text"
msgid "Print \"Shared scripts location:\", s.SharedScripts"
msgstr "Print \"Shared scripts location:\", s.SharedScripts"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0365\n"
"help.text"
msgid "MsgBox s.UserName,,\"Hello\""
msgstr "MsgBox s.UserName,,\"Hello\""

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0368\n"
"help.text"
msgid "Using COM/OLE and Visual Basic Scripting language."
msgstr "Using COM/OLE and Visual Basic Scripting language."

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0369\n"
"help.text"
msgid "' The service manager is always the entry point"
msgstr "' The service manager is always the entry point"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0370\n"
"help.text"
msgid "' If there is no office running then an office is started up"
msgstr "' If there is no office running then an office is started up"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0372\n"
"help.text"
msgid "' PathSubstitution service exhibits information to infer"
msgstr "' PathSubstitution service exhibits information to infer"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0373\n"
"help.text"
msgid "' <UserProfile|Share>/Scripts/python locations from"
msgstr "' <UserProfile|Share>/Scripts/python locations from"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0381\n"
"help.text"
msgid "Python Session class:"
msgstr "Python Session class:"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0401\n"
"help.text"
msgid "@property  # alternative to '$(username)' variable"
msgstr "@property  # alternative to '$(username)' variable"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0342\n"
"help.text"
msgid "Unlike Basic, pathname normalization is performed with Python inside Session class."
msgstr "Unlike Basic, pathname normalisation is performed with Python inside Session class."

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0412\n"
"help.text"
msgid "%PRODUCTNAME Basic Session class:"
msgstr "%PRODUCTNAME Basic Session class:"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0417\n"
"help.text"
msgid "Private _ps As Object ' Private member"
msgstr "Private _ps As Object ' Private member"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0422\n"
"help.text"
msgid "End Sub ' Constructor"
msgstr "End Sub ' Constructor"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0426\n"
"help.text"
msgid "End Sub ' Destructor"
msgstr "End Sub ' Destructor"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0439\n"
"help.text"
msgid "Public Property Get UserName() As String ' User account name"
msgstr "Public Property Get UserName() As String ' User account name"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0443\n"
"help.text"
msgid "Public Property Get UserProfile() As String ' User profile system path"
msgstr "Public Property Get UserProfile() As String ' User profile system path"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0447\n"
"help.text"
msgid "Public Property Get UserScripts() As String ' User scripts system path"
msgstr "Public Property Get UserScripts() As String ' User scripts system path"

#: python_session.xhp
msgctxt ""
"python_session.xhp\n"
"N0451\n"
"help.text"
msgid "Public Property Get UserPythonScripts() As String ' User Python scripts system path"
msgstr "Public Property Get UserPythonScripts() As String ' User Python scripts system path"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"tit\n"
"help.text"
msgid "Python Interactive Shell"
msgstr "Python Interactive Shell"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0117\n"
"help.text"
msgid "<bookmark_value>Python console</bookmark_value>        <bookmark_value>Python Interactive Shell</bookmark_value>"
msgstr "<bookmark_value>Python console</bookmark_value>        <bookmark_value>Python Interactive Shell</bookmark_value>"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0118\n"
"help.text"
msgid "<variable id=\"pythonshell1\"><link href=\"text/sbasic/python/python_shell.xhp\" name=\"python shell\">Running Python Interactive Console</link></variable>"
msgstr "<variable id=\"pythonshell1\"><link href=\"text/sbasic/python/python_shell.xhp\" name=\"python shell\">Running Python Interactive Console</link></variable>"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0119\n"
"help.text"
msgid "The Python interactive console, also known as Python interpreter or Python shell, provides programmers with a quick way to execute commands and try out and test code without creating a file. UNO objects introspection as well as %PRODUCTNAME Python modules documentation can be obtained from the terminal."
msgstr "The Python interactive console, also known as Python interpreter or Python shell, provides programmers with a quick way to execute commands and try out and test code without creating a file. UNO objects introspection as well as %PRODUCTNAME Python modules documentation can be obtained from the terminal."

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0121\n"
"help.text"
msgid "Using a Basic macro:"
msgstr "Using a Basic macro:"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0127\n"
"help.text"
msgid "Using a Python macro:"
msgstr "Using a Python macro:"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0141\n"
"help.text"
msgid "Usage:"
msgstr "Usage:"

#: python_shell.xhp
msgctxt ""
"python_shell.xhp\n"
"N0142\n"
"help.text"
msgid "<image src=\"media/helpimg/python/python_shell.png\" id=\"N0143\"><alt id=\"N0144\">Python Interactive Console</alt></image>"
msgstr "<image src=\"media/helpimg/python/python_shell.png\" id=\"N0143\"><alt id=\"N0144\">Python Interactive Console</alt></image>"