-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplugin.xml
executable file
·134 lines (126 loc) · 3.67 KB
/
plugin.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
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
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="dita-ot/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<!--
This file is part of the DITA-OT Translate Plug-in project.
See the accompanying LICENSE file for applicable licenses.
-->
<plugin id="fox.jason.translate.xliff" version="4.1.0">
<feature extension="dita.conductor.lib.import" file="lib/translate-1.3.jar"/>
<feature
extension="dita.conductor.lib.import"
file="lib/json-simple-1.1.1.jar"
/>
<transtype
name="xliff-create"
desc=" XML Localization Interchange File Format (XLIFF)"
>
<param
name="translate.from"
type="string"
desc="Specifies the source language for translated content, such as en for English."
/>
<param
name="translate.to"
type="string"
desc="Specifies the target language for translated content, such as fr for French."
/>
<param
name="translate.cachefile"
type="file"
desc="The location of a previously translated XLIFF file holding translations to be reused"
/>
<param
name="xliff.version"
type="enum"
desc="Defines which XLIFF format to use"
>
<val>1</val>
<val default="true">2</val>
</param>
</transtype>
<transtype
name="xliff-translate"
desc="Auto-translate an XLIFF File using an online service"
>
<param
name="translate.service"
desc="Specifies the cloud auto-translate service."
type="enum"
>
<val>bing</val>
<val>custom</val>
<val>deepl</val>
<val default="true">dummy</val>
<val>watson</val>
<val>yandex</val>
</param>
<param
name="translate.authentication.url"
type="string"
desc="URL for creating an OAuth token if needed"
/>
<param name="translate.output.format" type="string" desc=""/>
<param
name="translate.apikey"
type="string"
desc="API key for a cloud Translation service"
/>
<param
name="translate.region"
type="string"
desc="Region for a Microsoft multi-service text API subscription"
/>
<param
name="translate.url"
type="string"
desc="URL for a cloud Translation service"
/>
<param
name="translate.from"
type="string"
desc="Specifies the source language for translated content, such as en for English."
/>
<param
name="translate.to"
type="string"
desc="Specifies the target language for translated content, such as fr for French."
/>
<param
name="xliff.version"
type="enum"
desc="Defines which XLIFF format to use"
>
<val>1</val>
<val default="true">2</val>
</param>
</transtype>
<transtype
name="xliff-dita"
desc="Supply translated text into DITA skeleton files using an XLIFF File"
>
<param
name="translate.from"
type="string"
desc="Specifies the source language for translated content, such as en for English."
/>
<param
name="translate.to"
type="string"
desc="Specifies the target language for translated content, such as fr for French."
/>
<param
name="xliff.version"
type="enum"
desc="Defines which XLIFF format to use"
>
<val>1</val>
<val default="true">2</val>
</param>
</transtype>
<!-- Import the translate transform's ANT file -->
<feature extension="ant.import" file="build_dita2translate.xml"/>
<!-- Ensure the plugin's error and logging messages are available -->
<feature extension="dita.xsl.messages" file="resource/messages.xml"/>
<!-- Add a template file to enable overrides to use extension points -->
<template file="build_dita2translate_template.xml"/>
</plugin>