It is currently Sat Jan 16, 2021 6:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Google Translate Service
PostPosted: Thu Oct 22, 2020 5:02 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
-----------------------------------------------------------------------------------

Download Google Translate Service from My PureBasic Stuff

-----------------------------------------------------------------------------------

Tricks 'n' Tips
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB Image Steganography
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Stitch Images: SIFT
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Barcode Generator
Google Translate Service
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

-----------------------------------------------------------------------------------

Using the PureBasic WebGadget and the technology behind Google Translate, combined with some inventive programming, I was able to produce what I hope is a fairly stable tool.

My original intent was to create a Windows Service that ran in the background, to simplify translating forum messages, documents, etc. to and from any language.
As I continued programming it became obvious that it was better as a tool then a service, but I liked the name so I kept it.

The Google Translate "Service" can run window-less, without any indication that it's active, utilizing Ctrl keys to perform various actions.
Ctrl + F4 ★ Copy Translation
Ctrl + F5 ★ Copy • Paste Translation
Ctrl + F6 ★ Listen • Stop Selection
Ctrl + F7 ★ Listen • Stop Translation
Ctrl + Esc ★ Terminate Translate Service


Other options are to work from the window interface or a combination of the two; from simple translation to more advanced text replacement.

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Thu Oct 22, 2020 5:03 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Clipboard Viewer with Context Menu and Options Panel

The first three Ctrl "buttons" at the bottom of the Clipboard Viewer are clickable and the next four are draggable, simulating Ctrl key actions.
From Clipboard Viewer's context menu, under Advanced Options is a simple yet powerful feature that utilizes Regular Expressions for text replacement.

Image Image Image

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Thu Oct 22, 2020 6:54 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Thu Oct 22, 2020 5:03 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Updated:
- various updates and improvements

NOTES:
All downloads require an access key.
Access key is emailed after a one time $10 CAD donation.
Good for all current and future scripts, programs, and updates.

------------------------------------------------------

Here is a short animation demonstrating one of the Google Translate Service features; animation created using the Video Snipping Tool.
- copied a selection of code to the clipboard
- used an existing Regular Expression to filter the list
- removed parts of the list not wanting translated
- translated the remaining list
- applied the translated filter

Image

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Fri Oct 23, 2020 12:00 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Jun 05, 2020 12:47 am
Posts: 128
Hi!

Can you explain me what is your program for?

Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Fri Oct 23, 2020 8:46 am 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
This looks great for getting translation strings for app or games.

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 24, 2020 3:27 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Hi AMpos,

DoubleDutch wrote:
This looks great for getting translation strings for app or games.

Here are just a few more features...

Multiple Modes:
- Window-less: Close the Clipboard Viewer
- Semi-Transparent: Double-click the Clipboard Viewer window
- Extended: Set from the Clipboard Viewer context menu
- Minified: Set from the Clipboard Viewer context menu

Forum posts, documents, emails, etc. can be written in your native language, then translated in-place.
- select the text you want translated
- press CTRL + F5 to replace the selected text with the translated text

NOTE: Ctrl keys can be disabled; the F4 - F7 buttons located at the bottom of the Clipboard Viewer are draggable, simulating their key action when dropped onto selected text.

Copy and translate text documents up to 100,000 characters into the Clipboard Viewer.
Listen to selected text, read aloud, translated into your native language.

When the option URL Hotspots is enabled from the context menu, web hyperlinks within the Clipboard Viewer can be clicked, opening your default browser to the translated webpage.

NB*: As with everything I have written in PureBasic, the full source code is included with the download.

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 24, 2020 9:59 am 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
Amazing value for money. I'll pay the access fee and take a better look sometime this weekend. Thanks for making the code available. :)

Update: Paid (see deluxepixel donation)

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 24, 2020 3:03 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Hi DoubleDutch,

DoubleDutch wrote:
Amazing value for money. I'll pay the access fee and take a better look sometime this weekend. Thanks for making the code available.

Thank you very much for your donation, I hope you find something useful or at least entertaining.
Your access key was emailed to the address you provided through PayPal.

You may also want to take a look at Windows Services & Other Stuff, it contains additional Google Translate scripts...
\Other_Stuff\GoogleTranslate\GoogleTranslate.pb: original version without the graphics overhead
\Other_Stuff\GoogleTranslate\GoogleTranslate_DLL.pb: DLL version (see scripts folder) for processing files

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 24, 2020 5:40 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
Thanks. I'll be using your routines in my internal tools for translating my games ( See: https://deluxepixel.com/games ). :)

(once I update them and use it, I'll put a link to your site...)

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 24, 2020 7:00 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Hi DoubleDutch,

"DoubleDutch wrote:
I'll be using your routines in my internal tools for translating my games

If you notice any problems or have improvement suggestions, please don't hesitate to post here or @ My PureBasic Stuff.

Just visited Deluxe Pixel Limited and played Zombie Rocks! and Save the Martians! (fun sound effects); great games, and I really liked the online playability.

Also visited your Twitter profile... very cool that in 1989 you made a game for the NES.

Here is one of two attempts I tried at creating a retro style game: Invading Space Aliens; both games are available from my website.

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 24, 2020 7:45 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
Glad you like them. I make them with my kids to show how we used to code them in the 'old days'. :)

Zombie Rocks is basically a mix of Boulderdash and Dig Dug - it's a work in progress.

Save the Martians was basically something I made to show kids how to start coding a simple game for Code Club (an hour a week showing 8 to 10 year olds how to code).

Here is an advert for the NES game: https://www.youtube.com/watch?v=IsvPcTQL6zk

I'll take a look at your games on the site later tonight (downloading everything!)...

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 31, 2020 7:42 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Updated:
- added Timeout Patch
- couple minor improvements
- squashed a couple bugs

Because the WebGadget uses IE11 and most of my testing was with Edge, I'm just now finding quirks that only occur in IE when translating from some of the more obscure languages...

Removed Time Out from Options Panel and replaced it with Timeout Patch.

Timeout Patch
If a timeout warning occurs during a translation, it might be due to an IE limitation. Enabling Timeout Patch might fix the issue, but slows the translation process.

NB*: The scripts located in Windows Services & Other Stuff\Other_Stuff\GoogleTranslate have also been updated.

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Sun Nov 01, 2020 2:40 am, edited 4 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Sat Oct 31, 2020 7:42 pm 
Offline
New User
New User

Joined: Fri Oct 30, 2020 6:59 pm
Posts: 7
Be careful with Google Translate though, if you're planning to use it for anything resembling commercial and/or professional uses, you'd better have someone ready to touch up (read: rewrite entirely) the translation. I recently had the "pleasure" to deal with Google-translated news articles when writing a piece about the citizenship by investment in Spain https://tranio.com/spain/passport/ at work, and it was easier for me to go find the original Spanish text, guess what I could deduce from what sounded close to French and Italian (since I speak these languages) and search for difficult words on Reverso or similar online translation services.
If you're looking to translate words or short 2-3 word series, though, it could do the trick.


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Tue Nov 03, 2020 4:56 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1700
Updated:
- added History Viewer
- some minor improvements

History Viewer
Available from the context-menu.

NB*: The StringGadget can be used to filter by partial (case insensitive) Date / Time, Translate Text, or Translation Text.

Image

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Translate Service
PostPosted: Tue Nov 03, 2020 11:19 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 1719
Thanks for sharing--this looks like it could come in handy.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 42 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye