Dim temp As Translator
            Using sr As IO.StreamReader = New IO.StreamReader("text.dll")
                For i As Integer = 0 To 15
                    trans(i).english = sr.ReadLine
                    trans(i).arabic = sr.ReadLine
                Next
                For i As Integer = 1 To 15
                    For j As Integer = 1 To 16 - i
                        If trans(j - 1).english > trans(j).english Then
                            temp = trans(j - 1)
                            trans(j - 1) = trans(j)
                            trans(j) = temp

                        End If
                    Next
                Next
                Do While (True)
                    Dim line As String = sr.ReadLine
                    If line Is Nothing Then
                        Exit Do
                    End If
                    Dim words As String() = line.Split("|")
                    Dim word As String
                    For Each word In words
                        If word = TextBox1.Text Then
                            TextBox2.Text = words(+1)
                        End If
                    Next
                Loop
            End Using

Edited 2 Years Ago by danyalempire

I put these words but used only single words, not sentences .. I want to use it for sentences
Such as
الذهاب إلى المدرسة = go to school

You got to have a translator that knows the gramar of both languages(e.g. Arab and English) That is very, very hard to do.

If it is only a matter of dictionary it is easy : الذهاب = go.
What about goes, going, went? All forms of go you won't find in a dictionary.

Not to mention idioms. How do you translate "have a ball" into another language and have it mean the same thing? There's a big difference between knowing the words, knowing the language and knowing the culture. There's an old Dutch (according to my dad) expression, "he landed with his a$$ in the butter". I would guess this is untranslatable (at least so that it makes sense) by any software.

Edited 2 Years Ago by Reverend Jim

Comments
LOL :)

We still use "he fell with his a$$ in the butter". Although not so often.
It is said of a person who married a rich, beautiful wife; has a well paid job and just won the lottery etc. Must indeed sound strange if you try to translate that in Arab or any other language.

Edited 2 Years Ago by ddanbe: addition

Reverend Jim $ ddanbe it's ok i want to do it because i want it for another lang !

Even google translate isn't always correct? but thebest you can find I guess.
Translating is soooo difficult.

This article has been dead for over six months. Start a new discussion instead.