<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: shortcut code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 20:02:24 GMT</pubDate>
    <description>DZone Snippets: shortcut code</description>
    <item>
      <title>Google translate bookmarklet</title>
      <link>http://snippets.dzone.com/posts/show/4264</link>
      <description>Here's perhaps the most powerful bookmarklet I've ever created ...&lt;br /&gt;This one translates the current web page from your current browser session into another language!&lt;br /&gt;&lt;br /&gt;Syntax from the address bar in your FF or Opera browser:&lt;br /&gt;&lt;code&gt;&lt;br /&gt; tr &lt;FROM&gt;|&lt;TO&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt;&lt;code&gt;&lt;br /&gt; tr en|de&lt;br /&gt; tr en|fr&lt;br /&gt; tr en|pt&lt;br /&gt; tr de|en&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Here's the bookmarklet code&lt;br /&gt;&lt;code&gt;&lt;br /&gt;javascript:location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&amp;langpair=%s&amp;hl=EN&amp;ie=UTF-8&amp;oe=UTF-8&amp;prev=%2Flanguage_tools'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;FF instructions:&lt;br /&gt;Copy/paste the code in a new bookmark. Then, in the new bookmark properties, edit the keyword/shortcut field and insert 'tr'. That's it!&lt;br /&gt;&lt;br /&gt;Opera instructions:&lt;br /&gt;Copy the bookmarklet code. Then, in tools--&gt;preferences--&gt;search--&gt;add--&gt;details, paste the code in the address field, fill in a name for in the name field, and write 'tr' in the keyword field. Then save all. That's it!</description>
      <pubDate>Thu, 05 Jul 2007 17:25:51 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4264</guid>
      <author>griflet (guillaume riflet)</author>
    </item>
  </channel>
</rss>
