Multilingual dictionary via command line in Ubuntu

Sponsored Link
If you want to use Multilingual dictionary via command line in Ubuntu check this simple tip

You'll need a ./bin/bash script adapted to your own language!On the Williams College Libraries' site, you'll find just about any language abbreviations in the world.You can check here http://www.williams.edu/library/guides/languages.php

So here we go! You need to put your script(s) in /usr/local/bin
In a terminal, run

sudo gedit /usr/local/bin/en2fr

The "en2fr" will obviouly allow you to translate an English word to its French equivalent. It proves to be quite practical to translate, for instance, words in the ‘man' pages; however, you can also type "grandmother" and get a decent translation!

For KDE users

$ kdesu kate /usr/local/bin/en2frThen copy/paste this:

#!/bin/bash
w3m http://www.wordreference.com/fr/Translation.asp?enfr=$1

into it.

Make it executable in a terminal, run

sudo chmod 755 /usr/local/bin/en2fr

You can also Right click on the file > Properties > Permissions > Execute

So now you'll be able to use a new command line: en2fr

$ en2fr English_word_to be_translated

To get out of it, press q and y.

English > Spanish -- en2es

#!/bin/bash
w3m http://www.wordreference.com/es/translation.asp?tranword=$1

Spanish > English -- es2en

#!/bin/bash
w3m http://www.wordreference.com/es/en/translation.asp?spen=$1

English > Italian -- en2it

#!/bin/bash
w3m http://www.wordreference.com/it/translation.asp?enit=$1

Italian > English -- it2en

#!/bin/bash
w3m http://www.wordreference.com/it/en/translation.asp?iten=$1

English > German -- en2de

#!/bin/bash
w3m http://www.dict.cc/?s=$1

German > English -- de2en

#!/bin/bash
w3m http://www.dict.cc/?s=$1

English > Turk -- en2tr

#!/bin/bash
w3m http://www.seslisozluk.com/?word=$1&go_search=Search

Turk > English -- tr2en

#!/bin/bash
w3m http://www.seslisozluk.com/?word=$1&go_search=Search

German > Turk -- de2tr

#!/bin/bash
w3m http://www.seslisozluk.com/?word=$1&go_search=Search

Turk > German -- tr2de

#!/bin/bash
w3m http://www.seslisozluk.com/?word=$1&go_search=Search

this tip from here

Sponsored Link

Incoming search terms:

Related posts

One thought on “Multilingual dictionary via command line in Ubuntu

Leave a comment

Your email address will not be published. Required fields are marked *