Translate Your Website

After two weeks of trying to get the Translate Plugin for MT to work, I've given up and decided on a different solution that translates the entire page instead of just the entry. Language translation is important for you site to reach a larger audience since only around one quarter of the world population speaks English.

Download the script and follow the instructions for installation.

I edited the flags.shtml file to open the result in a new window:


<!-- google_ad_section_start(weight=ignore) -->
<table align="right"> 
<tr>
  <td> <a href="http://forums.digitalpoint.com/showthread.php?t=42057" title="Automatic translation via Google Translate - Click for details" target="_blank">Translate: </a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cde', 'English_to_German', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/de.gif" alt="German" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Ces', 'English_to_Spanish', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/es.gif" alt="Spanish" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cfr', 'English_to_French', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/fr.gif" alt="French" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cit', 'English_to_Italian', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/it.gif" alt="Italian" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cja', 'English_to_Japanese', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/ja.gif" alt="Japanese" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cru', 'English_to_Russian', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/ru.gif" alt="Russian" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cnl', 'English_to_Dutch', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/nl.gif" alt="Dutch" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cel', 'English_to_Greek', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/el.gif" alt="Greek" style="padding: 2px;" /></a></td>  
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cko', 'English_to_Korean', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/ko.gif" alt="Korean" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cpt', 'English_to_Portuguese', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/pt.gif" alt="Portuguese" style="padding: 2px;" /></a></td>
  <td><a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Czh-CN', 'English_to_Chinese', 'resizable,scrollbars,status'))"><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/zh-CN.gif" alt="Chinese" style="padding: 2px;" /></a></td>
  <td><img src="http://mt4.juneeonline.com/babble-on/translate/graphics/blank.gif" alt="" style="padding: 2px;" /></a></td>
 </tr>
</table>
<!-- google_ad_section_end -->

And used the following php include in my <header>:


<?php include "/home/path/to/translate/includes/flags.shtml"; ?>

If you have any problems, try changing the permissions on report.sh to chmod 775.

The Digital Point forum has quite a lengthy discussion going that may help to solve any other problems.

Leave a comment

About

I love to play with different features of Movable Type and am constantly trying out new ideas, plugins, pieces of code, themes, etc.
» More...

Recent Entries

  • Notepad Chaos: A Template Set for Movable Type

    Movable Type users looking for something different for their personal blog will love this template set. The design features a notebook look on a striking...

  • Using the Command Line for Fast Upgrades

    My site is hosted on "Dreamhost":http://www.dreamhost.com/rcgi?277567, and the reason I signed up with them was so I could use a command line for direct access...

  • Computer Jargon

    A post on the "MT forum":http://forums.movabletype.org/2008/08/cruft-free-url-annoyances.html called _Cruft-free URL annoyances_ got my attention today and sent me scurrying for a definition. According to Wikipedia, "Cruft":http://en.wikipedia.org/wiki/Cruft...

  • Do I Need To Go Pro?

    With the release of Movable Type Open Source version 4.2, co-inciding with the release of Movable Type Pro, the biggest decision now is which...

  • Up and Down On a Learning Curve

    I've made a few changes to the theme, and noticed a couple of things that happened when I transferred this blog rather than just updating...