eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.MyMemoryEngine.html

branch
eric7
changeset 9148
b31f0d894b55
parent 8596
d64760b2da50
equal deleted inserted replaced
9147:bbf3af40c223 9148:b31f0d894b55
85 <p> 85 <p>
86 Constructor 86 Constructor
87 </p> 87 </p>
88 <dl> 88 <dl>
89 89
90 <dt><i>plugin</i></dt> 90 <dt><i>plugin</i> (TranslatorPlugin)</dt>
91 <dd> 91 <dd>
92 reference to the plugin object (TranslatorPlugin) 92 reference to the plugin object
93 </dd> 93 </dd>
94 <dt><i>parent</i></dt> 94 <dt><i>parent</i> (QObject)</dt>
95 <dd> 95 <dd>
96 reference to the parent object (QObject) 96 reference to the parent object
97 </dd> 97 </dd>
98 </dl> 98 </dl>
99 <a NAME="MyMemoryEngine.engineName" ID="MyMemoryEngine.engineName"></a> 99 <a NAME="MyMemoryEngine.engineName" ID="MyMemoryEngine.engineName"></a>
100 <h4>MyMemoryEngine.engineName</h4> 100 <h4>MyMemoryEngine.engineName</h4>
101 <b>engineName</b>(<i></i>) 101 <b>engineName</b>(<i></i>)
104 Public method to return the name of the engine. 104 Public method to return the name of the engine.
105 </p> 105 </p>
106 <dl> 106 <dl>
107 <dt>Return:</dt> 107 <dt>Return:</dt>
108 <dd> 108 <dd>
109 engine name (string) 109 engine name
110 </dd>
111 </dl>
112 <dl>
113 <dt>Return Type:</dt>
114 <dd>
115 str
110 </dd> 116 </dd>
111 </dl> 117 </dl>
112 <a NAME="MyMemoryEngine.getTranslation" ID="MyMemoryEngine.getTranslation"></a> 118 <a NAME="MyMemoryEngine.getTranslation" ID="MyMemoryEngine.getTranslation"></a>
113 <h4>MyMemoryEngine.getTranslation</h4> 119 <h4>MyMemoryEngine.getTranslation</h4>
114 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>) 120 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>)
116 <p> 122 <p>
117 Public method to translate the given text. 123 Public method to translate the given text.
118 </p> 124 </p>
119 <dl> 125 <dl>
120 126
121 <dt><i>requestObject</i></dt> 127 <dt><i>requestObject</i> (TranslatorRequest)</dt>
122 <dd> 128 <dd>
123 reference to the request object 129 reference to the request object
124 (TranslatorRequest)
125 </dd> 130 </dd>
126 <dt><i>text</i></dt> 131 <dt><i>text</i> (str)</dt>
127 <dd> 132 <dd>
128 text to be translated (string) 133 text to be translated
129 </dd> 134 </dd>
130 <dt><i>originalLanguage</i></dt> 135 <dt><i>originalLanguage</i> (str)</dt>
131 <dd> 136 <dd>
132 language code of the original (string) 137 language code of the original
133 </dd> 138 </dd>
134 <dt><i>translationLanguage</i></dt> 139 <dt><i>translationLanguage</i> (str)</dt>
135 <dd> 140 <dd>
136 language code of the translation (string) 141 language code of the translation
137 </dd> 142 </dd>
138 </dl> 143 </dl>
139 <dl> 144 <dl>
140 <dt>Return:</dt> 145 <dt>Return:</dt>
141 <dd> 146 <dd>
142 tuple of translated text (string) and flag indicating 147 tuple of translated text and flag indicating success
143 success (boolean) 148 </dd>
149 </dl>
150 <dl>
151 <dt>Return Type:</dt>
152 <dd>
153 tuple of (str, bool)
144 </dd> 154 </dd>
145 </dl> 155 </dl>
146 <a NAME="MyMemoryEngine.supportedLanguages" ID="MyMemoryEngine.supportedLanguages"></a> 156 <a NAME="MyMemoryEngine.supportedLanguages" ID="MyMemoryEngine.supportedLanguages"></a>
147 <h4>MyMemoryEngine.supportedLanguages</h4> 157 <h4>MyMemoryEngine.supportedLanguages</h4>
148 <b>supportedLanguages</b>(<i></i>) 158 <b>supportedLanguages</b>(<i></i>)
151 Public method to get the supported languages. 161 Public method to get the supported languages.
152 </p> 162 </p>
153 <dl> 163 <dl>
154 <dt>Return:</dt> 164 <dt>Return:</dt>
155 <dd> 165 <dd>
156 list of supported language codes (list of string) 166 list of supported language codes
167 </dd>
168 </dl>
169 <dl>
170 <dt>Return Type:</dt>
171 <dd>
172 list of str
157 </dd> 173 </dd>
158 </dl> 174 </dl>
159 <div align="right"><a href="#top">Up</a></div> 175 <div align="right"><a href="#top">Up</a></div>
160 <hr /> 176 <hr />
161 </body></html> 177 </body></html>

eric ide

mercurial