<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>code-diesel &#187; translate</title>
	<atom:link href="http://www.codediesel.com/tag/translate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codediesel.com</link>
	<description>/* PHP &#38; MySQL Journal */</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:19:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Google Translation PHP wrapper</title>
		<link>http://www.codediesel.com/php/google-translation-php-wrapper/</link>
		<comments>http://www.codediesel.com/php/google-translation-php-wrapper/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 04:27:20 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/php/google-translation-php-wrapper/</guid>
		<description><![CDATA[php wrapper for the google translation api]]></description>
			<content:encoded><![CDATA[<blockquote><p>
<strong>UPDATE</strong><br />
Google has deprecated its Translation service, hence it will not be available for download anymore.
</p></blockquote>
<p>Google translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. I recently needed to create a WordPress plugin to translate post titles from one language to another. As the translation API is only available for Java and Javascript, I decided to create a quick one for PHP. In this post we will see how to translate text from one language to another in a simple and quick way using the created class.<br />
<span id="more-2497"></span></p>
<h4>Getting the class</h4>
<p>Before we begin you need to get the PHP class from below.</p>
<h4>Testing the class</h4>
<p>The Translation class used cURL to access the Google translation service, so you need to have that installed. A quick way to check if the class is working correctly is to use the &#8216;selfTest&#8217; method of the class.</p>

<div class="wp_codebox"><table><tr id="p24971"><td class="code" id="p2497code1"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'googleTranslate.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">selfTest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Which will print &#8216;Test Ok&#8217; if everything is working fine.</p>
<h4>Translating text</h4>
<p>Once you are sure that the class is working properly, you can use the following simple example to translate a piece of text from one language to another.</p>

<div class="wp_codebox"><table><tr id="p24972"><td class="code" id="p2497code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'googleTranslate.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/* Initialize the class translate class */</span>
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sampleText</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Bonjour de cette partie du monde&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/* translate(string, to_language, from_language) */</span>
<span style="color: #000000; font-weight: bold;">echo</span> <span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">translate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sampleText</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;en&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;fr&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/* This should print 'Hello from this part of the world' */</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The first parameter of the &#8216;translate()&#8217; method takes the text to translate, the second and third parameters take the target language to translate to and the language to translate from, respectively. You can eliminate the third parameter, the language name to translate from, and Google will automatically detect the source language and translate the text. This can be useful if you are not sure of the source language but want to translate and also detect the same. A short example is given below. The following will convert the sample text and also detect the source language (French here).</p>

<div class="wp_codebox"><table><tr id="p24973"><td class="code" id="p2497code3"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'googleTranslate.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$test</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Bonjour de cette partie du monde&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009933; font-style: italic;">/* Convert from English */</span>
<span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">translate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$test</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;en&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">echo</span> <span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDetectedSource</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>Errors during translation</h4>
<p>If the class fails to translate the text for some reason, you can read the error message using the &#8216;getLastError&#8217; method.</p>

<div class="wp_codebox"><table><tr id="p24974"><td class="code" id="p2497code4"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">.</span>
<span style="color: #339933;">.</span>
<span style="color: #000000; font-weight: bold;">echo</span> <span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getLastError</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">.</span></pre></td></tr></table></div>

<p>The class also provides the &#8216;isSuccess&#8217; method to check if the translation was successful.</p>

<div class="wp_codebox"><table><tr id="p24975"><td class="code" id="p2497code5"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/* Was translation successful */</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isSuccess</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">echo</span> <span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getLastError</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h4>Detecting language of a text block</h4>
<p>You can also detect the language of a particular text block as shown below. This can be quite useful if you would like to detect the language of a web page or a block of a chat conversation.</p>

<div class="wp_codebox"><table><tr id="p24976"><td class="code" id="p2497code6"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'googleTranslate.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/* Detect the language of the given text */</span>
<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;For me, it is far better to grasp
        the Universe as it really is than
        to persist in delusion, however
        satisfying and reassuring.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">detectLanguage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>This will output an array with the following response elements:</p>

<div class="wp_codebox"><table><tr id="p24977"><td class="code" id="p2497code7"><pre class="text" style="font-family:monospace;">[language] =&gt; en
[isReliable] =&gt; 1
[confidence] =&gt; 0.7626736</pre></td></tr></table></div>

<p>The first index gives the language code for the given text block. The second index represents a boolean value showing whether or not the detected language code is reliable for the given text. The third and last parameter is a numeric value between 0 &#8211; 1.0 that represents the confidence level in the language detected for the given text.</p>
<h4>Caching</h4>
<p>The class also has the facility to cache the results, so if you post a text for translation and it is already in the cache the cached results will be returned instead of going out to Google for translation, this helps decrease translation time. The cache can be enabled or disabled as below, by default the cache is enabled.</p>

<div class="wp_codebox"><table><tr id="p24978"><td class="code" id="p2497code8"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'googleTranslate.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009933; font-style: italic;">/* Enable the cache */</span>
<span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cacheEnabled</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/* This will disable the cache; by default the cache is enabled */</span>
<span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cacheEnabled</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Make sure that the &#8216;cache&#8217; directory is there in the directory where your php file is located. If you need to locate the &#8216;cache&#8217; directory somewhere different than you can change it in the &#8216;googleTranslate.class.php&#8217; file. Locate the following line in the file, and then change the directory path to the one you want.</p>

<div class="wp_codebox"><table><tr id="p24979"><td class="code" id="p2497code9"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$_cache_directory</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'./cache/'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h4>Setting correct Referer header</h4>
<p>Google requires that you send the referrer header with every request. Although it works without it, it is recommended that you use it. You can add a referrer header as below:</p>

<div class="wp_codebox"><table><tr id="p249710"><td class="code" id="p2497code10"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">.</span>
<span style="color: #339933;">.</span>
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setReferrer</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://www.your_site_name.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">.</span>
<span style="color: #339933;">.</span></pre></td></tr></table></div>

<p>This sends your site name in the &#8216;Referer&#8217; header in the request.</p>
<h4>Passing valid credentials</h4>
<p>Although the class works without you providing a apiKey &#8211; <strong>using a key in your application/site is completely optional</strong>, Google recommends adding your API key and a IP address during the translation request. This helps Google detect valid requests coming from your site and helps it in contacting you in case a need arises. You can signup for the api key <a target="_blank" href="http://code.google.com/apis/ajaxsearch/signup.html">here</a>.</p>
<p>You can pass a API key and a IP address using the following.</p>

<div class="wp_codebox"><table><tr id="p249711"><td class="code" id="p2497code11"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'googleTranslate.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$apiKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;YOUR API KEY&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009933; font-style: italic;">/* Change to your IP address */</span>
<span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;127.0.0.1&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$gt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setCredentials</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$apiKey</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$test</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mon nom est Sameer&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">echo</span> <span style="color: #000088;">$gt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">translate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$test</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;en&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>Passing correct content headers</h4>
<p>Make sure you have the following code at the start of your php code:</p>

<div class="wp_codebox"><table><tr id="p249712"><td class="code" id="p2497code12"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: text/html; charset=utf-8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">.</span>
<span style="color: #339933;">.</span></pre></td></tr></table></div>

<p>or if the page is html, the following in your head tags:</p>

<div class="wp_codebox"><table><tr id="p249713"><td class="code" id="p2497code13"><pre class="html" style="font-family:monospace;">&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;</pre></td></tr></table></div>

<p>Not setting the correct content type will display gibberish characters for Chinese and texts that have special characters.</p>
<h4>Language Codes</h4>
<p>Below is a list of language codes you can use during translation.</p>

<div class="wp_codebox"><table><tr id="p249714"><td class="code" id="p2497code14"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">&quot;af&quot;</span><span style="color: #339933;">-</span>Afrikaans
<span style="color: #0000ff;">&quot;sq&quot;</span><span style="color: #339933;">-</span>Albanian
<span style="color: #0000ff;">&quot;ar&quot;</span><span style="color: #339933;">-</span>Arabic
<span style="color: #0000ff;">&quot;hy&quot;</span><span style="color: #339933;">-</span>Armenian ALPHA
<span style="color: #0000ff;">&quot;az&quot;</span><span style="color: #339933;">-</span>Azerbaijani ALPHA
<span style="color: #0000ff;">&quot;eu&quot;</span><span style="color: #339933;">-</span>Basque ALPHA
<span style="color: #0000ff;">&quot;be&quot;</span><span style="color: #339933;">-</span>Belarusian
<span style="color: #0000ff;">&quot;bg&quot;</span><span style="color: #339933;">-</span>Bulgarian
<span style="color: #0000ff;">&quot;ca&quot;</span><span style="color: #339933;">-</span>Catalan
<span style="color: #0000ff;">&quot;zh-CN&quot;</span><span style="color: #339933;">-</span>Chinese
<span style="color: #0000ff;">&quot;hr&quot;</span><span style="color: #339933;">-</span>Croatian
<span style="color: #0000ff;">&quot;cs&quot;</span><span style="color: #339933;">-</span>Czech
<span style="color: #0000ff;">&quot;da&quot;</span><span style="color: #339933;">-</span>Danish
<span style="color: #0000ff;">&quot;nl&quot;</span><span style="color: #339933;">-</span>Dutch
<span style="color: #0000ff;">&quot;en&quot;</span><span style="color: #339933;">-</span>English
<span style="color: #0000ff;">&quot;et&quot;</span><span style="color: #339933;">-</span>Estonian
<span style="color: #0000ff;">&quot;tl&quot;</span><span style="color: #339933;">-</span>Filipino
<span style="color: #0000ff;">&quot;fi&quot;</span><span style="color: #339933;">-</span>Finnish
<span style="color: #0000ff;">&quot;fr&quot;</span><span style="color: #339933;">-</span>French
<span style="color: #0000ff;">&quot;gl&quot;</span><span style="color: #339933;">-</span>Galician
<span style="color: #0000ff;">&quot;ka&quot;</span><span style="color: #339933;">-</span>Georgian ALPHA
<span style="color: #0000ff;">&quot;de&quot;</span><span style="color: #339933;">-</span>German
<span style="color: #0000ff;">&quot;el&quot;</span><span style="color: #339933;">-</span>Greek
<span style="color: #0000ff;">&quot;ht&quot;</span><span style="color: #339933;">-</span>Haitian Creole ALPHA
<span style="color: #0000ff;">&quot;iw&quot;</span><span style="color: #339933;">-</span>Hebrew
<span style="color: #0000ff;">&quot;hi&quot;</span><span style="color: #339933;">-</span>Hindi
<span style="color: #0000ff;">&quot;hu&quot;</span><span style="color: #339933;">-</span>Hungarian
<span style="color: #0000ff;">&quot;is&quot;</span><span style="color: #339933;">-</span>Icelandic
<span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #339933;">-</span>Indonesian
<span style="color: #0000ff;">&quot;ga&quot;</span><span style="color: #339933;">-</span>Irish
<span style="color: #0000ff;">&quot;it&quot;</span><span style="color: #339933;">-</span>Italian
<span style="color: #0000ff;">&quot;ja&quot;</span><span style="color: #339933;">-</span>Japanese
<span style="color: #0000ff;">&quot;ko&quot;</span><span style="color: #339933;">-</span>Korean
<span style="color: #0000ff;">&quot;lv&quot;</span><span style="color: #339933;">-</span>Latvian
<span style="color: #0000ff;">&quot;lt&quot;</span><span style="color: #339933;">-</span>Lithuanian
<span style="color: #0000ff;">&quot;mk&quot;</span><span style="color: #339933;">-</span>Macedonian
<span style="color: #0000ff;">&quot;ms&quot;</span><span style="color: #339933;">-</span>Malay
<span style="color: #0000ff;">&quot;mt&quot;</span><span style="color: #339933;">-</span>Maltese
<span style="color: #0000ff;">&quot;no&quot;</span><span style="color: #339933;">-</span>Norwegian
<span style="color: #0000ff;">&quot;fa&quot;</span><span style="color: #339933;">-</span>Persian
<span style="color: #0000ff;">&quot;pl&quot;</span><span style="color: #339933;">-</span>Polish
<span style="color: #0000ff;">&quot;pt&quot;</span><span style="color: #339933;">-</span>Portuguese
<span style="color: #0000ff;">&quot;ro&quot;</span><span style="color: #339933;">-</span>Romanian
<span style="color: #0000ff;">&quot;ru&quot;</span><span style="color: #339933;">-</span>Russian
<span style="color: #0000ff;">&quot;sr&quot;</span><span style="color: #339933;">-</span>Serbian
<span style="color: #0000ff;">&quot;sk&quot;</span><span style="color: #339933;">-</span>Slovak
<span style="color: #0000ff;">&quot;sl&quot;</span><span style="color: #339933;">-</span>Slovenian
<span style="color: #0000ff;">&quot;es&quot;</span><span style="color: #339933;">-</span>Spanish
<span style="color: #0000ff;">&quot;sw&quot;</span><span style="color: #339933;">-</span>Swahili
<span style="color: #0000ff;">&quot;sv&quot;</span><span style="color: #339933;">-</span>Swedish
<span style="color: #0000ff;">&quot;th&quot;</span><span style="color: #339933;">-</span>Thai
<span style="color: #0000ff;">&quot;tr&quot;</span><span style="color: #339933;">-</span>Turkish
<span style="color: #0000ff;">&quot;uk&quot;</span><span style="color: #339933;">-</span>Ukrainian
<span style="color: #0000ff;">&quot;ur&quot;</span><span style="color: #339933;">-</span>Urdu ALPHA
<span style="color: #0000ff;">&quot;vi&quot;</span><span style="color: #339933;">-</span>Vietnamese
<span style="color: #0000ff;">&quot;cy&quot;</span><span style="color: #339933;">-</span>Welsh
<span style="color: #0000ff;">&quot;yi&quot;</span><span style="color: #339933;">-</span>Yiddish</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/php/google-translation-php-wrapper/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
	</channel>
</rss>

