Home>Network programming tutorial>ASP.NET tutorial

Remotely capture GOOGLE's automatic translation results

Author:Eve Cole Update Time:2009-07-01 16:08:47
)(.+))","$5") '提取我们所要的译文
43            ss = RemoveHTML(ss)                                       '删除HTML
44            ss = ss.substring(3)                                      '删除翻译二字
45            return ss                                                 '函数返回
46    End function
47       
48    在调用china_to_english(texts,languages)需要传两个参数第一个为要译的文字,第二个是要进行相对译的语种代码.
   例:中译英,其第二个参数为:zh-Cn|en
   我导入的命名空间如下:
Imports System
Imports System.Web
Imports System.IO
Imports Microsoft.VisualBasic
Imports System.Web.HttpContext
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Text
Imports System.Text.RegularExpressions
Imports System.Net