Ups I thought I had already answered a few hours ago…
The translator I want to make is fairly simple. I don’t intend to give “complicated” stuff like two words at once.
It should just give you some possible translations of a word (don't Need to be all). As @Alberth said accurate translation is difficult and for a hobby project totally out of reach.
My problem at the moment is mostly on getting the data for translation. I need word and translation somehow arranged in a way that a program can read it easily from a file (most likely a .txt) for example as I showed in the main comment. But I didn’t find such a datasheet on the internet so I will have to make one by myself.
What I was able to find however is a list with vocabulary from a language (English and German, there are more on the internet but translating eng -> de and back is more than enough). For example for German I found a list with around 200.000 words (without inflections, plurals, etc…) and a list with around 600.000 words (with inflections, plurals, etc…). But I need to translate them in such a way that the order of translations is the same as the original words. To order them is not the problem but translation itself.
To translate 200.000 words by yourself is way too long, so I thought writing a program that does that is way easier. The words within the text-files are arranged with one word per line and without anything else (no space or similar). So I can easily read them with a stream reader. Furthermore I thought that I could somehow use Google translator to get the translations as this translator already has a big “vocabulary” for translation.
I’ve played a bit with Google Translator and found out two things that help me a lot (which however might seem obvious for you):
-The text that needs to be translated is written within the url → so I can build the url myself in order to insert the word I need to translate
-I found where the translations are saved within the .html so I can read these easily from that.
Now my problem however is that I don’t know how to access the .html for the corresponding urls.
I tried Curl but the “easy” methods don’t work. I get the error message LNK2019 in Visual Studio 2019 and can’t seem to fix it. I looked into easy.h where they are also used and even there VS sais that it can’t find any method called like this.