Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile       

The time now is Mon 10 Aug 2020, 12:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Trans_tray translation program
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Sun 22 Sep 2019, 06:22    Post subject:  Trans_tray translation program
Subject description: Flexible program for translating text, with many options
 

*** Trans_tray translation program ***

Update 2020-05-29 version 1.1.0 attached, see here for changes info:
http://murga-linux.com/puppy/viewtopic.php?p=1059324#1059324
======================================================

Hi All, attached "trans-tray_1.0.0_noarch.pet" including the latest trans_tray version (v6) and 'trans' see https://github.com/soimort/translate-shell
Development thread: http://murga-linux.com/puppy/viewtopic.php?t=116794
If there comes any further development I will update the .pet accordingly here.
After install it appears in menu category 'Utility'

Requirements:
- gawk (version 4.0 or higher)
Check the gawk version with:
Code:
gawk -V

(most modern Puppies should have it)
- yad (version 0.37 or higher)
(if you have lower version of yad, .pet packages version 0.40 attached below)
- xclip (most puppies have it included)
As stated above the 'trans' script is included in the pet (/usr/local/bin/trans)

Usage: From right-click icon > Help:
----------------------------------------------------------------------------------
*** Trans-tray usage help ***

Make your preferred settings by right clicking on the icon and:
- Select translator, e.g. Google, Bing, Yandex (or All).
(note that Yandex may not work often)
- Select language(s) you wish to translate to (Select target language ...), a list will appear then, selecting multiple languages is supported.

- Select some text (no need to copy, just select it), e.g. in browser or text file.
Then by left-clicking the icon, a window will appear with the translated text.

- From menu (right-click) there are some other options, e.g:
- Preferences, to change some default settings, set text-editor
- Translate webpage
- Dialogue mode for translating to two languages of choice side by side
- Set keyboard layout (temporarily)

For installing or upgrading 'trans', select from Menu 'Install/Upgrade trans'.
Required also is to have 'xclip' installed.
----------------------------------------------------------------------------------

Fred
trans-tray-1.1.0_noarch.pet
Description  trans_tray version 1.1.0
pet

 Download 
Filename  trans-tray-1.1.0_noarch.pet 
Filesize  67.44 KB 
Downloaded  58 Time(s) 
2019-09-22-121927_387x399_scrot.png
 Description   trans_tray icon in system tray
 Filesize   159.06 KB
 Viewed   849 Time(s)

2019-09-22-121927_387x399_scrot.png

yad-0.40-i686.pet
Description  yad 0.40 32-bit
pet

 Download 
Filename  yad-0.40-i686.pet 
Filesize  70.82 KB 
Downloaded  174 Time(s) 
yad-0.40-amd64.pet
Description  yad 0.40 64-bit
pet

 Download 
Filename  yad-0.40-amd64.pet 
Filesize  74.3 KB 
Downloaded  169 Time(s) 

_________________
Dog Linux website
Tinylinux blog by wiak

Last edited by fredx181 on Fri 29 May 2020, 16:18; edited 4 times in total
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Fri 27 Dec 2019, 14:19    Post subject:  

Downloaded almost 100 times and no reply, why ?

Fred

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

Joined: 27 Jun 2013
Posts: 2572
Location: In The Way

PostPosted: Fri 27 Dec 2019, 15:12    Post subject:  

When something is wrong there will be a reply Laughing
Back to top
View user's profile Send private message MSN Messenger 
josejp2424


Joined: 01 Aug 2010
Posts: 558

PostPosted: Fri 27 Dec 2019, 15:14    Post subject: Translate
Subject description: Translate
 

fredx181 wrote:
Downloaded almost 100 times and no reply, why ?

Fred


There is no bug to report.

excellent job, the one they did.

thanks fredx181

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

Joined: 06 Oct 2009
Posts: 607
Location: Scotland

PostPosted: Fri 27 Dec 2019, 15:34    Post subject:  

Hello Fred,
Just seen this and thought I'd give it a try as I have a Christmas card from friends in Germany which has a joke in German. I should be able to translate it myself as I had to do "Technical German" as part of a Chemistry degree, however, this was over 50yrs ago and I don't remember much German. As Google was already ticked I left it to do the translating. Took me a minute or two to work out how to get it to translate. Might be better if "Translate" was one of the choices in the "Trans" window. Here's what I got after translating just six words of German.

Regards,

Ken.
translate.png
 Description   
 Filesize   55.15 KB
 Viewed   470 Time(s)

translate.png

Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 27 Dec 2019, 17:40    Post subject:  

Oh! fredx181 wants a complaint? Wink

Here's one! Laughing

The DeepLTranslator is NOT included in the list of translation engines.
IMO it's the best for European languages.

BFN.
red-since when.jpg
 Description   Partial (cut at the right of the picture, there was no text there).
 Filesize   48.61 KB
 Viewed   456 Time(s)

red-since when.jpg


_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Fri 27 Dec 2019, 18:58    Post subject:  

Thanks all for the replies, I guess I expected at least one thanks and one or more complaints, so it's ok for me now Wink Smile

keniv wrote:
Hello Fred,
Just seen this and thought I'd give it a try as I have a Christmas card from friends in Germany which has a joke in German. I should be able to translate it myself as I had to do "Technical German" as part of a Chemistry degree, however, this was over 50yrs ago and I don't remember much German. As Google was already ticked I left it to do the translating. Took me a minute or two to work out how to get it to translate. Might be better if "Translate" was one of the choices in the "Trans" window. Here's what I got after translating just six words of German.


Yes, one needs to know how it works, from the (right-click) Help:

Quote:
- Select some text (no need to copy, just select it), e.g. in browser or text file.
Then by left-clicking the icon, a window will appear with the translated text.


musher0 wrote:
The DeepLTranslator is NOT included in the list of translation engines.
IMO it's the best for European languages.


Thanks very much for the complaint Laughing
The DeepLTranslator is good indeed but unfortunately it is not supported by "trans" (the underlying program performing the actual translating).

Fred

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


Joined: 25 Apr 2017
Posts: 14
Location: Quebec

PostPosted: Sat 28 Dec 2019, 11:47    Post subject: Tray translator
Subject description: Instant translation
 

Superb !!
Exactly what I needed.

Thanks Fred.
Back to top
View user's profile Send private message 
some1

Joined: 17 Jan 2013
Posts: 123

PostPosted: Sat 28 Dec 2019, 17:39    Post subject:  

@Fred:Nice and enthusiastic work

DeepL have rather restrictive policies with
respect to their property.

The developer of trans can not support DeepL.

https://www.deepl.com/pro-license.html#pro

Google,Bing,Yandex have - seemingly - more lenient policies/strategies.

EU ought to get their act together - and
provide a free top-notch translation-service,
which the locals could hook into.
Back to top
View user's profile Send private message 
keniv

Joined: 06 Oct 2009
Posts: 607
Location: Scotland

PostPosted: Sat 28 Dec 2019, 18:37    Post subject:  

fredx181 wrote:

Yes, one needs to know how it works, from the (right-click) Help:


Quote:
- Select some text (no need to copy, just select it), e.g. in browser or text file.
Then by left-clicking the icon, a window will appear with the translated text.


Yep,when all else fails one should read the instructions. However, this little program is a keeper for me.

Regards,

Ken
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Thu 21 May 2020, 05:28    Post subject: Fix Bing translator  

I've found that the Bing translator doesn't work anymore, but upgrading trans should fix it.
From right-click menu of the tray-icon > Install/Upgrade trans

Fred

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


Joined: 07 Feb 2010
Posts: 3635
Location: wales ... by the sea

PostPosted: Fri 29 May 2020, 13:16    Post subject:  

hi fredx181,

i really like trans_tray and i'm including it i fossapup (as well as your redshift).
i actually use it quite a lot on irc #puppylinux chat.

A feature i would like is for the translate window to display what language the translation is from as it's not always obvious.
at the moment if it isn't obvious you have to make a best guess for the language in 'dialog mode'

cheers

phil

_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Fri 29 May 2020, 14:31    Post subject:  

Hello phil,

Long time back since I looked at the script, but yes, should be possible showing from which language, I'll look into it, I know trans has the --identify option.

Fred

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


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Fri 29 May 2020, 16:09    Post subject:  

New trans_tray version 1.1.0, attached at first post, changes:

- Shows the source language (auto detected) now in the main window, e.g. Translating from Spanish to English...
(may not always be exactly correct)
- Included latest "trans" version, the included one in previous trans_tray version was outdated.

Fred

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


Joined: 07 Feb 2010
Posts: 3635
Location: wales ... by the sea

PostPosted: Mon 01 Jun 2020, 11:40    Post subject:  

perfect!

thanks fredx181

_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.1095s ][ Queries: 13 (0.0252s) ][ GZIP on ]