Search notes:

Python library: translators

sudo pip install translators --upgrade
Translate a German sentence to English, using different translation services:
import translators as ts

text    ='Kinder, das Essen wird kalt!'
src     ='de'
dest    ='en'

for translator in ts.translators_pool:
    try:
       print(translator + ': ' + ts.translate_text(text, from_language=src, to_language=dest, translator=translator))
    except Exception as e:
       print(translator + ': ' + str(e))

See also

The Python libraries deep_translator and googletrans.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759561877, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/libraries/translators(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78