Google Translate Service

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Hi Tenaja,

Thank you for your post.

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

Updated:
- added option to delete cache under certain error conditions
- improved the History Viewer
- replaced Voice Accent with Translate URL

No User Interface (animated GIF was created using the Video Snipping Tool):
-- Change Target Language to French.
-- Remove all indications that Google Translate Service is running.
-- Write forum post in English.
1. Highlight forum post text.
2. Press Ctrl + F5 keys.
-- Highlighted text is translated from English to French.

Animation created using Video Snipping Tool
Image
Last edited by JHPJHP on Wed Mar 24, 2021 3:27 pm, edited 2 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- added URL List
- some minor improvements

URL List
The first option from the Translate URL ComboBoxGadget is EDIT URL LIST.
Selecting this option will open the URL List window; the Translate URL list can be modified from here.
The Translate URL ComboBoxGadget can be accessed from Clipboard Viewer and Translate Panel.
Use the context-menu to quickly add or remove all items.

NB*: The examples located in Windows Services & Other Stuff\Other_Stuff\GoogleTranslate\ were also updated.

Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- modified how the URL is loaded
- numerous improvements

Due to recent changes to the Google Translate website, updating to the latest version is now recommended.

NOTE: If a communication error occurs the program will auto-clear the IE cache.

NB*: The examples located in Windows Services & Other Stuff\Other_Stuff\GoogleTranslate\ were also updated with the latest changes.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- added Upload File and Translate (menu option)
- modified database reset script (database\TranslateDB.pb)

Upload File and Translate
Interfaced the Document button from the Google Translate website; the following file formats are now supported.
- .doc, .docx, .odf, .pdf, .ppt, .pptx, .ps, .rtf, .txt, .xls, .xlsx
- use the context-menu to Copy Selection, Select All, Clear Selection, Find Text, Print Document

PDF Translated from English to German
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- added Startup Options
- improved Disable Ctrl Keys
- modified database reset script (database\TranslateDB.pb)
- various other enhancements
- squashed a small bug
Last edited by JHPJHP on Tue Mar 15, 2022 9:19 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- modified screen-scrape algorithms
- optimized various parts of the code

Screen-Scrape Algorithms
As the Google Translate website changes, so the programs (screen-scrape) algorithms needed changing.
While the main translating features work, due to added restrictions to the IE browser, the following features are no longer available.
- Listen / Stop Translated Help Text (help button)
- Listen / Stop Clipboard Translation (clipboard button)
- Listen / Stop Selection (Ctrl + F6 : drag & drop)
- Listen / Stop Translation (Ctrl + F7 : drag & drop)
- Upload File and Translate (context menu option)

NB*: Windows Services & Other Stuff\Other_Stuff\GoogleTranslate\... was also updated.

Image Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- fixed translate scripts

Due to recent changes to the Google Translate website, updating to the latest version is now recommended.

NB*: The examples located in Windows Services & Other Stuff\Other_Stuff\GoogleTranslate\ were also updated with the latest changes.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Google Translate Service

Post by JHPJHP »

Updated:
- fixed an error of my own making

It seems the problem occurred when I made a blanket change to the User-Agent for all three Google apps:
- YouTube Player & Downloader
- Google Translate Service
- Geolocation: Google Maps

I should not have changed the User-Agent for Google Translate Service, but in my defense these three applications are holding on by a thread.
Google has already stated that Internet Explorer is no longer supported, and these three applications use the PureBasic WebGadget.

The obvious choice is to rewrite these three applications using Chromium WebGadget, but like everything it comes down to time.

NB*: The examples located in Windows Services & Other Stuff\Other_Stuff\GoogleTranslate\ were also updated with the latest changes.
Locked