1
00:00:01,950 --> 00:00:05,700
If you like human languages, this video might be for you.

2
00:00:06,000 --> 00:00:09,630
We will be translating text from one language to another.

3
00:00:10,140 --> 00:00:17,520
And for this, we will use Google Translate, which is a library based on the Google Translate API.

4
00:00:17,700 --> 00:00:24,600
So from Google Translate bots, you need to install Google Translate at least currently on yet.

5
00:00:25,380 --> 00:00:31,320
And oh, here you need to install Google Translate in your terminal.

6
00:00:33,400 --> 00:00:35,770
Using PIP install Google Translate.

7
00:00:39,920 --> 00:00:44,210
Equal three point one point zero a zero.

8
00:00:44,390 --> 00:00:47,180
So that's the version that is working right now.

9
00:00:47,930 --> 00:00:54,350
The eight indicates it's an awful version, so the official stable version is not currently working.

10
00:00:54,800 --> 00:01:01,020
That's why I'm using this version, but try both to try to keep it stronger with chance without that

11
00:01:01,020 --> 00:01:01,490
support.

12
00:01:02,210 --> 00:01:03,400
If it works, that's OK.

13
00:01:03,410 --> 00:01:08,270
If it doesn't, then try this and that will override the first one.

14
00:01:08,930 --> 00:01:17,040
So from Google Translate import test later, this is a class we need to initialize now.

15
00:01:18,020 --> 00:01:22,130
Translator is the translator with parentheses.

16
00:01:23,990 --> 00:01:33,860
And then a translation variable, which is equal to translator does translate.

17
00:01:35,240 --> 00:01:37,940
And here goes the texts you want to translate.

18
00:01:38,960 --> 00:01:41,830
So let's write all my boy.

19
00:01:42,890 --> 00:01:43,730
That's a question.

20
00:01:44,070 --> 00:01:47,630
It means, well, you'll see what it means in Samoan language.

21
00:01:48,860 --> 00:01:51,080
And what is the destination?

22
00:01:51,920 --> 00:01:52,890
Well, that's right, English.

23
00:01:53,070 --> 00:01:56,240
So even as the abbreviation of English.

24
00:01:57,260 --> 00:02:03,620
So the origin declaration is not needed because Google Translate will automatically detect the language

25
00:02:03,950 --> 00:02:09,770
into the text that this is someone and it will provide its translation in the destination language.

26
00:02:11,960 --> 00:02:15,590
So from that, you need to extract the texts and.

27
00:02:17,430 --> 00:02:21,960
Print out its translation, let it run.

28
00:02:31,230 --> 00:02:37,290
And I did get an error because what Storyful did is it installed the official stable version again,

29
00:02:37,530 --> 00:02:39,300
so I have to go to the shell.

30
00:02:40,570 --> 00:02:47,020
Round the alpha version again and then round this again, and now we get the translation.

31
00:02:48,070 --> 00:02:52,150
So that's the translation in English for that word in someone.

32
00:02:52,750 --> 00:02:54,460
Thank you for this and I'll see you later.

