Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 06:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Google translator (standalone) updated
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Fri 27 Feb 2009, 09:49    Post_subject:  Google translator (standalone) updated  

Dear Puppians,

Here is a tiny and useful utility program for those of us who work in various languages. Written my Alex Snet (http://alexsnet.ru/opensource/translator/comment-page-1/#comment-683), it accesses Google translate via its own gui, obviating the need to start a browser to access this facility. I compiled it in Puppy 3.01 with qt 4.4, but it runs fine in any qt 4.x (I checked). It should also work without problems in Puppy 4.x. Unpack the archive and place in an executable dir, such as /usr/bin, /usr/local/bin or /root/my-applications/bin.

With kind regards,
vovchik
translator.tar.gz
Description 
gz

 Download 
Filename  translator.tar.gz 
Filesize  71.62 KB 
Downloaded  562 Time(s) 

Edited_time_total
Back to top
View user's profile Send_private_message 
elraven

Joined: 03 Apr 2007
Posts: 82
Location: wnc-usa

PostPosted: Fri 27 Feb 2009, 11:45    Post_subject: Google translator
Sub_title: awesome
 

this is an awesome app Very Happy it worked straight away in my puppy 409. it works so easily and its kind of fun too. Thanks again. Very Happy
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Fri 27 Feb 2009, 16:03    Post_subject:  

Dear Puppians,

Here is an icon I created for translator. Obviously the flags are arbitrary and taken from a KDE source. If one wanted to specify country A and country B, there would be thousands of possibilities...and I am lazy.

With kind regards,
vovchik
keyboard-chooser-but.png
 Description   
 Filesize   74.64 KB
 Viewed   1501 Time(s)

keyboard-chooser-but.png

Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 28 Feb 2009, 07:54    Post_subject:
Sub_title: updated
 

Dear Puppians,

Alex has updated translate. The pulldown language list now contains full language names and not codes. He also intends, in a future version, to provide a progress bar, needed when Google translate or your inet connection is slow. I'll be watching his site and providing updates.

With kind regards,
vovchik

PS. I removed the old binary...

Edited_time_total
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 28 Feb 2009, 16:18    Post_subject:  

Dear Puppians,

I can't seem to get the new version to work. Has anybody got it to show a translation? At best I get the same phrase returned in English with some part of speech information. I would recommend taking the old version - at the top of this post - until this problem is sorted out. I am certain it will be. I have also sent the author a collection of flags (pngs) for the languages in the list. So translate might get prettier.

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sun 01 Mar 2009, 06:06    Post_subject:  

Dear Puppians,

As promised, Alex has fixed the error and added flags, so the app is not only functional, but pretty and it is now easy to choose languages. Here is the binary. Works in puppy 3.x and 4.x if you have qt4 installed.

With kind regards,
vovchik
translator.tar.gz
Description 
gz

 Download 
Filename  translator.tar.gz 
Filesize  124.64 KB 
Downloaded  506 Time(s) 
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sun 01 Mar 2009, 07:11    Post_subject:
Sub_title: a screenshot
 

Dear Puppians,

Here is a screenshot of translate on my machine.

With kind regards,
vovchik
translate.jpg
 Description   
 Filesize   33.51 KB
 Viewed   1727 Time(s)

translate.jpg

Back to top
View user's profile Send_private_message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 01 Mar 2009, 09:04    Post_subject:  

Hi maybe you could contact alex and ask for a gtk GUI, Really a program like this doesn't need qt, It would save a lot of extra weight for users who don't use QT or have older pc's. Well just an idea I guess, nice program, should be useful for a lot of people Smile Nice find
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sun 01 Mar 2009, 10:15    Post_subject:  

Dear ttuuxxx,

I think you're onto something. It should be possible to do roughly the same thing using gtkdialog3 with glade (or without) and to use curl or another such cli utility for the html POST and retrieval business. I once did something like that to retrieve weather data, and am thinking about the possibilities right now. Importantly, Alex has come up with a very nice idea - and his implementation works very nicely. If you have any more thoughts on this subject, please post them.

With kind regards,
vovchik

PS. I think Alex works on the Mac, but does do work on Debian and Windows. His use of QT allows the app to run on three platforms at once. I don't know whether he would be willing to spend a lot of time to do a GTK version, but the source is there for QT4, so the important POSTing routines are available for subsequent GTK "cannibalization".
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sun 01 Mar 2009, 16:33    Post_subject:  

vovchik

I live in Mexico now I speak both Spanish and English
*Spanish I learned as a second language living in Mexico
I also translate documents

so translating tools always are put to good use

I took a quick look at the source and the page was in Russian
so I was lost could you please list what you did to compile the source
in some standard tar.gz format

then we can help out too

thank you for posting
big_bass
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sun 01 Mar 2009, 17:41    Post_subject:
Sub_title: source for 090301
 

Dear big_bass,

I am glad some people are interested in this program. I find it useful and convenient. I have asked the author to provide an option to load in the systray and a button to clean the upper window. He will oblige, and also provide a progress meter for slow connections.

In the mean time, I am attaching the source. Please have a look. Brief compiling instructions are in the INSTALL I wrote in about 10 seconds.

With kind regards,
vovchik
translate-090301.tar.gz
Description 
gz

 Download 
Filename  translate-090301.tar.gz 
Filesize  148.6 KB 
Downloaded  474 Time(s) 
Back to top
View user's profile Send_private_message 
trapster


Joined: 28 Nov 2005
Posts: 2030
Location: Maine, USA

PostPosted: Sun 01 Mar 2009, 19:26    Post_subject:  

Well this gave me something to do this afternoon.
It was thrown together and needs a lot more.
A lot of characters do not show up correctly.

Does gtkdialog do drop down boxes?
I do not know how to show results in gtkdialog so xmessage is used instead.

Feel free to hack away.





Edit: 3/3/09
Ptranslator-0.2
Added a check for the google referer in /etc/wgetrc
Added comboboxes for the langauges.
Ptranslate-0.2.pet
Description  Puppy Language Translator
pet

 Download 
Filename  Ptranslate-0.2.pet 
Filesize  2.06 KB 
Downloaded  522 Time(s) 

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
trapster


Joined: 28 Nov 2005
Posts: 2030
Location: Maine, USA

PostPosted: Sun 01 Mar 2009, 19:27    Post_subject:  

oops....double post
_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send_private_message Visit_website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 01 Mar 2009, 20:02    Post_subject:  

[quote="trapster"]Well this gave me something to do this afternoon.
It was thrown together and needs a lot more.
A lot of characters do not show up correctly.

Does gtkdialog do drop down boxes?
/quote]

yes heres the default example

#! /bin/bash

export MAIN_DIALOG='
<vbox>
<hbox>
<text>
<label>Combobox:</label>
</text>
<combobox>
<variable>COMBOBOX</variable>
<item>First item</item>
<item>Second item</item>
<item>Third item</item>
</combobox>
</hbox>
<hbox>
<button ok></button>
<button cancel></button>
</hbox>
</vbox>
'

gtkdialog3 --program=MAIN_DIALOG

ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
trapster


Joined: 28 Nov 2005
Posts: 2030
Location: Maine, USA

PostPosted: Sun 01 Mar 2009, 20:08    Post_subject:  

Thanks ttuuxxx.
Can the items be a list of items in a file.
ie. all the different "2 letter" languages?

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2164s ][ Queries: 13 (0.0158s) ][ GZIP on ]