COMPUTER SCIENCE CAFÉ
  • FOUNDATION YEARS
  • GCSE
  • IB
  • A LEVEL
  • LEARN TO CODE
  • CHALLENGES
  • ROBOTICS ENGINEERING
  • MORE
    • CLASS PROJECTS
    • Classroom Discussions
    • Useful Links
    • SUBSCRIBE
    • ABOUT US
    • CONTACT US
  • FOUNDATION YEARS
  • GCSE
  • IB
  • A LEVEL
  • LEARN TO CODE
  • CHALLENGES
  • ROBOTICS ENGINEERING
  • MORE
    • CLASS PROJECTS
    • Classroom Discussions
    • Useful Links
    • SUBSCRIBE
    • ABOUT US
    • CONTACT US
Picture
PYTHON LANGUAGE TRANSLATION
This section covers lots of various pieces of coding that can be put together to create your project. With a guidance video on each and you are free to copy and use the code for your personal use. In this section.
Using a google add-in to translate your python output or user input to another language. Loads of languages are available, it is ready simple to code, it works well and is just a few lines of code.

YOU NEED TO INSTALL GOOGLETRANS
INSTALL - From the command prompt or Terminal

pip install googletrans==3.1.0a0

NOTE: If this version changes your code might not work, check online for up to date version if needed.
To view the list of languages available, simply do the following:

import googletrans
print(googletrans.LANGUAGES)

    
Make your program even smarter by letting the user choose the language that they view your program. Watch the video and feel free to copy the code from below.

    
Please feel free to copy and paste the code from above. 
Picture
SUGGESTIONS
We would love to hear from you
SUBSCRIBE 
To enjoy more benefits
We hope you find this site useful. If you notice any errors or would like to contribute material then please contact us.