News

Log In Sponsors
Partner Sites
Do you have a blog? see SEO Blog for seo input

All authentic leather handbags



Re: English to French/German translator



I'm rubbish without language which aren't computer language so this is just a rough thing. Also I have very limited understanding of Visual Basic, but still. Urm, I think I understand. The way I would do it is make 3 arrays, an array for each language. Also create string for well the input of the wanted translated text and one for the finished text. You will need another string for the word of which you are translating. Then setup a loop so that it searches your string adding each letter it comes to until it finds a space/period(remember not to add the space to your working word string, yet skip the space that it has to just found) and end string. In the loop I would make it add a clause of which if the current thing its looking at it a period, end the loop and add a period & NULL to the finishedstring Then have an INT for the loop, and each time the loop loops tell it compare against EnglishArray(int) until it finds the word its looking for, and then depending on which language you want to translate to you would tell it to go to e.g. FrenchArray(int) and put into 'FinishString' and also add a space unless its the end. very rough but should give you a good idea of what to do.

Click here to read the whole forum topic