Google Transliteration API: How to take the input & save the output in a text file?

1,434 views
Skip to first unread message

Daisy

unread,
Mar 16, 2011, 4:38:02 AM3/16/11
to Google AJAX APIs
Greetings All;

I need to use google translitrate api in a java application.

What I have done till now is to import the sample in the library "gwt-
language-1.1.0" that called "hellolanguage" in the netbeans, then I
added the required libraries/jars.

It worked fine like this demo:
http://gwt.google.com/samples/hellolanguage-1.1.0/HelloLanguage.html
but on my localhost.

what I want to do is to transliterate data from "inputfile.txt" for
example and put the output in an "outputfile.txt".

I don't know how to implement this idea?

I'll be glad if you help me.

Best regards;

jimmy romanticdevil

unread,
Mar 16, 2011, 5:23:25 AM3/16/11
to google-ajax...@googlegroups.com
Helo desy i just want give solution of your problem ....try to look this http://www.cstutoringcenter.com/tutorials/java/java11.php
:) ..good luck

Daisy

unread,
Mar 16, 2011, 5:49:25 AM3/16/11
to Google AJAX APIs
Thank you jimmy;
Bout Do you know how to implement it inside the demo?
I am a bit new to java and to this api, I know the concepts but
actually I don't know how to implement it inside the sample code that
google offers.

On Mar 16, 11:23 am, jimmy romanticdevil

jimmy romanticdevil

unread,
Mar 16, 2011, 6:02:06 AM3/16/11
to google-ajax...@googlegroups.com
ok maybe if you want we can try to implement together :) I am new in Java too ...also..i know the consep n algorthm...
i have build app with this Api but in python language http://code.google.com/p/python-google-translator/
if you want implemen with me just PM me ... :)

Jeremy Geerdes

unread,
Mar 16, 2011, 8:53:05 AM3/16/11
to google-ajax...@googlegroups.com
Just a warning: the Translitaration API is not licensed for use outside of the Google-provided Javascript library. This means that it is ILLEGAL to utilize it from a Java, PHP, or other application directly without embedding a web browser and jumping through a pile of hoops.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

--
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To post to this group, send email to google-ajax...@googlegroups.com.
To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.

Daisy

unread,
Mar 16, 2011, 9:07:54 AM3/16/11
to Google AJAX APIs
@Jeremy:

Sorry, but I don't get your point. I am afraid that I didn't
understand your statement of ILLEGAL Utilizing.

On Mar 16, 2:53 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Just a warning: the Translitaration API is not licensed for use outside of the Google-provided Javascript library. This means that it is ILLEGAL to utilize it from a Java, PHP, or other application directly without embedding a web browser and jumping through a pile of hoops.
>
> Jeremy R. Geerdes
> Generally Cool Guy
> Des Moines, IA
>
> For more information or a project quote:
> jrgeer...@gmail.com
>
> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
>
> On Mar 16, 2011, at 5:02 AM, jimmy romanticdevil wrote:
>
> > ok maybe if you want we can try to implement together :) I am new in Java too ...also..i know the consep n algorthm...
> > i have build app with this Api but in python languagehttp://code.google.com/p/python-google-translator/

jimmy romanticdevil

unread,
Mar 16, 2011, 9:28:51 AM3/16/11
to google-ajax...@googlegroups.com
i am sorry ...so the mean we can't using this api key for we apps ??  what do you mean ?? i don't understand ...
are this is ilegal http://code.google.com/p/python-google-translator/ ...i have to build it ..

jimmy romanticdevil

unread,
Mar 16, 2011, 9:43:34 AM3/16/11
to google-ajax...@googlegroups.com
i am sory ..i new know that ....thanks for warning ...but we will just use this api key http://ajax.googleapis.com/ajax/services/language/translate?

Adam Feldman

unread,
Mar 17, 2011, 9:01:01 AM3/17/11
to google-ajax...@googlegroups.com
Hi folks,

I just wanted to clarify to help reduce confusion on this thread.  There are separate APIs for Translate and Transliterate.  The former (Translate) has a low-level RESTful API that can be used to interact with the service, but the latter (Transliterate) only has a documented JavaScript interface.

As Jeremy pointed out, it is only permissible to use APIs through the documented interface.  You can find the documentation for both APIs here:

Also, be sure to read the entire Terms of Service for whichever API you chose to use (there's a link to "Terms" in the upper right of the docs page for each API.

I hope this helps clarify things.

Thanks,
Adam

Daisy

unread,
Mar 17, 2011, 10:00:52 AM3/17/11
to Google AJAX APIs
Sorry, but there is something that is hard to me to understand it. So
please bear me.

What is the problem to use the transliteration API in a java desktop
application or even web application. Just I want to use the api with
all the copy right to google.

And if it is a problem? what is it? and how to use the api? what is
the rules?

Please it is very important to me to know the answers of the above
questions.

Adam Feldman

unread,
Mar 17, 2011, 10:03:45 AM3/17/11
to google-ajax...@googlegroups.com
Hello,

You can use the Transliterate API in accordance with the documentation, found here:

Cheers,
Adam

Reply all
Reply to author
Forward
0 new messages