Usage:
translate <phrase> <source-language> <output-language>
Example:
translate hello en es
See this for a list of language codes:
http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
Show Sample Output
allow multiword translations Show Sample Output
substitute "example" with desired string; tl = target language (en, fr, de, hu, ...); you can leave sl parameter as-is (autodetection works fine) Show Sample Output
Translate strings from non-german to german (and vice versa) using LEO. Put it in your ~/.bashrc.
Usage:
leo words
To use another language other than english, use an option:
leo -xx words
Valid language options:
ch - chinese
en - english
es - spanish
fr - french
it - italian
pl - polish
pt - portuguese
ru - russian
The other language will always be german!
Show Sample Output
translate <phrase> <source-language> <output-language>
works from command line
translate <some phrase> [output-language] [source-language]
1) "some phrase" should be in quotes
2) [output-language] - optional (default: English)
3) [source-language] - optional (default: auto)
translate "bonjour petit lapin"
hello little rabbit
translate "bonjour petit lapin" en
hello little rabbit
translate "bonjour petit lapin" en fr
hello little rabbit
Show Sample Output
Put the string above in your ~/.bashrc or ~/.bash_profile, then source the file. Make sure your sound output is working, you have mplayer installed, then type in a word or sentence similar to below: say "why won't anyone talk to me?" It's easy to get the language to be different by changing the "en" in the string to be "de" or some other language that Google Translate supports. Have multiple "say" functions, like "say-en" "say-de", etc. Show Sample Output
Translates first set into second set Show Sample Output
1. There is no use of '--color=auto' in front of a pipe--instead with '--color=always' grep will mark the section headings. 2. I suppose the use of grep with '-A 900' or '-B 900' respectively a 'dirty trick'--sed can do 'exactly' what we want, however, grep does the nice colouring (see 1.) 3. Cutting of the tail (everthing starting with 'Weitere Aktionen') first leads to no output if leo doesn't no the translation. Show Sample Output
useful for human readable reports Show Sample Output
Translate the X selection from German to English. The tw program is available from Savannah: http://mirror.its.uidaho.edu/pub/savannah/twandgtw/ I'm posting this because the base Debian system also does not include curl.
Change lang from ru to something else. Curl version - Mac OS etc, any system w/o wget. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: