Skip to content

Commit

Permalink
translation feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hmangukia committed Aug 21, 2018
1 parent 8b67cc2 commit 64fe1d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion windows/activities.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ NOTE: All the recorded files will be saved on the desktop. Make sure that the fi
* "***get tweets***" Get latest 10 tweets from timeline. For this an app is to be registered at https://apps.twitter.com/ (if confused, have a look at https://spring.io/guides/gs/register-twitter-app/). A new file named "twitterCredentials.py" is to be made in the windows folder. Save the consumer key, consumer secret, access token, access token secret with the names consumer_key, consumer_secret, access_token, access_secret repectively in the "twitterCredentials.py". Speak/type "get tweets" and top 10 tweets will be shown, also when and by whom it was created.
* Get latest 10 tweets done by the user. Speak/type "get my tweets" and top 10 tweets done by the user(you) will be shown with the time when it was tweeted
* You can get a list of everyone you follow from twitter by saying "get list of people I follow on twitter"
* "***translate text***" Say "translate" and then the text you want to translate. For example, say "translate how are you to french" or "translate hallo welt to english"
* "***translate text***" Say "translate" and then the text you want to translate. For example, say "translate how are you to french" or "translate hallo welt to english". (Note: Note: English, Spanish, French, German, Italian and Portuguese are supported)

>In cases where the commands are separated by '/', use any one of the mentioned commands
>For example, use either ***What is your name*** or ***Identify Yourself*** or ***Who are you***. Don't type all of them at once.
Expand Down
2 changes: 1 addition & 1 deletion windows/benji.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def events(frame,put):
id = "de"
elif link[-1] == "italian":
id = "it"
elif link[-1] == "portugese":
elif link[-1] == "portugese" or link[-1] == "portuguese":
id = "pt"
translated = translator.translate(pystring, src=lang, dest=id)
print(translated.text)
Expand Down

0 comments on commit 64fe1d0

Please sign in to comment.