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 Mon 21 Oct 2019, 19:20
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
YAD - Tips
Post new topic   Reply to topic View previous topic :: View next topic
Page 44 of 50 [749 Posts]   Goto page: Previous 1, 2, 3, ..., 42, 43, 44, 45, 46, 47, 48, 49, 50 Next
Author Message
josejp2424


Joined: 01 Aug 2010
Posts: 502

PostPosted: Sat 17 Aug 2019, 12:47    Post subject: translate-shell
Subject description: translate-shell
 

Argolance wrote:
Bonjour,
Just for info:
Arrow A handy script for translations... using yad. Smile

Cheers.


It would be nice to make an icon in the systray. to have the translator at hand.

_________________
Shiba Inu | Pupjibaro jessie | My Blog
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 3675
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 17 Aug 2019, 13:30    Post subject:  

Quote:
It would be nice to make an icon in the systray. to have the translator at hand
Make it, it's a very good idea! Wink
_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1504
Location: Ukraine

PostPosted: Sat 17 Aug 2019, 17:43    Post subject:  

Dear all,

Here is trans-paste and trans-tray. Put them both into some executable dir. Start trans-tray. Left click and you get a trans-paste box that will do the translation if the clipboard has a non-English text. I also supplied an icon and desktop file that you can edit for the icon location.

With kind regards,
vovchik

PS. All of this is very quick and dirty...
trans-paste.tar.gz
Description 
gz

 Download 
Filename  trans-paste.tar.gz 
Filesize  1.24 KB 
Downloaded  46 Time(s) 
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Sat 17 Aug 2019, 18:15    Post subject:  

How nice !! Thanks Argolance and vovchik !!!

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3675
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 18 Aug 2019, 04:05    Post subject:  

Bonjour,
Quote:
PS. All of this is very quick and dirty...

I'm afraid of what some people might think of my own scripts. Embarassed

You were very quick indeed!
Icons aside (which are not really adapted) everything is perfect.
Now, a right-click menu would be useful for some settings as well as internationalization by the same token?

I wonder if josejp2424 wouldn't currently be working on scripts of the same kind?

Thank you vovchik for this.

Cordialement.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Sun 18 Aug 2019, 17:35    Post subject:  

Here's a (not so quick, but very dirty Very Happy ) script, modified vovchik's script with addition of simple right-click menu with option to set the target language to translate to (provides list with languages to choose from)
A lot more can be done of course with all the options from "translate-shell", this is just a simple setup for testing, but maybe can be a start for a much more advanced program, who knows !

Attached trans_tray (merged together trans-tray and trans-paste from vovchik's concept) remove fake .gz and make executable.

Fred
2019-08-18-234825_635x710_scrot_635x710.jpg
 Description   In italian
 Filesize   97.27 KB
 Viewed   256 Time(s)

2019-08-18-234825_635x710_scrot_635x710.jpg

trans_tray.gz
Description  Remove fake .gz and make executable, depends on translate-shell and yad
gz

 Download 
Filename  trans_tray.gz 
Filesize  5.55 KB 
Downloaded  36 Time(s) 

_________________
Dog Linux website
Tinylinux blog by wiak

Last edited by fredx181 on Sun 18 Aug 2019, 17:50; edited 1 time in total
Back to top
View user's profile Send private message 
josejp2424


Joined: 01 Aug 2010
Posts: 502

PostPosted: Sun 18 Aug 2019, 17:48    Post subject: trans_tray
Subject description: trans_tray
 

fredx181 wrote:
Here's a (not so quick, but very dirty Very Happy ) script, modified vovchik's script with addition of simple right-click menu with option to set the target language to translate to (provides list with languages to choose from)
A lot more can be done of course with all the options from "translate-shell", this is just a simple setup for testing, but maybe can be a start for a much more advanced program, who knows !

Attached trans_tray (merged together trans-tray and trans-paste from vovchik's concept) remove fake .gz and make executable.

Fred


it is excellent fredx181 and vovchik

_________________
Shiba Inu | Pupjibaro jessie | My Blog
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1504
Location: Ukraine

PostPosted: Mon 19 Aug 2019, 05:07    Post subject:  

Dear josejp2424,

Well done. Thanks. I think one thing we might want eventually to include in the right-click menu is the selection of translation engine (google, bing, yandex and deepl). Some engines are better at certain languages and worse at others, and deepl, for example, cannot handle very many. It's just a thought... In any case,trans_tray works nicely as it is. Smile

With kind regards,
vovchik
Back to top
View user's profile Send private message 
josejp2424


Joined: 01 Aug 2010
Posts: 502

PostPosted: Mon 19 Aug 2019, 10:04    Post subject: tran_tray
Subject description: gettext trans_tray
 

fredx181 and vovchik

I included gettext to trans_tray.
Change the icon and color. Do not modify the lines of the icon.

icon to differentiate who is a translator



gettext in GUI

translate_shell+GUI-0.9.6.11-dpupbuster64.pet
Description  for which you use dpupbuster64.
complete package for testing.
translate-shell + trans-tray
pet

 Download 
Filename  translate_shell+GUI-0.9.6.11-dpupbuster64.pet 
Filesize  46.75 KB 
Downloaded  26 Time(s) 
trans_tray.tar.bz2
Description  trans_tray+gettext+icono+locale-es
bz2

 Download 
Filename  trans_tray.tar.bz2 
Filesize  5.99 KB 
Downloaded  25 Time(s) 

_________________
Shiba Inu | Pupjibaro jessie | My Blog
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Mon 19 Aug 2019, 11:03    Post subject:  

josejp2424 wrote:
fredx181 and vovchik

I included gettext to trans_tray.
Change the icon and color. Do not modify the lines of the icon.

icon to differentiate who is a translator


Nice josejp !
In the meantime I worked on a version with choice of different engines in the menu, see attached. (but not gettext added, sorry)
The engine choices are Google, Bing and Yandex, but Yandex doesn't always work well, half of the time I get message:
Code:
[ERROR] Oops! Something went wrong and I can't translate it for you :(


I use the newest trans, see here:
https://github.com/soimort/translate-shell#installation
I think with older version the Bing translator doesn't work.

Fred

Fred
trans_tray.gz
Description  Remove fake .gz and make executable
gz

 Download 
Filename  trans_tray.gz 
Filesize  6.28 KB 
Downloaded  29 Time(s) 
2019-08-19-165754_633x713_scrot_533x600.jpg
 Description   Added choice of translate engines
 Filesize   55.37 KB
 Viewed   170 Time(s)

2019-08-19-165754_633x713_scrot_533x600.jpg


_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1504
Location: Ukraine

PostPosted: Mon 19 Aug 2019, 14:49    Post subject:  

Dear Fredx181 and josejp2424,

This little thing is getting better by the day. Smile Thanks. I have been using the latest trans in my testing (v. 0.9.6.11-release) and suggest that everybody use a recent version.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Mon 19 Aug 2019, 15:45    Post subject:  

And thanks again to you, vovchik ! for your great start concept.
For me it's ok for the most as it is, except maybe some help text could be added, do you perhaps have any more ideas for changes or improvement ?

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
josejp2424


Joined: 01 Aug 2010
Posts: 502

PostPosted: Mon 19 Aug 2019, 16:33    Post subject: button exit
Subject description: button exit
 

fredx181 wrote:
And thanks again to you, vovchik ! for your great start concept.
For me it's ok for the most as it is, except maybe some help text could be added, do you perhaps have any more ideas for changes or improvement ?

Fred


the EXIT button should be removed .
because it eliminates the sistray program


_________________
Shiba Inu | Pupjibaro jessie | My Blog
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Mon 19 Aug 2019, 16:50    Post subject:  

josejp2424 wrote:
the EXIT button should be removed .
because it eliminates the sistray program


Not sure if I understand, if you don't want to eliminate the sistray program, then just don't click on EXIT, or are you perhaps saying that for you it eliminates without clicking on EXIT, (accidentally ?)

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
josejp2424


Joined: 01 Aug 2010
Posts: 502

PostPosted: Mon 19 Aug 2019, 17:03    Post subject: button exit
Subject description: button exit
 

fredx181 wrote:
josejp2424 wrote:
the EXIT button should be removed .
because it eliminates the sistray program


Not sure if I understand, if you don't want to eliminate the sistray program, then just don't click on EXIT, or are you perhaps saying that for you it eliminates without clicking on EXIT, (accidentally ?)

Fred


If the exit button is pressed by mistake, the program closes.
and is no longer available in the systray bar.
That is why it should be removed.

_________________
Shiba Inu | Pupjibaro jessie | My Blog
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 44 of 50 [749 Posts]   Goto page: Previous 1, 2, 3, ..., 42, 43, 44, 45, 46, 47, 48, 49, 50 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1533s ][ Queries: 12 (0.1001s) ][ GZIP on ]