src/eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GoogleV2Engine.html

branch
eric7
changeset 10479
856476537696
parent 9503
ae9232bf4854
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GoogleV2Engine</h1> 9 <h1>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GoogleV2Engine</h1>
10
11 <p> 10 <p>
12 Module implementing the Google V2 translation engine. 11 Module implementing the Google V2 translation engine.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#GoogleV2Engine">GoogleV2Engine</a></td> 22 <td><a href="#GoogleV2Engine">GoogleV2Engine</a></td>
25 <td>Class implementing the translation engine for the new Google translation service.</td> 23 <td>Class implementing the translation engine for the new Google translation service.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table>
31
32 <tr> 29 <tr>
33 <td><a href="#createEngine">createEngine</a></td> 30 <td><a href="#createEngine">createEngine</a></td>
34 <td>Function to instantiate a translator engine object.</td> 31 <td>Function to instantiate a translator engine object.</td>
35 </tr> 32 </tr>
36 </table> 33 </table>
34
37 <hr /> 35 <hr />
38 <hr /> 36 <hr />
39 <a NAME="GoogleV2Engine" ID="GoogleV2Engine"></a> 37 <a NAME="GoogleV2Engine" ID="GoogleV2Engine"></a>
40 <h2>GoogleV2Engine</h2> 38 <h2>GoogleV2Engine</h2>
41
42 <p> 39 <p>
43 Class implementing the translation engine for the new Google 40 Class implementing the translation engine for the new Google
44 translation service. 41 translation service.
45 </p> 42 </p>
43
46 <h3>Derived from</h3> 44 <h3>Derived from</h3>
47 TranslationEngine 45 TranslationEngine
48 <h3>Class Attributes</h3> 46 <h3>Class Attributes</h3>
49
50 <table> 47 <table>
51 <tr><td>TranslatorUrl</td></tr> 48 <tr><td>TranslatorUrl</td></tr>
52 </table> 49 </table>
50
53 <h3>Class Methods</h3> 51 <h3>Class Methods</h3>
54
55 <table> 52 <table>
56 <tr><td>None</td></tr> 53 <tr><td>None</td></tr>
57 </table> 54 </table>
55
58 <h3>Methods</h3> 56 <h3>Methods</h3>
59 57 <table>
60 <table>
61
62 <tr> 58 <tr>
63 <td><a href="#GoogleV2Engine.__init__">GoogleV2Engine</a></td> 59 <td><a href="#GoogleV2Engine.__init__">GoogleV2Engine</a></td>
64 <td>Constructor</td> 60 <td>Constructor</td>
65 </tr> 61 </tr>
66 <tr> 62 <tr>
74 <tr> 70 <tr>
75 <td><a href="#GoogleV2Engine.supportedLanguages">supportedLanguages</a></td> 71 <td><a href="#GoogleV2Engine.supportedLanguages">supportedLanguages</a></td>
76 <td>Public method to get the supported languages.</td> 72 <td>Public method to get the supported languages.</td>
77 </tr> 73 </tr>
78 </table> 74 </table>
75
79 <h3>Static Methods</h3> 76 <h3>Static Methods</h3>
80
81 <table> 77 <table>
82 <tr><td>None</td></tr> 78 <tr><td>None</td></tr>
83 </table> 79 </table>
80
84 81
85 <a NAME="GoogleV2Engine.__init__" ID="GoogleV2Engine.__init__"></a> 82 <a NAME="GoogleV2Engine.__init__" ID="GoogleV2Engine.__init__"></a>
86 <h4>GoogleV2Engine (Constructor)</h4> 83 <h4>GoogleV2Engine (Constructor)</h4>
87 <b>GoogleV2Engine</b>(<i>plugin, parent=None</i>) 84 <b>GoogleV2Engine</b>(<i>plugin, parent=None</i>)
88
89 <p> 85 <p>
90 Constructor 86 Constructor
91 </p> 87 </p>
88
92 <dl> 89 <dl>
93 90
94 <dt><i>plugin</i> (TranslatorPlugin)</dt> 91 <dt><i>plugin</i> (TranslatorPlugin)</dt>
95 <dd> 92 <dd>
96 reference to the plugin object 93 reference to the plugin object
101 </dd> 98 </dd>
102 </dl> 99 </dl>
103 <a NAME="GoogleV2Engine.engineName" ID="GoogleV2Engine.engineName"></a> 100 <a NAME="GoogleV2Engine.engineName" ID="GoogleV2Engine.engineName"></a>
104 <h4>GoogleV2Engine.engineName</h4> 101 <h4>GoogleV2Engine.engineName</h4>
105 <b>engineName</b>(<i></i>) 102 <b>engineName</b>(<i></i>)
106
107 <p> 103 <p>
108 Public method to return the name of the engine. 104 Public method to return the name of the engine.
109 </p> 105 </p>
106
110 <dl> 107 <dl>
111 <dt>Return:</dt> 108 <dt>Return:</dt>
112 <dd> 109 <dd>
113 engine name 110 engine name
114 </dd> 111 </dd>
120 </dd> 117 </dd>
121 </dl> 118 </dl>
122 <a NAME="GoogleV2Engine.getTranslation" ID="GoogleV2Engine.getTranslation"></a> 119 <a NAME="GoogleV2Engine.getTranslation" ID="GoogleV2Engine.getTranslation"></a>
123 <h4>GoogleV2Engine.getTranslation</h4> 120 <h4>GoogleV2Engine.getTranslation</h4>
124 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>) 121 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>)
125
126 <p> 122 <p>
127 Public method to translate the given text. 123 Public method to translate the given text.
128 </p> 124 </p>
125
129 <dl> 126 <dl>
130 127
131 <dt><i>requestObject</i> (TranslatorRequest)</dt> 128 <dt><i>requestObject</i> (TranslatorRequest)</dt>
132 <dd> 129 <dd>
133 reference to the request object 130 reference to the request object
158 </dd> 155 </dd>
159 </dl> 156 </dl>
160 <a NAME="GoogleV2Engine.supportedLanguages" ID="GoogleV2Engine.supportedLanguages"></a> 157 <a NAME="GoogleV2Engine.supportedLanguages" ID="GoogleV2Engine.supportedLanguages"></a>
161 <h4>GoogleV2Engine.supportedLanguages</h4> 158 <h4>GoogleV2Engine.supportedLanguages</h4>
162 <b>supportedLanguages</b>(<i></i>) 159 <b>supportedLanguages</b>(<i></i>)
163
164 <p> 160 <p>
165 Public method to get the supported languages. 161 Public method to get the supported languages.
166 </p> 162 </p>
163
167 <dl> 164 <dl>
168 <dt>Return:</dt> 165 <dt>Return:</dt>
169 <dd> 166 <dd>
170 list of supported language codes 167 list of supported language codes
171 </dd> 168 </dd>
180 <hr /> 177 <hr />
181 <hr /> 178 <hr />
182 <a NAME="createEngine" ID="createEngine"></a> 179 <a NAME="createEngine" ID="createEngine"></a>
183 <h2>createEngine</h2> 180 <h2>createEngine</h2>
184 <b>createEngine</b>(<i>plugin, parent=None</i>) 181 <b>createEngine</b>(<i>plugin, parent=None</i>)
185
186 <p> 182 <p>
187 Function to instantiate a translator engine object. 183 Function to instantiate a translator engine object.
188 </p> 184 </p>
185
189 <dl> 186 <dl>
190 187
191 <dt><i>plugin</i> (TranslatorPlugin)</dt> 188 <dt><i>plugin</i> (TranslatorPlugin)</dt>
192 <dd> 189 <dd>
193 reference to the plugin object 190 reference to the plugin object

eric ide

mercurial