?
Solved

Php - the new google translation API

Posted on 2011-10-09
2
Medium Priority
?
298 Views
Last Modified: 2012-05-12
Hi E's, recently google changes the translation API, now we have to pay to have access to that API. The payment not was the problem, I think is $20 to 1 million characters. My problem is the new version of the API is very poor in php examples.
I have now the key that google gives me, but I don't know what is the code for substitute the example in snippet code:
require("GTranslate.php");
 try{
   $gt = new Gtranslate;
    echo "Translating [Hello World] from English to German =>".$gt->english_to_german("hello world")."";
 
 } catch (GTranslateException $ge) {
    echo $ge->getMessage();
 }

Open in new window

Maybe any expert have the same problem of me, and can help me.

I need a simple example for substitute the old code, can you help?

The best regards, JC
0
Comment
Question by:Pedro Chagas
2 Comments
 
LVL 11

Accepted Solution

by:
f_o_o_k_y earned 2000 total points
ID: 36940834
Hi I think this is what you are looking for:
http://abbashatif.wordpress.com/2010/11/28/how-to-use-google-translate-api-with-php/

Best Regards
FooKy
0
 
LVL 3

Author Comment

by:Pedro Chagas
ID: 36941430
Hi @f_o_o_k_y, I thing that was a good example, I will test later in my home (I'm on my mobile phone).
~JC
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question