原文 1 a5 ]7 w/ s3 ~/ q( b
http://iron9light.wordpress.com/2008/06/03/google-translate-api-for-net-01-release/
5 t8 F- F* @0 Y( }$ L5 jhttp://code.google.com/p/google-api-for-dotnet/ 5 X6 V) Z8 _) ]' ^" V( T) a( H
( \5 m6 w, q% M( X- b
很不错的自制API,好像是国人开发的。
P7 R5 z: _( Z4 K5 F9 B5 E! Y- K8 H. j
% @$ e( F3 W0 n( N% ^5 YUpdate 1Google Translate API for .NET updated to 0.1.1
7 W1 r5 c* | }: r8 w[li]Add more languages. [/li][li]Fixed some bugs. [/li] Download: GoogleTranslateAPI_0.1.1.zipNow this project is a part of the Google APIs for .NET which include more Google APIs such as Search API etc.I will never update here anymore.You can get the latest source code and released files at the Google APIs for .NET.I’ve just released an updated CLS compatible version of Google Translated API there.GoogleTranslateAPI_0.1.zip (CLS compatible version)—————————————–It’s my first Open Source project.http://code.google.com/p/google-language-api-for-dotnet/Provides a simple, unofficial, .NET Framework API for using Google Translate.Support 20+ languages.It can translate text or html format, and can detect the language of the given text.Now implement all the function that google has launched.Example :view source
1 d( F V6 h- |0 _* l
% H: c+ w) d6 [% d
4 ?; C+ \2 C; y/ h' f" r' P* z* q6 Z T/ ]+ O) j
1 o% w9 r h3 Y q% I/ `
& L, Z/ q; V5 D6 Z$ N. W6 D+ O9 \& o1 M& T3 L2 ^
1 ^5 Q) Z6 h4 {! p9 j# a+ F7 L3 r- h. v; j+ r+ V
' M: r0 f+ o) G. D; P% p w/ M* Q7 h" N: H
7 p. }& m1 j# i3 n5 U6 A5 s6 Q7 m1 M$ U
0 t1 f$ {: E7 \( n; b
' \! k3 k' k6 z# v- T- O6 }& O+ [" L* w
" a6 J. B# v9 H l% j
& U3 b1 h+ y2 i1 T) v' m
) I! O7 l1 f( J M% W1 x
. Y9 N9 E& g+ r2 G/ t$ r Z1 l z9 I3 v# H7 ]
6 @$ N" c& T$ ^
' Y; d2 T5 x$ i! d; b) r* N# I; f4 a! a2 C) P- m5 F2 ~& [
print?
1 i# ~5 y! `2 H# k& _0 N8 p6 r: ^4 d0 i
' b& v9 V% [8 G7 J) X, n2 Q
% x8 H6 t9 _' y$ j9 m6 ?8 V03 | public static void Main() |
3 A* r# }; F: J( W7 l
& c. I- p1 s5 b% v& r, X- u05 | string text = "我喜欢跑步。"; |
. U( L) _. s) J% W% q- o06 | string translated = Translator.Translate(text, Language.Chinese_Simplified, Language.English); |
) m% A" T8 r& C) a8 c% n07 | Console.WriteLine(translated); |
$ Z! p( X& H: E, W4 s- T& W" Z1 s) P, B, M
/ u9 Z" }* u& l+ H' U" {$ y
8 o, Q) h% Y2 i" c6 Z' ~+ g
: @: r0 u7 |) M4 @
2 m3 U& X1 x$ \4 | \% f; I
More result:
; {- C6 z2 e6 q7 c mArabic | صور اداة ترجمة. | Bulgarian | Google превежда инструмент. | Chinese Simplified | Google翻译工具。 | Chinese Traditional | Google翻譯工具。 | Croatian | Google Translate tool. | Czech | Google přeloží nástroje. | Danish | Google oversætter værktøj. | Dutch | Google vertalen tool. | English | Google translate tool. | Finnish | Google kääntää työkalu. | French | Outil de traduction Google. | German | Google Translate-Tool. | Greek | Google μεταφράζει εργαλείο. | Hindi | Google अनुवाद उपकरण है . | Italian | Google Translate strumento. | Japanese | Google翻訳ツールを使用します。 | Korean | 구글 번역 도구를합니다. | Norwegian | Google Translate. | Polish | Narzędzie Google tłumaczyć. | Portuguese | Traduz Google ferramenta. | Romanian | Google traduce instrument. | Russian | Google переводит инструмент. | Spanish | Traductor Google herramienta. | Swedish | Google översätter verktyg | [pre]You can download here:GoogleTranslateAPI_0.1.zip [/pre]
/ W- H0 L" T! Q. C/ ]Tags: .NET, API, Google, language, |