Note that there are some explanatory texts on larger screens.

plurals
  1. POBest SEO method to translate a website page with google translate
    text
    copied!<p>So must of us have a lot of content on our sites in one language or another. Since we are web professionals we spent all that time we could have been learning <em>human languages</em> - instead learning <em>computer languages</em>. So we need someway to translate our content.</p> <p>Google provides a <a href="http://www.translate.google.com/translate_t#" rel="nofollow noreferrer">translation service</a> (<a href="http://babelfish.yahoo.com/free_trans_service" rel="nofollow noreferrer">among</a> <a href="http://www.microsofttranslator.com/Widget/" rel="nofollow noreferrer">others</a>) and so given their massive empire I am confident that they do (or shortly will) have the best translation service. With that in mind, what is the best way to use it? We could just be lazy and use the little widget that they provide - but we would lose all the content and SEO juice because google would rewrite the links to point to "translate.googleusercontent.com?translate=...".</p> <p>So my question is - how we can use this service while retaining the translated content on our site?</p> <p>One method would be to use the <a href="http://www.labnol.org/internet/website-translation-with-google-ajax-language-ap/4367/" rel="nofollow noreferrer">Google AJAX API</a> to load the content inline when the wants it. But since it is powered by JS (<a href="http://code.google.com/p/jquery-translate/wiki/General" rel="nofollow noreferrer">like jQuery</a>)- Search Engines won't benefit from this.</p> <p>Another method would be to use a server side language (like PHP) to <a href="http://gulati.info/2009/07/google-translate-php-api/" rel="nofollow noreferrer">scrap the content</a> from the google translate page. But I'm not sure this is 100% legal.</p> <p>Finally, I was wondering about using mod_rewrite to fetch the page. But again, I don't think this would benefit our site.</p> <pre><code>RewriteRule ^(.*)-fr$ http://www.google.com/translate_c?hl=fr&amp;sl=en&amp;u=http://site.com/$1 [R,NC] RewriteRule ^(.*)-de$ http://www.google.com/translate_c?hl=de&amp;sl=en&amp;u=http://site.com/$1 [R,NC] RewriteRule ^(.*)-es$ http://www.google.com/translate_c?hl=es&amp;sl=en&amp;u=http://site.com/$1 [R,NC] RewriteRule ^(.*)-it$ http://www.google.com/translate_c?hl=it&amp;sl=en&amp;u=http://site.com/$1 [R,NC] </code></pre> <p>All you would need to do is add a a couple links on your pages with the variables “-fr” appended to the end of what ever URL is in the link and your set.</p> <pre><code>//View file View Page in &lt;a href="&lt;?php print $uri_string; ?&gt;-de"&gt;German&lt;/a&gt; </code></pre> <p>Does anyone have any thoughts on this?</p> <p>:EDIT:</p> <p>After reading google's T<a href="http://code.google.com/apis/ajaxlanguage/terms.html" rel="nofollow noreferrer">erms of Service</a> it seems that </p> <blockquote> <p>You will not, and will not permit your end users or other third parties to: incorporate Google Results as the primary content on your Property or any page on your Property; submit any request exceeding 5000 characters in length;</p> </blockquote> <p>Which sounds to me like you can't use the google <a href="http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&amp;q=hello&amp;langpair=en|fr" rel="nofollow noreferrer">translate URL</a> to translate the main content - with PHP or AJAX - if that content is the main post of the page. Now how does this work? Why would you build a translation API and then not allow it to be used on the main page content?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload