Friday, December 17

My MultilanguageTranslator...



______________________________________
Add two file in your reference...
1. GoogleTranslateAPI.dll
2. Newtonsoft.Json.dll
______________________________________
Public Class Translator

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If Me.TextBox1.Text = String.Empty Then Return
Me.TextBox2.Text = ""
Dim a As String = ComboBox1.Text
Dim translator As New Google.API.Translate.TranslateClient("")
Me.TextBox2.Text = translator.TranslateAndDetect(Me.TextBox1.Text, Me.ComboBox1.Text.Substring(0, 2), "")
Catch ex As Exception
End Try
End Sub
End Class
_______________
fr (french)
af (Afrikaans)
sq (Albanian)
am (Amharic)
ar (Arabic)
hy (Armenian)
hi (Hindi)
en (English)
az (Azerbaijani)
eu (Basque)
be (Belarusian)
bn (bengali)
bh (Bihari)
br (Breton)
bg (Bulgarian)
my (Burmese)
ca (Catalan)
chr (Cherokee)
zh (chinese)
zh-CN (Chinese_Simplified)
zh-TW (Chinese_Traditional)
co (Corsian)
hr (Croatian)
cs (CZech)
da (Danish)
dv (Dhivehi)
nl (Dutch)
en (English)
eo (Esperanto)
et (Estonian)
fo (Faroese)
tl (Filipino)
fi (Finnish)
fy (Frisian)
gl (Galjcjan)
ka (Georgian)
de (German)
el (Greek)
gu (Gujarati)
ht (Haitian_Creole)
iw (hebrew)
hu (hungarian)
is (Icelandic)
id (Indonesian)
iu (Inuktitut)
ga (Irish)
it (Italian)
ja (japanese)
jw (Javanese)
kn (Kannada)
kk (Kazakh)
km (khmer)
ko (korean)
ku (kurdish)
ky (kyrgyz)
lo (lao)
la (latin)
lv (latvian)
lt (lithuanian)
lb (luxembourgish)
ml (macedonian)
ms (malay)
ml (malayalam)
mt (maltese)
mi (maori)
mr (marathi)
mn (mongolian)
ne (Nepali)
no (Norwegian)
oc (Occitan)
or (Oriya)
ps (Pashto)
fa (persian)
pl (Polish)
pt (portuguese)
pa (punjabi)
qu (Quechua)
ro (romanian)
ru (Russian)
sa (Sanskrit)
gd (Scots_Gaelic)
sr (Serbian)
sd (Sindhi)
si (sinhalese)
sk (Slovak)
sl (Slovenian)
es (spanish)
su (Sundanese)
sw (Swahili)
sv (Swedish)
syr (syriac)
tg (Tajik)
ta (Tamil)
tt (Tatar)
te (telugu)
thai (th)
bo (Tibetan)
Tonga (to)
tr (Turkish)
uk (Ukrainian)
ur (urdu)
uz (uzbek)
ug (uighur)
vi (vietnamese)
cy (Welsh)
yi (Yiddish)
yo (yoruba)

1 comment:

Jitesh Sachdeva said...

You are just calling API of Google translator.