<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=TranslateHandlerFirefox</id>
	<title>TranslateHandlerFirefox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=TranslateHandlerFirefox"/>
	<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=TranslateHandlerFirefox&amp;action=history"/>
	<updated>2026-05-15T15:22:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=TranslateHandlerFirefox&amp;diff=11000&amp;oldid=prev</id>
		<title>Xerakko: New page: = How to add an translate: handler in Firefox =  You only need 3 steps: * Copy this script in your /usr/local/bin as moz-translate.sh   TMP=`mktemp -d`  pair=`echo $1 | cut -d : -f 2`  add...</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=TranslateHandlerFirefox&amp;diff=11000&amp;oldid=prev"/>
		<updated>2009-03-25T17:26:51Z</updated>

		<summary type="html">&lt;p&gt;New page: = How to add an translate: handler in Firefox =  You only need 3 steps: * Copy this script in your /usr/local/bin as moz-translate.sh   TMP=`mktemp -d`  pair=`echo $1 | cut -d : -f 2`  add...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= How to add an translate: handler in Firefox =&lt;br /&gt;
&lt;br /&gt;
You only need 3 steps:&lt;br /&gt;
* Copy this script in your /usr/local/bin as moz-translate.sh&lt;br /&gt;
&lt;br /&gt;
 TMP=`mktemp -d`&lt;br /&gt;
 pair=`echo $1 | cut -d : -f 2`&lt;br /&gt;
 address=`echo $1 | cut -d : -f 3-`&lt;br /&gt;
 echo pair:$pair addr:$address&lt;br /&gt;
 cd $TMP&lt;br /&gt;
 wget -k ${address} -O $TMP/index.html&lt;br /&gt;
 apertium $pair -u -f html $TMP/index.html &amp;gt;$TMP/trindex.html&lt;br /&gt;
 firefox $TMP/trindex.html&lt;br /&gt;
 rm -Rf $TMP&lt;br /&gt;
&lt;br /&gt;
* Change the permos to that file&lt;br /&gt;
&lt;br /&gt;
 chmod +x /usr/local/bin/moz-translate.sh&lt;br /&gt;
&lt;br /&gt;
* Add the handler to the firefox. To do this enter in your address bar&lt;br /&gt;
 about:config&lt;br /&gt;
&lt;br /&gt;
It will ask you if you are sure. Accept.&lt;br /&gt;
&lt;br /&gt;
Clic with your write button and add a &amp;quot;New-&amp;gt;String&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter network.protocol-handler.app.translate&lt;br /&gt;
and the value /usr/local/bin/moz-translate.sh&lt;br /&gt;
&lt;br /&gt;
And voilá!&lt;br /&gt;
The first time you try it It will ask you for associate an application&lt;br /&gt;
you will need to give it the correct path for moz-translate.sh again.&lt;br /&gt;
&lt;br /&gt;
You could now test it, enter in your addres bar:&lt;br /&gt;
&lt;br /&gt;
 translate:ca-es:http://www.sindicat.net&lt;/div&gt;</summary>
		<author><name>Xerakko</name></author>
		
	</entry>
</feed>