原文
# A/ h4 A8 @- [9 I% Shttp://iron9light.wordpress.com/2008/06/03/google-translate-api-for-net-01-release/
; l! q0 N1 S4 T4 G/ ~% khttp://code.google.com/p/google-api-for-dotnet/ 9 i* R! i, N$ U* x/ R# F, _' c
5 R' v* D8 D6 u: u
很不错的自制API,好像是国人开发的。 + |2 L( K9 O* [
6 t! q; U- U& B$ ^
Update 1Google Translate API for .NET updated to 0.1.1 y# L" C' l8 S' h5 [+ g' i2 j
[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 ! X) t! I3 H5 _' L- q7 {
; A. c/ c! w9 v B9 d S8 `+ R {
/ I+ }. \8 s% [7 w0 m5 O" @/ c. D* A) A$ q& t) ~
. s. u, N: m& n# S& S* E1 \$ W2 J7 y
9 L; g) I7 `& |8 X
, Z6 i! \2 K' e8 a$ n! R, M9 v2 f/ x3 n! J4 C
: i+ q9 Y& i- B( I$ b. g$ c' k: G
# b$ }+ O/ S* @4 C! V6 w: ^! F0 J4 |, h6 N5 ^$ W
1 U1 V: A0 O7 ~0 W$ z
D0 l+ j f5 e7 m( o
& g1 R% ]2 o( ~: C) h" t1 m
3 g! j8 f1 F5 B# G; ^/ p( a3 n, j/ k# O
) r c/ H% X; m+ h: P; M* Y$ E( J& |) g0 q) t$ n
/ w# O, y, _4 |) r4 u
# e; Z# f! | u
: E4 Q/ \' d% O- u3 {" }0 r3 _3 j! ]) ]
7 X; b8 x& P0 W1 J" [9 j( oprint? - [* ^8 R* s$ Z. l
4 D/ t4 @" |) ]2 A& k, a
2 ^1 I2 d! a9 E1 M
9 P1 k5 b# c$ e/ P
03 | public static void Main() |
5 K. ^$ {) ?, k5 o6 m4 r: W0 T5 l$ t5 H- L2 q* V! d
05 | string text = "我喜欢跑步。"; | , n5 G6 _. n! z, i3 G1 z7 p; f# D
06 | string translated = Translator.Translate(text, Language.Chinese_Simplified, Language.English); | * V7 i2 K( m* O5 S3 W' T4 |
07 | Console.WriteLine(translated); |
. p+ a8 m! T; L* Z9 B) W; H# f9 s4 u
2 ?. j8 N; E8 x6 R
" m' A+ n, \. y% A- L0 c* U
, e7 f' f# D' B! r4 W
9 v& x' d. n" t. _* C* GMore result: . Z ~4 X2 P* [% | Y# v
Arabic | صور اداة ترجمة. | 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] + h$ c. g8 H& h( Y3 Z% C% M
Tags: .NET, API, Google, language, |