diff -r bbf3af40c223 -r b31f0d894b55 eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GlosbeEngine.html --- a/eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GlosbeEngine.html Sun Jun 12 16:05:27 2022 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,161 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GlosbeEngine</title> -<meta charset="UTF-8"> -<link rel="stylesheet" href="styles.css"> -</head> -<body> -<a NAME="top" ID="top"></a> -<h1>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GlosbeEngine</h1> - -<p> -Module implementing the Glosbe translation engine. -</p> -<h3>Global Attributes</h3> - -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> - -<table> - -<tr> -<td><a href="#GlosbeEngine">GlosbeEngine</a></td> -<td>Class implementing the translation engine for the Glosbe translation service.</td> -</tr> -</table> -<h3>Functions</h3> - -<table> -<tr><td>None</td></tr> -</table> -<hr /> -<hr /> -<a NAME="GlosbeEngine" ID="GlosbeEngine"></a> -<h2>GlosbeEngine</h2> - -<p> - Class implementing the translation engine for the Glosbe - translation service. -</p> -<h3>Derived from</h3> -TranslationEngine -<h3>Class Attributes</h3> - -<table> -<tr><td>TranslatorLimit</td></tr><tr><td>TranslatorUrl</td></tr> -</table> -<h3>Class Methods</h3> - -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> - -<table> - -<tr> -<td><a href="#GlosbeEngine.__init__">GlosbeEngine</a></td> -<td>Constructor</td> -</tr> -<tr> -<td><a href="#GlosbeEngine.engineName">engineName</a></td> -<td>Public method to return the name of the engine.</td> -</tr> -<tr> -<td><a href="#GlosbeEngine.getTranslation">getTranslation</a></td> -<td>Public method to translate the given text.</td> -</tr> -<tr> -<td><a href="#GlosbeEngine.supportedLanguages">supportedLanguages</a></td> -<td>Public method to get the supported languages.</td> -</tr> -</table> -<h3>Static Methods</h3> - -<table> -<tr><td>None</td></tr> -</table> - -<a NAME="GlosbeEngine.__init__" ID="GlosbeEngine.__init__"></a> -<h4>GlosbeEngine (Constructor)</h4> -<b>GlosbeEngine</b>(<i>plugin, parent=None</i>) - -<p> - Constructor -</p> -<dl> - -<dt><i>plugin</i></dt> -<dd> -reference to the plugin object (TranslatorPlugin) -</dd> -<dt><i>parent</i></dt> -<dd> -reference to the parent object (QObject) -</dd> -</dl> -<a NAME="GlosbeEngine.engineName" ID="GlosbeEngine.engineName"></a> -<h4>GlosbeEngine.engineName</h4> -<b>engineName</b>(<i></i>) - -<p> - Public method to return the name of the engine. -</p> -<dl> -<dt>Return:</dt> -<dd> -engine name (string) -</dd> -</dl> -<a NAME="GlosbeEngine.getTranslation" ID="GlosbeEngine.getTranslation"></a> -<h4>GlosbeEngine.getTranslation</h4> -<b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>) - -<p> - Public method to translate the given text. -</p> -<dl> - -<dt><i>requestObject</i></dt> -<dd> -reference to the request object - (TranslatorRequest) -</dd> -<dt><i>text</i></dt> -<dd> -text to be translated (string) -</dd> -<dt><i>originalLanguage</i></dt> -<dd> -language code of the original (string) -</dd> -<dt><i>translationLanguage</i></dt> -<dd> -language code of the translation (string) -</dd> -</dl> -<dl> -<dt>Return:</dt> -<dd> -tuple of translated text (string) and flag indicating - success (boolean) -</dd> -</dl> -<a NAME="GlosbeEngine.supportedLanguages" ID="GlosbeEngine.supportedLanguages"></a> -<h4>GlosbeEngine.supportedLanguages</h4> -<b>supportedLanguages</b>(<i></i>) - -<p> - Public method to get the supported languages. -</p> -<dl> -<dt>Return:</dt> -<dd> -list of supported language codes (list of string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file