Trans_tray translation program

Miscellaneous tools
Post Reply
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

Trans_tray translation program

#1 Post by fredx181 »

*** Trans_tray translation program ***

Update 2020-05-29 version 1.1.0 attached, see here for changes info:
http://murga-linux.com/puppy/viewtopic. ... 24#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: Select all

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
Attachments
trans-tray-1.1.0_noarch.pet
trans_tray version 1.1.0
(67.44 KiB) Downloaded 146 times
2019-09-22-121927_387x399_scrot.png
trans_tray icon in system tray
(159.06 KiB) Downloaded 842 times
yad-0.40-i686.pet
yad 0.40 32-bit
(70.82 KiB) Downloaded 238 times
yad-0.40-amd64.pet
yad 0.40 64-bit
(74.3 KiB) Downloaded 240 times
Last edited by fredx181 on Fri 29 May 2020, 20:18, edited 4 times in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#2 Post by fredx181 »

Downloaded almost 100 times and no reply, why ?

Fred

stemsee

#3 Post by stemsee »

When something is wrong there will be a reply :lol:

User avatar
josejp2424
Posts: 556
Joined: Sun 01 Aug 2010, 22:35
Contact:

Translate

#4 Post by josejp2424 »

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

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#5 Post by keniv »

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.
Attachments
translate.png
(55.15 KiB) Downloaded 463 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

Oh! fredx181 wants a complaint? ;)

Here's one! :lol:

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

BFN.
Attachments
red-since when.jpg
Partial (cut at the right of the picture, there was no text there).
(48.61 KiB) Downloaded 449 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#7 Post by fredx181 »

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: :)
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:
- 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 :lol:
The DeepLTranslator is good indeed but unfortunately it is not supported by "trans" (the underlying program performing the actual translating).

Fred

User avatar
bpuppy
Posts: 14
Joined: Tue 25 Apr 2017, 13:03
Location: Quebec

Tray translator

#8 Post by bpuppy »

Superb !!
Exactly what I needed.

Thanks Fred.

some1
Posts: 117
Joined: Thu 17 Jan 2013, 11:07

#9 Post by some1 »

@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.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#10 Post by keniv »

fredx181 wrote: Yes, one needs to know how it works, from the (right-click) Help:
- 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

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

Fix Bing translator

#11 Post by fredx181 »

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

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#12 Post by 666philb »

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

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#13 Post by fredx181 »

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

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#14 Post by fredx181 »

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

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#15 Post by 666philb »

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

User avatar
pcplague2
Posts: 36
Joined: Sat 09 May 2020, 09:53
Location: Barreiro (near Lisbon) - Portugal

#16 Post by pcplague2 »

User pencilandpaper in the forum freenode/#puppylinux requested to send you fredx181 a big thanks for the program.
He's not registered in the forum.

Keep up the good work.

Thanks

Paulo Pestana
Paulo Pestana <- All the way from Portugal 8)

Post Reply