冒险解谜游戏中文网 ChinaAVG

标题: Google Translate API for .NET [打印本页]

作者: shane007    时间: 2010-5-21 22:16
标题: Google Translate API for .NET
原文 ) T' G. K+ R3 L0 j
http://iron9light.wordpress.com/2008/06/03/google-translate-api-for-net-01-release/ 5 p) ^1 |1 v8 q! Q+ U% J
http://code.google.com/p/google-api-for-dotnet/ 8 A9 g5 d2 @7 x* m/ j/ ^
: X# \: b& f0 a# L1 q
很不错的自制API,好像是国人开发的。
1 j4 e; x6 B4 p0 D7 i
9 x6 y. ^/ D( EUpdate 1Google Translate API for .NET updated to 0.1.1 6 ]5 d2 x& K4 G: l
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
8 r) V% H- m7 D. c2 N: U( p3 N3 O$ W% E: R% V2 T1 ~
6 ]8 B; f* l' ~7 B" D; C
% v) s& s6 Z3 c; R; H/ F. Q

" H4 G; H7 w% \/ c: q" f* E
7 y0 p: W6 i; W' E, r; n% |+ {: V! X' u3 Q5 w
' ]0 H! k" v3 H6 o
' U0 z: d" c0 @! m( m
1 ?* V  v. c) }! C: j7 n, m
) C* ~3 G6 c; ]; y5 Y3 _- G

3 b7 N0 R, G8 S) z% V9 g& G( n  i* r$ N! M( @; h

! b" D& e1 u  C1 n( V4 f) b/ J2 x( K5 H% \) T1 Y* @% t) W
$ i  G3 E% ]1 Z# U9 I+ G

8 g8 S( I# o: J
$ `& F* e8 p# ]$ A2 K; l4 s, u
3 M9 ?3 Q# k( \! V$ @4 n9 [
3 V3 T# {3 _9 I5 T5 V0 c) e0 }; n/ r# R: Q4 J9 {3 e( s
. [* e  m; s( H: L6 ?

! H$ C; C+ c6 K5 d6 m( k
+ Z4 N. I* \  V' W9 tprint? 0 f3 w9 B  K& O
  {5 m$ \- t7 i
01class Example

! w* F& Q' a$ x3 G& G
02{

: y0 T+ h. ~& g; n
03    public static void Main()
9 j) ?5 `" y8 t
04    {
. [& Z8 r) K% A! Q. c
05        string text = "我喜欢跑步。";
5 Z# u. n. d* S/ a( ?
06        string translated = Translator.Translate(text, Language.Chinese_Simplified, Language.English);

' v' f' f. W/ d' A# P- P5 x8 X
07        Console.WriteLine(translated);

  S7 K3 Y3 S0 v2 n% s
08        // I like running.
, `5 ?% k5 N# X+ s+ H4 c# g2 [+ ]
09    }

+ K% l, p1 a6 C# W, y
10}
* _6 _- S  z5 {  P. @  M9 J
7 ~! s$ W. g3 ^8 O7 j$ E4 s2 P
0 j+ U  _" g' b9 F
More result: 7 k4 G+ S7 d+ u0 s2 x
Arabicصور اداة ترجمة.
BulgarianGoogle превежда инструмент.
Chinese SimplifiedGoogle翻译工具。
Chinese TraditionalGoogle翻譯工具。
CroatianGoogle Translate tool.
CzechGoogle přeloží nástroje.
DanishGoogle oversætter værktøj.
DutchGoogle vertalen tool.
EnglishGoogle translate tool.
FinnishGoogle kääntää työkalu.
FrenchOutil de traduction Google.
GermanGoogle Translate-Tool.
GreekGoogle μεταφράζει εργαλείο.
HindiGoogle अनुवाद उपकरण है .
ItalianGoogle Translate strumento.
JapaneseGoogle翻訳ツールを使用します。
Korean구글 번역 도구를합니다.
NorwegianGoogle Translate.
PolishNarzędzie Google tłumaczyć.
PortugueseTraduz Google ferramenta.
RomanianGoogle traduce instrument.
RussianGoogle переводит инструмент.
SpanishTraductor Google herramienta.
SwedishGoogle översätter verktyg
[pre]You can download here:GoogleTranslateAPI_0.1.zip [/pre] ' u: Z* l0 A: p/ _
Tags: .NET, API, Google, language,




欢迎光临 冒险解谜游戏中文网 ChinaAVG (https://chinaavg.com/) Powered by Discuz! X3.2