Overview

*DEPRECATED APP, SEE LAST NEWS*

replace google-translator

polytranslator translate text in GUI or CLI in another language using 2 (or maybe more later) engines.

Requirements :
For debian likes :
aptitude install zenity xclip
dh-make-perl Lingua::Translate::Google Lingua::Translate::Babelfish Clipboard
Archlinux AUR :
yaourt -S polytranslator

Others :
You need those perl modules : Lingua::Translate::Google Lingua::Translate::Babelfish Clipboard
And the xclip system command.

When it’s done, you just have to select some text everywhere you want ( or use the -w option in CLI ) and run the script to perform translation. GUI ( Zenity dialog ) boxes are used by default but you can use the text mode too ( CLI ).

Help :
Usage :
        polytranslator [-hvlc]

Syntax :
        All the parameters are optionals :

    -h  This help
    -v  Print version and quit
    -l  Set the lang pair before translation. See examples section.
    -c  CLI mode. To use in the terminal without using zenity GUI.
    -w  Feed the translator with "a quoted string" instead of the buffer content.
    -b  Enable fallback whith next translation engine when default one fails.
    -f  <google|babelfish> Force Babelfish or Google translation.

Examples :
        polytranslator
                Without arguments, perform translation in GUI with the buffer content.

        polytranslator -l "en|fr" 
                Tell the script to perform an English to French translation without any question.

        polytranslator -l "en|fr" -c
                Same as above, but in CLI mode

        polytranslator -b -l "en|fr" -c -w "A grey hat." 
                Same as above with "a quoted string" after -w flag and "next engine fallback".

Download here : http://www.sputnick-area.net/polytranslator/polytranslator-0.1.tar.gz

Moreover, you can add key bindings ( like win+l ) in your window manager ( such as kde, gnome, etc… ) to call by example :
selecting a text area and run polytranslator -l "en|fr"
You will received a window with the translation.

The help can be found in perldoc polytranslator

Issue tracking

View all issues