Hi SK!
On Mi, 02 Nov 2011, SK wrote:
> libtranslate looks like the way to go but being a newbie I am
> struggling to figure out how to hook it to mutt. Any help?
Either define a macro, that pipes the message through translate, or even
use your mailcap file to specify how to translate your message.
1) First would be done, by defining a macro like this:
macro pager \ct "<pipe-message>translate-bin -f en -t de<enter>"
"translate message using babelfish"
(one line)
This uses the key combination <Ctrl-t> to pipe the message through
the translate program (which in this case translates the message
from English to German) and displays the result
2) In your .mailcap file define a line like this:
text/plain translate-bin -f en -t de; copiousoutput; needsterminal
Then when viewing the attachments of your message ('v'), simply press
'm' to force the message being piped through the translate program
regards,
Christian