How to translate text dynamically...?
-
hi,
I am trying to build an application for our POS my application should translate the data in to desired language that obtains form server.
For Ex:-
If i receive a statment from a server the Statement is
"Hai How are you"
And my requirement is this should be translated in to another language say suppose in to
Hindi or Telugu or Tamil into what ever language i want.
Can this be possible to do using Qt...?
if possible what classes can i use to fulfill the requirement..!Please help me,
Thanks & Regards,
Rohith.G -
No, Qt can't do that for you. Maybe you want to take a look at Google Translate's API: https://cloud.google.com/translate/docs/
-
It is not clear for me: is your application going to translate or is your application is going to use a server which will do the translation?
If you're going to use a server which will transfer, then take a look at QNetworkAccessManager: http://doc.qt.io/qt-5/qnetworkaccessmanager.html
Qt itself does not provide the possibility to translate between languages (it is way beyond its focus).
-
@jsulm
Hi jsulm,My application need to translate the data which it received from the server from one language to another language,i.e after receving the data from the sever i need to translate.
I hope you understand now.
Thanks & Regards,
Rohith.G -
@Wieland
Hi Wieland,
Is it possible to do with the google API's in Qt.
just asking to know the possibility..!Thanks & Regards,
Rohith.G -
@Rohith Yes. You would simply use Qt's networking capabilities to send a GET request over HTTPS and the Google Translate server will send you a JSON object that contains the translation. You can then use Qt's JSON module to parse this result.
BTW: As @mrjj noted elsewhere, Google wants to see some cash for the service.
-
@Wieland Thanks for your information.