Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
Hello Friends,
after a long time m here.This time I stuck up with the code related to my new work and wants little help.

I am developing one website where I am using google translator for two languages.
Problem is, for my page I have text in English which I wants to show in Marathi at the time of page loading using google translator API's. I have successfully integrated the basic code and its working means showing in Marathi.But it converts only when user press space bar and not at the time of page loading which I want.

Also one more question " Is google translator service is free ?"

Thanks in advance.
Posted
Updated 10-Sep-12 6:48am
v2
Comments
[no name] 10-Sep-12 12:41pm    
"page loading which I want", okay so put your code in the page load event
" Is google translator service is free ?", it used to be but I don't think it is anymore.
Kenneth Haugland 10-Sep-12 12:55pm    
Dont see any changes, do you?
http://translate.google.com/
Can still upload documents and other things. But Microsoft also has an online translator, so if he is really stuck he can just use that....
Sergey Alexandrovich Kryukov 10-Sep-12 15:12pm    
Don't mix translation and simple UI issues you have problem with. Ever heard of separation of concerns? Does everything has to be that convoluted? :-)
--SA
Sergey Alexandrovich Kryukov 10-Sep-12 15:29pm    
I've just found that Marathi in not covered by Google translate. It does it? How did you use it?
--SA
Dhananjay Borde 22-Dec-12 11:48am    
yes it is there, I am using it. :)

Go with Google Translate API[^]
Found this on Google - How to do automatic Google translation on page load?[^]
dhananjay borde wrote:
Also one more question " Is google translator service is free ?"
Here you go
Google Translate API pricing[^]
Google Translate API FAQ[^]
 
Share this answer
 
Google Translate API is presently available at some price. Please see this page and read about pricing:
https://developers.google.com/translate/[^].

Besides, I think I saw some Google statement about possible deprecation of this service. I don't really know exact status of it, but as you are apparently interested more in it, you can do your search and find out.

Anyway, the translation Web page is there: http://translate.google.com/[^].

Why am I even talking about it? Because you could still use the Web page in your program instead of the service, using the well-known method of Web scraping:
http://en.wikipedia.org/wiki/Web_scraping[^].

You can find some more detail on how to do it in my past answers:
get specific data from web page[^],
How to get the data from another site[^].

As to your problem about blank space, it looks like you have designed your own UI feature and now asking about how to not use it. Anyway, with Google translate Web page, you can pass a phrase to translate as a part of UI; then it requires no interactive input. It's enough to do any translation manually to see how the URL looks. Of course, if you use Web scraping technique, you will hide all detail of interaction between your code and the Google page from your final user.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900