Skip to content
컴퓨터잡담
2010.02.01 08:08

구글의 Ajax 다국어 번역 API

조회 수 15645 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

구글의 Ajax 다국어 번역 API






<script type="text/javascript" src="http://www.google.com/jsapi"></script>
스크립트 불러오시고

google.load("language", "1");
이 한줄 실행 한 뒤에


google.language.translate("Hello world", "en", "es", function(result)
{
  if (!result.error)
  {
    var container = document.getElementById("translation");
    container.innerHTML = result.translation;
  }
});
이렇게 사용하면 된답니다.


넘겨줄 인자는 google.language.translate("번역할 글", "번역대상언어", "번역후언어", 처리용 함수); 이구요
번역대상언어를 "" 이렇게 비워두시면 자동으로 detect해서 번역합니다.


일정 길이 이상 넘어가면 번역이 되는군요.

품질이 그다지 뛰어나지는 않지만 재미는 있네요.

TAG •
로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
77 AutoHotKey autohotkey)매월 1일의 요일 구하기 1 2013.01.27 15303
76 AutoHotKey autohotkey) 화면보호기, 바탕화면 control 창 열기 3 2012.03.17 8374
75 AutoHotKey Autohotkey) 화면보호기(ScreenSaver) On/Off 방법 17 2012.03.16 40753
74 AutoHotKey autohotkey) 화면보호기 실행 전 클릭으로 화면보호 안걸리게 하기 2012.03.15 8896
73 AutoHotKey autohotkey) 핑테스트 프로그램 1 file 2011.12.31 18963
72 AutoHotKey autohotkey) 편입 변수 4 2012.03.13 28934
71 AutoHotKey autohotkey) 파일리스트 가져오기 3 2012.11.26 15079
70 AutoHotKey autohotkey) 윈도우 ahk_id 추출하기 2 2012.03.06 30118
69 AutoHotKey autohotkey) 웹페이지의 프레임 내용보기 & 클릭하기 2011.11.29 15164
68 AutoHotKey autohotkey) 오토핫키에서 자주쓰는 함수모음 2013.10.30 33753
67 AutoHotKey autohotkey) 스크린세이버 활성화 / 비활성화 시키기. 2012.03.17 8069
66 AutoHotKey autohotkey) 맥어드레스 추출 2 2011.12.21 15097
65 AutoHotKey autohotkey) 런처시스템 3 2012.05.30 14314
64 AutoHotKey autohotkey) 네 코드를 보여, 내가 당신에게서 배우고 싶어요 1 2012.01.08 15149
63 AutoHotKey autohotkey) WinSpector spy를 이용한 post,sendmessage Control ID 추출하기 3 file 2012.02.22 10921
62 AutoHotKey autohotkey) Virus? 6 2011.12.31 34691
61 AutoHotKey autohotkey) postmessage mouse control 13 2012.02.22 28653
60 AutoHotKey autohotkey) Mutex에 대해서 1 4 2011.12.31 24203
59 AutoHotKey autohotkey) IPv6 모두 사용안함 설정하기 1 file 2011.12.30 19145
58 AutoHotKey Autohotkey) Find WM_COMMAND parameter with Winspector 17 2012.02.22 35919
Board Pagination Prev 1 ... 41 42 43 44 45 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소