So, I'm bored... decided I would post and share this with my lovelies at SF.
First, you will need the Google API library and a Google API key. Both are easy to get.
Google API Library - get the newest version (right now it's 0.4 alpha)
Google API key - You will need a google account. Once logged in to the API console, activate the Translate API project. To get your key, click API access on the left menu. After that page loads you will see it near the bottom.
Code:
Click here to see the code:
http://tech.reboot.pro/showthread.php?tid=12
The first example shows a conversion from English to Spanish.
The second example shows a conversion while letting google translate detect the initial language, then translating it to Spanish.
Enjoy.
Controls(w/ Names):
(Edit: images have been removed due to lack of hosting, visit TechLifeForum.net for the images/code)
First, you will need the Google API library and a Google API key. Both are easy to get.
Google API Library - get the newest version (right now it's 0.4 alpha)
Google API key - You will need a google account. Once logged in to the API console, activate the Translate API project. To get your key, click API access on the left menu. After that page loads you will see it near the bottom.
Code:
Click here to see the code:
http://tech.reboot.pro/showthread.php?tid=12
The first example shows a conversion from English to Spanish.
The second example shows a conversion while letting google translate detect the initial language, then translating it to Spanish.
Enjoy.
Controls(w/ Names):
(Edit: images have been removed due to lack of hosting, visit TechLifeForum.net for the images/code)
I code at http://tech.reboot.pro