You are not logged in.

#1 2013-07-24 07:41:24

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Looking for an offline google translator alternative

-EDIT-  Changed post title  -/EDIT-

...with the ability to translate sentences too.
My primary language is italian.

Thanks for any advice!

Last edited by kokoko3k (2013-07-25 10:58:28)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2013-07-24 22:59:56

Pougnet
Member
Registered: 2013-02-18
Posts: 11

Re: Looking for an offline google translator alternative

Could you specify a bit more about what you are loking for? First of all, do you have any experience with CAT and are you a professional translator? Or, do you simply want machine translation software?

Offline

#3 2013-07-25 09:08:53

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Re: Looking for an offline google translator alternative

I just need something that translates words and sentences when i read something in a language i don't understand...
Yes, i'd call it a machine translator software smile

what is CAT?

PS: i just edited the post title to make it clearer.

Last edited by kokoko3k (2013-07-25 10:59:00)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2013-07-25 09:12:20

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Looking for an offline google translator alternative

kokoko3k wrote:

what is CAT?

Computer-assisted_translation

Offline

#5 2013-07-25 10:57:29

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Re: Looking for an offline google translator alternative

Thanks, definitely not what i need.
To make it simple, now i copy and past into google translator.

I'd like to do it offline!


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2013-07-25 21:09:21

freemind
Member
Registered: 2011-03-07
Posts: 20

Re: Looking for an offline google translator alternative

There is Apertium: http://www.apertium.org/

Offline

#7 2013-07-26 07:50:43

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Re: Looking for an offline google translator alternative

Yeah, seems to be the closest one, thanks.
Too bad there aren't not so many dictionaries to choose from.

...Meanwhile, google is giving out offline translation abilities to smartphones


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#8 2013-07-26 09:23:29

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Looking for an offline google translator alternative

freemind wrote:

There is Apertium: http://www.apertium.org/

Holy crap, THANKS. I wish I knew about this longer.

Offline

#9 2013-07-26 13:49:48

teckk
Member
Registered: 2013-02-21
Posts: 518

Re: Looking for an offline google translator alternative

Do you have to be offline, or do you just want to get away from using a browser with google?
This will get you a translation from CLI with google. Paste in your text when prompted.

#! /usr/bin/env bash

# Translate text using google. Don't abuse.
# Requires curl, awk, iconv, html2text
# Language are:
# af ar az be bn bg bs ca cub zh-CN zh-TW cs cy da de en en_us en_gb en_au 
# el es et eu fa fi fr ga gl gu ht hi hmn hr hu hy is id it iw ja jw ka km 
# kn ko la lv lt mk mr ms mt no nl pl pt ro ru sr sk sl sq sw sv ta te th tl 
# tr uk ur vi yi

echo "Language options are:"
echo "en de fr es it" # Add languages here.
echo "What input language"
read ILAN
echo "What ouput language"
read OLAN
echo "Enter text"
read TEXT

result=$(curl -s -i --user-agent "" -d "sl=$ILAN" -d "tl=$OLAN" --data-urlencode "text=$TEXT" http://translate.google.com)
encoding=$(awk '/Content-Type: .* charset=/ {sub(/^.*charset=["'\'']?/,""); sub(/[ "'\''].*$/,""); print}' <<<"$result")

iconv -f $encoding <<<"$result" |  awk 'BEGIN {RS="</div>"};/<span[^>]* id=["'\'']?result_box["'\'']?/' | html2text
exit

Offline

#10 2013-07-26 14:18:54

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Looking for an offline google translator alternative

kokoko3k wrote:

...Meanwhile, google is giving out offline translation abilities to smartphones

What do you mean? It's impossible for a phone to translate language. The phone always sends the words to Google, the servers translate it, and it gets sent back to your phone.

Did I miss a major leap in technological capability? yikes

Offline

#11 2013-07-26 14:39:41

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Looking for an offline google translator alternative

Is machine translation such a resource intensive operation?


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#12 2013-07-26 14:45:32

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Looking for an offline google translator alternative

alphaniner wrote:

Is machine translation such a resource intensive operation?

I don't know. I imagine it would take a lot of processing, a ton of data stored in a huge database, and extremely specialized software. And that's per language.

I'm hoping the more opinions I throw out the closer we'll get to someone proving me wrong. wink

Last edited by drcouzelis (2013-07-26 14:46:20)

Offline

#13 2013-07-26 16:45:30

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Re: Looking for an offline google translator alternative

@teckk:
Thanks, but i'm really looking for an offline one.

@drcouzelis:
Yes, google is giving out his dictionaries for offline use.

...I'm becoming more and more dependant from google services (i use their calendar, their search engine, their translator, their office apps...) and i don't think this is good.
So i'm trying to regain my independence.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#14 2014-05-04 13:29:35

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: Looking for an offline google translator alternative

@teckk   interesting script but not working for me.
I have the depenedcies at least I am asuming iconv is perl-text-iconv
any way I choose the lang. then the output lang. then type in some text(or paste in) like
how are you
then press enter

but I just get a blank line


You can like linux without becoming a fanatic!

Offline

#15 2014-05-04 17:47:54

teckk
Member
Registered: 2013-02-21
Posts: 518

Re: Looking for an offline google translator alternative

I am asuming iconv is perl-text-iconv

No, I don't have that installed.

 pacman -Ss iconv
extra/perl-text-iconv 1.7-8

interesting script but not working for me.

I just checked, it doesn't work here anymore either. I haven't used that for a while.
So I looked to see what they changed.......
These quick example from english > deutsch, deutsch > english work.

curl -s -A "Mozilla" "http://translate.google.com/translate_a/t?client=t&text=I+like+to+read+man+pages&hl=pt-BR&sl=en&tl=de&multires=1&ssel=0&tsel=0&sc=1" | awk -F'"' '{print $2}'
curl -s -A "Mozilla" "http://translate.google.com/translate_a/t?client=t&text=Ich+mag+linux+Es+macht+freiheit&hl=pt-BR&sl=de&tl=en&multires=1&ssel=0&tsel=0&sc=1" | awk -F'"' '{print $2}'

I'm in the U.S. Use your countries google server.

If you want text to voice.

curl -s -A Mozilla "http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=I+like+to+read+man+pages" > out.mp3
wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=I+like+to+read+man+pages"

Make yourself a script however you like.

Offline

#16 2014-05-04 19:02:21

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: Looking for an offline google translator alternative

thanks for the update info - I'm sure I'll get something crude but good enough for me.
ha ha "i like to read manpages"!


You can like linux without becoming a fanatic!

Offline

#17 2014-12-08 01:44:15

Chuck Arch Linux
Member
Registered: 2011-06-23
Posts: 81

Re: Looking for an offline google translator alternative

kokoko3k wrote:

Thanks, definitely not what i need.
To make it simple, now i copy and past into google translator.

I'd like to do it offline!

I have a nexus 7 tablet that can download the Google translator to work offline via google play.
You can select the language you need instead of all of them

Offline

#18 2014-12-08 07:06:41

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Re: Looking for an offline google translator alternative

Yep, but i'd like to do that on my linux desktop...


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#19 2014-12-09 00:09:44

Chuck Arch Linux
Member
Registered: 2011-06-23
Posts: 81

Re: Looking for an offline google translator alternative

kokoko3k wrote:

Yep, but i'd like to do that on my linux desktop...

Did you try this...

http://askubuntu.com/questions/22392/ho … te-desktop

Offline

#20 2014-12-10 14:35:28

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,389

Re: Looking for an offline google translator alternative

Thanks, but it looks like just as another interface to the online google translator.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#21 2014-12-10 15:54:30

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Looking for an offline google translator alternative

Maybe it takes to install Android into a virtualbox tongue


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB