How to add a built-in translation component?

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
ricky2018
User
Posts: 1
Joined: Sat Nov 24, 2018 2:41 am

How to add a built-in translation component?

Post by ricky2018 »

Hi

I want to add a build-in translation component, where a translation box pops up once a user selects any word or sentence.
Cound our sdk support this and how should I do?

Regards
Ricky
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to add a built-in translation component?

Post by Sasha - Tracker Dev Team »

Hello Ricky,

Yes you can handle the selection change and also see what selection type is used (in your case - the page text selection from which you can get the needed text). Then you can display something like popup or tooltip and show your translation.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply