LibreOffice plugin to pipe whole Writer documents through Google Translate, that ought to keep most of the page formatting.

⌈⌋ ⎇ branch:  PageTranslate


Check-in [6e4fac5cff]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Rename some meta references from Tradutor to pagetranslate
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6e4fac5cffa8c8b4fc9c3302b8634461bb66b329
User & Date: mario 2020-05-02 16:08:58
Context
2020-05-02
16:15
dissable main trigger function, add some PMD comment check-in: 5746c98ed8 user: mario tags: trunk
16:08
Rename some meta references from Tradutor to pagetranslate check-in: 6e4fac5cff user: mario tags: trunk
16:03
Fork from TradutorLibreText 1.3.1 check-in: 99a69d8f82 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to META-INF/manifest.xml.

1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest>
 <manifest:file-entry manifest:full-path="pkg-desc/pkg-description.txt" manifest:media-type="application/vnd.sun.star.package-bundle-description"/>
 <manifest:file-entry manifest:full-path="pkg-desc/pkg-description.en" manifest:media-type="application/vnd.sun.star.package-bundle-description;locale=en"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
                       manifest:full-path="registry/data/org/openoffice/Office/Addons.xcu"/>/>
  <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python" manifest:full-path="TradutorLibreText.py"/>
</manifest:manifest>






|

1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest>
 <manifest:file-entry manifest:full-path="pkg-desc/pkg-description.txt" manifest:media-type="application/vnd.sun.star.package-bundle-description"/>
 <manifest:file-entry manifest:full-path="pkg-desc/pkg-description.en" manifest:media-type="application/vnd.sun.star.package-bundle-description;locale=en"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
                       manifest:full-path="registry/data/org/openoffice/Office/Addons.xcu"/>/>
  <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python" manifest:full-path="pagetranslate.py"/>
</manifest:manifest>

Changes to description.xml.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version='1.0' encoding='UTF-8'?>
<description
 xmlns="http://openoffice.org/extensions/description/2006"
 xmlns:dep="http://openoffice.org/extensions/description/2006"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<identifier value="vdn.tradutorlibretext.tradutorlibretext"/>
	<version value="1.3.1"/>
	  <display-name>
        <name lang="en">TradutorLibreText</name>
        <name lang="pt-BR">TradutorLibreText</name>
    </display-name>
	
	<dependencies>
		<OpenOffice.org-minimal-version value="3.0" dep:name="OpenOffice.org 3.0"/>
	</dependencies>
	<registration>
	<simple-license  accept-by="admin" default-license-id="en" suppress-on-update="true" >
			<license-text xlink:href="registration/lgpl-en.txt" lang="en" license-id="en" />
	</simple-license>
	</registration>
	<publisher>                                                          
		<name xlink:href="mailto:claudemir.ar@gmail.com" lang="en">Claudemir de Almeida Rosa</name>
	</publisher>
</description>





|
|

|
<











|


1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version='1.0' encoding='UTF-8'?>
<description
 xmlns="http://openoffice.org/extensions/description/2006"
 xmlns:dep="http://openoffice.org/extensions/description/2006"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<identifier value="vnd.include-once.pagetranslate"/>
	<version value="0.3"/>
	  <display-name>
        <name lang="en">PageTranslate</name>

    </display-name>
	
	<dependencies>
		<OpenOffice.org-minimal-version value="3.0" dep:name="OpenOffice.org 3.0"/>
	</dependencies>
	<registration>
	<simple-license  accept-by="admin" default-license-id="en" suppress-on-update="true" >
			<license-text xlink:href="registration/lgpl-en.txt" lang="en" license-id="en" />
	</simple-license>
	</registration>
	<publisher>                                                          
		<name xlink:href="mailto:milky@users.sf.net" lang="en">Mario</name>
	</publisher>
</description>

Name change from TradutorLibreText.py to pagetranslate.py.

Changes to registry/data/org/openoffice/Office/Addons.xcu.

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
<?xml version='1.0' encoding='UTF-8'?>

<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
    <node oor:name="AddonUI">
        <node oor:name="OfficeMenuBarMerging">
            <node oor:name="TradutorLibreText.OfficeToolBar" oor:op="replace">
                <node oor:name="S1" oor:op="replace">
                    <prop oor:name="MergePoint">
                        <value>.uno:ToolsMenu\.uno:WordCountDialog</value>
                    </prop>
                    <prop oor:name="MergeCommand">
                        <value>AddAfter</value>
                    </prop>
                    <prop oor:name="MergeFallback">
                        <value>AddPath</value>
                    </prop>
                    <node oor:name="MenuItems">
                        <node oor:name="M1" oor:op="replace">
                            <prop oor:name="Title">
                                <value xml:lang="en">TradutorLibreText</value>
                                <value xml:lang="pt-BR">TradutorLibreText</value>
                            </prop>
                            <node oor:name="Submenu">
                                <node oor:name="M2" oor:op="replace">
									 <prop oor:name="Context" oor:type="xs:string">
                                        <value>com.sun.star.text.TextDocument</value>
                                    </prop>
                                    <prop oor:name="URL" oor:type="xs:string">
                                        <value>service:org.openoffice.comp.pyuno.TradutorLibreText?execute</value>
                                    </prop>
                                    <prop oor:name="Title" oor:type="xs:string">
                                        <value />
                                        	<value xml:lang="pt-BR">Traduzir</value>
											<value xml:lang="en-US">Translate</value>
                                    </prop>                                   
                                    <prop oor:name="Target" oor:type="xs:string">
                                        <value>_self</value>
                                    </prop>                                    
                                </node>
                                </node>
                        </node>





|













|
<







|



<
|







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
<?xml version='1.0' encoding='UTF-8'?>

<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
    <node oor:name="AddonUI">
        <node oor:name="OfficeMenuBarMerging">
            <node oor:name="pagetranslate.OfficeToolBar" oor:op="replace">
                <node oor:name="S1" oor:op="replace">
                    <prop oor:name="MergePoint">
                        <value>.uno:ToolsMenu\.uno:WordCountDialog</value>
                    </prop>
                    <prop oor:name="MergeCommand">
                        <value>AddAfter</value>
                    </prop>
                    <prop oor:name="MergeFallback">
                        <value>AddPath</value>
                    </prop>
                    <node oor:name="MenuItems">
                        <node oor:name="M1" oor:op="replace">
                            <prop oor:name="Title">
                                <value xml:lang="en">PageTranslate</value>

                            </prop>
                            <node oor:name="Submenu">
                                <node oor:name="M2" oor:op="replace">
									 <prop oor:name="Context" oor:type="xs:string">
                                        <value>com.sun.star.text.TextDocument</value>
                                    </prop>
                                    <prop oor:name="URL" oor:type="xs:string">
                                        <value>service:org.openoffice.comp.pyuno.pagetranslate?execute</value>
                                    </prop>
                                    <prop oor:name="Title" oor:type="xs:string">
                                        <value />

						<value xml:lang="en-US">Translate</value>
                                    </prop>                                   
                                    <prop oor:name="Target" oor:type="xs:string">
                                        <value>_self</value>
                                    </prop>                                    
                                </node>
                                </node>
                        </node>
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
                        <node oor:name="m1" oor:op="replace">
                            <prop oor:name="URL" oor:type="xs:string">
                                <value>private:separator</value>
                            </prop>
                        </node>
                        <node oor:name="m2" oor:op="replace">
                            <prop oor:name="URL" oor:type="xs:string">
                                <value>service:org.openoffice.comp.pyuno.TradutorLibreText?execute</value>
                            </prop>
                            <prop oor:name="ImageIdentifier" oor:type="xs:string">
                                <value/>
                            </prop>
                            <prop oor:name="Target" oor:type="xs:string">
                                <value>_self</value>
                            </prop>
                            <prop oor:name="Context" oor:type="xs:string">
                                <value>com.sun.star.text.TextDocument</value>
                            </prop>
                            <prop oor:name="ControlType" oor:type="xs:string">
                                <value>Checkbutton</value>
                            </prop>
                            <prop oor:name="Title" oor:type="xs:string">
                                <value/>
								<value xml:lang="pt-BR">Traduzir</value>
								<value xml:lang="en-US">Translate</value>
                            </prop>
                        </node>

                        <node oor:name="m3" oor:op="replace">
                            <prop oor:name="URL" oor:type="xs:string">
                                <value>private:separator</value>
                            </prop>







|















<
|







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
                        <node oor:name="m1" oor:op="replace">
                            <prop oor:name="URL" oor:type="xs:string">
                                <value>private:separator</value>
                            </prop>
                        </node>
                        <node oor:name="m2" oor:op="replace">
                            <prop oor:name="URL" oor:type="xs:string">
                                <value>service:org.openoffice.comp.pyuno.pagetranslate?execute</value>
                            </prop>
                            <prop oor:name="ImageIdentifier" oor:type="xs:string">
                                <value/>
                            </prop>
                            <prop oor:name="Target" oor:type="xs:string">
                                <value>_self</value>
                            </prop>
                            <prop oor:name="Context" oor:type="xs:string">
                                <value>com.sun.star.text.TextDocument</value>
                            </prop>
                            <prop oor:name="ControlType" oor:type="xs:string">
                                <value>Checkbutton</value>
                            </prop>
                            <prop oor:name="Title" oor:type="xs:string">
                                <value/>

				<value xml:lang="en-US">Translate</value>
                            </prop>
                        </node>

                        <node oor:name="m3" oor:op="replace">
                            <prop oor:name="URL" oor:type="xs:string">
                                <value>private:separator</value>
                            </prop>