diff -r d6062691d424 -r e0227a7c850e eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorLanguagesDb.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorLanguagesDb.html Mon May 24 11:19:57 2021 +0200 @@ -0,0 +1,188 @@ +<!DOCTYPE html> +<html><head> +<title>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorLanguagesDb</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body> +<a NAME="top" ID="top"></a> +<h1>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorLanguagesDb</h1> + +<p> +Module implementing the translation languages database. +</p> +<h3>Global Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> + +<table> + +<tr> +<td><a href="#TranslatorLanguagesDb">TranslatorLanguagesDb</a></td> +<td>Class implementing the translation languages database.</td> +</tr> +</table> +<h3>Functions</h3> + +<table> +<tr><td>None</td></tr> +</table> +<hr /> +<hr /> +<a NAME="TranslatorLanguagesDb" ID="TranslatorLanguagesDb"></a> +<h2>TranslatorLanguagesDb</h2> + +<p> + Class implementing the translation languages database. +</p> +<h3>Derived from</h3> +QObject +<h3>Class Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> + +<table> + +<tr> +<td><a href="#TranslatorLanguagesDb.__init__">TranslatorLanguagesDb</a></td> +<td>Constructor</td> +</tr> +<tr> +<td><a href="#TranslatorLanguagesDb.convertTwoToThree">convertTwoToThree</a></td> +<td>Public method to convert a two character language code to a thre character code.</td> +</tr> +<tr> +<td><a href="#TranslatorLanguagesDb.getAllLanguages">getAllLanguages</a></td> +<td>Public method to get a list of the supported language codes.</td> +</tr> +<tr> +<td><a href="#TranslatorLanguagesDb.getLanguage">getLanguage</a></td> +<td>Public method to get a translated language.</td> +</tr> +<tr> +<td><a href="#TranslatorLanguagesDb.getLanguageIcon">getLanguageIcon</a></td> +<td>Public method to get a language icon.</td> +</tr> +</table> +<h3>Static Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> + +<a NAME="TranslatorLanguagesDb.__init__" ID="TranslatorLanguagesDb.__init__"></a> +<h4>TranslatorLanguagesDb (Constructor)</h4> +<b>TranslatorLanguagesDb</b>(<i>parent=None</i>) + +<p> + Constructor +</p> +<dl> + +<dt><i>parent</i></dt> +<dd> +reference to the parent object (QObject) +</dd> +</dl> +<a NAME="TranslatorLanguagesDb.convertTwoToThree" ID="TranslatorLanguagesDb.convertTwoToThree"></a> +<h4>TranslatorLanguagesDb.convertTwoToThree</h4> +<b>convertTwoToThree</b>(<i>code</i>) + +<p> + Public method to convert a two character language code to a + thre character code. +</p> +<dl> + +<dt><i>code</i></dt> +<dd> +two character language code (string) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +three character language code (string) +</dd> +</dl> +<a NAME="TranslatorLanguagesDb.getAllLanguages" ID="TranslatorLanguagesDb.getAllLanguages"></a> +<h4>TranslatorLanguagesDb.getAllLanguages</h4> +<b>getAllLanguages</b>(<i></i>) + +<p> + Public method to get a list of the supported language codes. +</p> +<dl> +<dt>Return:</dt> +<dd> +list of supported language codes (list of string) +</dd> +</dl> +<a NAME="TranslatorLanguagesDb.getLanguage" ID="TranslatorLanguagesDb.getLanguage"></a> +<h4>TranslatorLanguagesDb.getLanguage</h4> +<b>getLanguage</b>(<i>code</i>) + +<p> + Public method to get a translated language. +</p> +<dl> + +<dt><i>code</i></dt> +<dd> +language code (string) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +translated language (string) +</dd> +</dl> +<a NAME="TranslatorLanguagesDb.getLanguageIcon" ID="TranslatorLanguagesDb.getLanguageIcon"></a> +<h4>TranslatorLanguagesDb.getLanguageIcon</h4> +<b>getLanguageIcon</b>(<i>code</i>) + +<p> + Public method to get a language icon. +</p> +<dl> + +<dt><i>code</i></dt> +<dd> +language code (string) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +language icon (QIcon) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file