冒险解谜游戏中文网 ChinaAVG

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

作者: shane007    时间: 2010-5-21 22:16
标题: Google Translate API for .NET
原文 ! m3 C: U3 p, ^$ ^8 W5 P7 H! S7 e
http://iron9light.wordpress.com/2008/06/03/google-translate-api-for-net-01-release/
* j& c/ c, Z7 n0 V( I" R1 \http://code.google.com/p/google-api-for-dotnet/ ! ~( Z& W- u  L

& M: X  {/ r9 ?. n  K* Q很不错的自制API,好像是国人开发的。
! N4 A( e4 i; D  e4 \/ \2 a% D- ^! `$ V  _: m6 }8 q5 y: O+ P
Update 1Google Translate API for .NET updated to 0.1.1
  ^6 E+ R2 f1 `" k% V& uDownload: 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 ! e; z3 t( _) z" p: n

3 F' R# a0 N9 c% E2 c( @! A% g" J* ?& F; W
- `' `8 |: }- B1 ?( ~9 d
. E% V3 X/ A0 q* |
! e4 Q. ~) v! u, x
% `. f. @# q7 _
1 z  X, y. ~$ V+ r% W9 g- ~
4 {4 ~; m( e% L8 u3 v/ f* ~" s

8 z. U7 ?4 ]5 }) m9 ?+ X, f8 ^' o' ^  K5 h* \6 t

% P" I/ I  m3 [* v( ]  L6 T  S$ l  N4 }
0 o  u0 N) q( n3 W
* l, Q' a7 K+ u3 ?3 E
# u: n6 _. `5 n

9 [6 w5 {% N' M+ l9 q& J% ]# U2 O6 Q# Z# z# z+ I
) u+ Q5 {& o) I- M; `$ `  ~6 Z: E

2 i0 T& c/ L" G2 X6 X' O( I4 |; [
& P" y9 N: ~9 @, e! `. h* B8 w( v1 G$ U. `: x# A

# I7 X6 i# q" k
  ~. r4 w9 ~. rprint? ' i, c* @3 ^6 G7 _9 b# I, T
1 W6 _$ o4 L8 i1 V
01class Example
1 h$ X9 z/ u9 x
02{

/ y; b- a. @9 J1 p' K' o; K
03    public static void Main()
& [" l# q: D/ m  y
04    {
& v0 s' |6 e1 |
05        string text = "我喜欢跑步。";
: ^& D, Z, e: U
06        string translated = Translator.Translate(text, Language.Chinese_Simplified, Language.English);

/ G* h/ b8 s- u6 x
07        Console.WriteLine(translated);
( k$ E- P3 n5 g0 f! k* ~
08        // I like running.

" w8 T" p8 [! v# ^
09    }

, A3 m4 x( n9 w7 M; b
10}

" g6 d; J3 f/ @  p1 Y% ~' Q6 X" t6 A, Y! \9 C
' j* ~  D7 X& v) w  {  B
More result: ; {; Q( G) `, C" A+ E! ^( @
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]
- l. @7 y% ~2 Z3 G/ VTags: .NET, API, Google, language,




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