Friday, August 10, 2007

gnome language translator install howto

How to translate from one language to another locally from your linux machine?
How to install Gnome-based language translator?
How to translate word and languages from CLI terminal?
How to translate a URL from CLI terminal?

GNOME Translate is a GNOME interface to libtranslate library. It can translate a text or web page between several natural languages, and it can automatically detect the source language as you type. It also makes use of generic module supporting web-based translation services, libtranslate. More info from Gnome translate can be found here.

Nowadays, with several web-based language translator, the process of having language translation is very simple as long as you have web access. Users just need to visit their site and paste from there those words or even the paragraphs that need to be translated. One famous web translator is Babelfish before Google launched their own famous URL and language translator, which is publicly available here.

Here's one quick way of installing Gnome-translate

# yum -y install gnome-translate

Launch: Ctrl+F2, gnome-translate



Gnome Language Translation Process:

The operation of this gnome-based language translator is very simple.

Assuming an internet connection is present, the user is presented with two box areas. One box area for the first language to be translated and another box area for the translated form. Gnome-translate makes use of several web-based language translator engine. These site engines can be modified by priority by going to Edit > Preferences.



How to translate a URL site or words via CLI terminal?
------------------------------------------------------


Translate the word "What" from English to French and prints it on standard output.
# echo "What" | translate -f en -t fr
Result:
~~~~~~~~~~~
Ce qui
~~~~~~~~~~~

and to Espanol

# translate -f en -t es vertito.txt
Result:
~~~~~~~~~~~~
Hola. ¿QuĂ©?
~~~~~~~~~~~~
How to translate a website URL?
How to dump the standard output of a translated URL page?

# elinks `translate -f en -t fr http://ilovetux.com`
# elinks `translate -f en -t fr http://ilovetux.com` > translated.html


How to do traslate a readable text document via CLI terminal?

# cat vertito.txt
Hello. What?

# translate -f en -t fr vertito.txt
Result:
~~~~~~~~~~~~~~~~~~~~~
Bonjour. Ce qui ?
~~~~~~~~~~~~~~~~~~~~~

*** There are instances that the web translator would block the IP temporarily IF a user reached his daily threshold of translating a language using their web based translation engine.

Watch out for an upcoming language translation alternative. I heard it comes with its own language translation engine. More info can be found here.

HTH

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy