Page 3 of 4

gxlat - Desktop Google Translator redux

Posted: Fri 30 Sep 2011, 13:08
by L18L
Dear otropogo,

my apologies appearing not very polite...
the purpose of glax described on page 1 of this thread was never changed.

Changed:
    • programming language to BaCon
    • human language of GUI: variable. You can switch between English, Russian and German. You can add if you like Chinese or any other language listed at translate.g**gle.com :)
Cheers
L

ça ne marche pas

Posted: Sat 01 Dec 2012, 21:26
by Pelo
translate it !

Re: ça ne marche pas

Posted: Sat 01 Dec 2012, 22:40
by SFR
Pelo wrote:translate it !
@Pelo @ Vovchik

I just saw that app, wanted to try and indeed, doesn't work.

It looks like Google has shut down this service a year ago.
(Aragon has mentioned this above, too, yet before the fact)

The current version 2 is a paid service:
http://www.i-programmer.info/news/81-we ... tion-.html

I tried to access this service directly via translate.google.com, but the returned results are completely obfuscated...

What a pity...

Greetings!

Je voudrais lui dire 'je 'taime'

Posted: Fri 13 Dec 2013, 18:41
by Pelo
Please can you help me ?
Gxlat does not speak French, ok, but english and russian are in the menu.
Gxlat answer is that "I abuse ?"

Re: Je voudrais lui dire 'je 'taime'

Posted: Fri 13 Dec 2013, 23:15
by Geoffrey
Pelo wrote:Please can you help me ?
Gxlat does not speak French, ok, but english and russian are in the menu.
Gxlat answer is that "I abuse ?"
Google translate is no longer a free service, Gxlat no longer works, you will need to access it via a web browser.

Posted: Fri 06 Jul 2018, 10:53
by vovchik
Dear all,

After many years I decided to update gxlat. There is a great little script (included in the archive) called trans that can deal with Google's new translate API. gxlat now uses that to fetch translations. Just unpack and copy files to the appropriate places. perhaps somebody can make a pet. :)

With kind regards,
vovchik

Posted: Mon 09 Jul 2018, 08:38
by vovchik
Dear all,

A forum friend has kindly provided a pet of gxlat, which is attached here. Thanks. Let me know how this little app works for you...i use it nearly every day for something or other that comes up and needs translation. Your mileage may vary. :)

With kind regards,
vovchik

Posted: Mon 09 Jul 2018, 20:00
by musher0
Hi Vovchik.

Good to see you back! :)

Google Translation, eh? Why not DeepL? Some say it translates better than Google.

Just a thought.

Thanks

Posted: Mon 09 Jul 2018, 20:29
by mikeslr
Thank you, vovchik, and thank your friend for us.

Posted: Mon 09 Jul 2018, 21:12
by vovchik
@ musher0 and mikeslr,

Thanks guys. As I haven't done anything with gtkdialog for a long time (doing things in BaCon, c and c++ lately), perhaps one of you can look at that pesky swap button code. It should, in theory, swap bottom and top languages in the combo boxes and the texts in the edit boxes, but it's not doing that properly. And since trans works so nicely, I think we should stick with it. We could also experiment with the various engines it supports (aspell, google, deepl, bing, spell, hunspell, apertium and yandex). I haven't tried deepl, but it's certainly worth experimenting with. Perhaps there could be a combo box with some of those engines, so the user can try and compare translations. And a checkbox for sound might be good, too, since trans can play audio. :)

In any case, I hope it is working reasonably now.

With kind regards,
vovchik

Posted: Tue 10 Jul 2018, 12:11
by vovchik
Dear all,

I updated gxlat. It now allows you to select the translation engine via a combbox and also can let you hear the translation (if the service provides this option) by enabling the Sound checkbox. Google and Bing are pretty good regarding sound availability. You need to have mplayer, mpv, espeak or mpg123 installed to get sound. You first will hear the translation and then get the translated text in the bottom text box. Enjoy. :)

With kind regards,
vovchik

Posted: Sat 28 Jul 2018, 14:11
by BarryK
What a great app!

I have posted about it on my blog:

http://bkhome.org/news/201807/gxlat-lan ... lator.html

Fixed a couple of things in the PET, and bumped the version to 0.4, uploaded here:

http://distro.ibiblio.org/easyos/noarch ... at-0.4.pet

...let me know if I did anything wrong with the changes that I made.

Posted: Sat 28 Jul 2018, 23:04
by technosaurus
When L18l was using my alternative to gettext, I wrote up a shell function that used Google translate to automatically generate translated strings. That function could be useful to add to your app for .po files. Let me know if you are interested and I will dig up the thread. One part that I know will need to be changed (besides using po files) is that it generates results for all supported language even if it already exists. Honestly, it probably belongs in the woof build process too, but it needs to be tested and having a nice GUI for translating installed apps could help with our severe lack of localization.

Posted: Sat 04 Aug 2018, 13:46
by MochiMoppel
I can't get any version to work in slacko 5.6 :cry:
Obviously a problem with trans and not with the gxlat GUI

Code: Select all

trans -e google -brief -sl en -tl fr Example

Posted: Sun 05 Aug 2018, 02:56
by slavvo67
The "Swap" button only moves to: over to the from:field but the to: field stays the same. Would be nice if you started typing the language in the box and it goes to that letter. Overall, minor issues. Well done!

Slavvo67

Posted: Wed 08 Aug 2018, 12:15
by Argolance
Bonjour,
MochiMoppel wrote:I can't get any version to work in slacko 5.6 :cry:
Obviously a problem with trans and not with the gxlat GUI
I had the same issue running Puppy 5.7.1/ToOpPy 2.2 and it appears that "trans" had nothing to do with! I compiled/installed latest gawk release from :arrow: sources here, then gxlat worked great, though "Google" engine is far from giving the best translations: nothing to do with the results obtained with DeepL which seems not working here!

Code: Select all

#trans -e google -brief -sl en -tl fr "The "Swap" button only moves to: over to the from:field but the to: field stays the same. Would be nice if you started typing the language in the box and it goes to that letter. Overall, minor issues. Well done!"
Le bouton Permuter ne se déplace que vers: sur le champ from: mais le champ to: reste le même. Serait bien si vous avez commencé à taper la langue dans la boîte et il va à cette lettre. Dans l'ensemble, problèmes mineurs. Bien joué! 
It might be nice to change the image displayed at the top of the window according to the selected engine.

@vovchik
Thank you for this "great app"!
May I say that it is a pity that such a GUI was not built to allow internationalization? :(


Cordialement.

Posted: Tue 14 Aug 2018, 04:46
by MochiMoppel
Argolance wrote:I had the same issue running Puppy 5.7.1/ToOpPy 2.2 and it appears that "trans" had nothing to do with! I compiled/installed latest gawk release from :arrow: sources here, then gxlat worked great
Bonjour Argolance
well, IMO trans has something to do with it Error detection is one of the jobs of a script, and if gawk spills out errors trans should handle this situation and not go on as if nothing has happened.

Nevertheless that wouldn't help me much as my ultimate goal is to use trans in my own projects. I can't expect users to update to the latest gawk just for using my program.

I have gawk version 3.1.8 , which is 8 years old, but so is gxlat. I wonder why gxlat ever worked before and why it now requires the newest gawk. Maybe there is another reason?

Posted: Tue 14 Aug 2018, 12:26
by BarryK
MochiMoppel wrote:
Argolance wrote:I had the same issue running Puppy 5.7.1/ToOpPy 2.2 and it appears that "trans" had nothing to do with! I compiled/installed latest gawk release from :arrow: sources here, then gxlat worked great
Bonjour Argolance
well, IMO trans has something to do with it Error detection is one of the jobs of a script, and if gawk spills out errors trans should handle this situation and not go on as if nothing has happened.

Nevertheless that wouldn't help me much as my ultimate goal is to use trans in my own projects. I can't expect users to update to the latest gawk just for using my program.

I have gawk version 3.1.8 , which is 8 years old, but so is gxlat. I wonder why gxlat ever worked before and why it now requires the newest gawk. Maybe there is another reason?
argolance,
Were you previously using the busybox gawk applet in ToOpPy?

Posted: Tue 14 Aug 2018, 18:48
by Keef
The trans script is from here:
https://github.com/soimort/translate-shell
Dependencies

GNU Awk (gawk) 4.0 or later
This program relies heavily on GNU extensions of the AWK language, which are non-portable for other AWK implementations (e.g. nawk).
How to get gawk:
gawk comes with all GNU/Linux distributions.
On FreeBSD, gawk is available in the ports.
On macOS, gawk is available in MacPorts and Homebrew.
GNU Bash or Zsh
You may use Translate Shell from any Unix shell of your choice (bash, zsh, ksh, tcsh, fish, etc.); however, the wrapper script requires either bash or zsh installed.
I used to use the translate cli script that it used to be, but it stopped working a while back.

Posted: Tue 14 Aug 2018, 20:17
by vovchik
Dear all,

Thanks for the comments. The trans prog (including URL) is explained in the readme - click that button in Help. Many have given me a lot of good suggestions, so I will try to incorporate those in a subsequent version (favourites, swap fix, logo change depending on xlat engine). I didn't run into any problems with trans or gawk since I am using version 4.0.1. Version 4.0 is a requirement, it seems. Let's hope Google does not change its API. :)

With kind regards,
vovchik