Effective immediately: you must have my permission to reprint articles or information from my articles. This is only so that we can document where the ideas are recorded.

Think it is neat that we can use the world of computers to translate languages even from the command line. Opens up a whole new world without ever leaving your computer. This what we did.

$ sudo apt-get update
$ sudo apt-get install wget

Translating words from the command line: (for example from italian to english.

$ ./lc.sh “Ti voglio molto bene” it en
Love you very much

$

$ ./lc.sh “Ti voglio molto bene” it zh
非常爱你

$

lc.sh

#!/bin/bash
if test -z $3; then
        echo "Usage: $0 "<str>" <lang1> <lang2>"
        echo "Translates string "<str>" from <lang1> to <lang2>"
        echo "(CLI frontend to Google Translate)"
else
wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=$2|${3:-$3}" | sed 's/.*"translatedText":"([^"]*)".*}/1n/';
fi
echo ""

Complete List
The following table contains a recent list of languages supported by Google Translate.

gtcodes

Recent hack of a veggie burger. You do not have to buy the expensive stuff at the store.

You can go around the world with food also without ever leaving your kitchen, Then there is a couple of food instructables I have done recently:

http://www.instructables.com/id/Easy-baked-corn-taco-shells/

http://www.instructables.com/id/Homemade-PBJ/

http://www.instructables.com/id/Batchelor-lasagna/

Thanx to all who have helped us get to 126,000+ plus views at http://www.instructables.com/member/computothought

Good day!

Advertisements