Ask Experts Questions for FREE Help !
Ask
    ratu's Avatar
    ratu Posts: 2, Reputation: 1
    New Member
     
    #1

    Apr 22, 2008, 11:30 AM
    Translation
    The ques is, I have to translate a sentence into french and german.
    the followings are been stored in a text file

    yes, oui, ja
    ism, est, ist
    .
    .
    .and the list goes on.

    I try to code this.

    Do Until File.Peek = -1

    Rec = File.ReadLine
    translate = Rec.Split(", ")

    If translate(0) = txtEnglish.Text Then
    lblFrench.Text = "French translation : " & translate(1)
    lblGerman.Text = "German translation : " & translate(2)
    End If

    Loop

    but I can only detect one word translation.
    If I keyed in Yes
    French Translation : oui
    German Translation : ja

    The ques want me to allow sentences to be translated. How can I improve my coding?
    Someone help me. :(
    melondotnet's Avatar
    melondotnet Posts: 23, Reputation: 1
    New Member
     
    #2

    Apr 28, 2008, 12:24 PM
    You will need to loop through individual words, which should be easy with the .spilt method.

    I am assuming something rather like this:

    Words = txtEnglish.Text.Split(" ")

    Now loop through each word, with your current loop inside.

    Do.. 'Word Loop

    Do... 'Translation Loop

    Loop

    Loop

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Name translation [ 1 Answers ]

I would like the name ian translating into tamil and sanskrit please

Name translation [ 18 Answers ]

Can somebody translate the name Shikha in sanskrit for me please??

Name translation [ 6 Answers ]

Can somebody please translate the name Shikha into sanskrit for me please?

Need a translation. [ 6 Answers ]

Can someone please tell me what this means? Tu aurais envie de faire l'amour ce soir? Thanks!


View more questions Search