How to translate text dynamically...?
-
wrote on 11 May 2016, 08:51 last edited by
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 -
wrote on 11 May 2016, 08:59 last edited by
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).
-
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).
wrote on 11 May 2016, 09:35 last edited by@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 -
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/
wrote on 11 May 2016, 09:40 last edited by@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 -
@Wieland
Hi Wieland,
Is it possible to do with the google API's in Qt.
just asking to know the possibility..!Thanks & Regards,
Rohith.Gwrote on 11 May 2016, 09:47 last edited by A Former User 5 Nov 2016, 09:50@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.
-
@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.
wrote on 11 May 2016, 09:59 last edited by@Wieland Thanks for your information.
-
wrote on 13 May 2016, 11:44 last edited by
@Wieland
Hi Wieland as i have asked earlier are there any OPEN SOURCE API's apart from the Google api's that can help to solve my requirement.
Please Let me know
Regards,
Rohith.G -
@Wieland
Hi Wieland as i have asked earlier are there any OPEN SOURCE API's apart from the Google api's that can help to solve my requirement.
Please Let me know
Regards,
Rohith.Gwrote on 13 May 2016, 12:01 last edited by A Former User@Rohith I don't know. Use Google Search to find it out!
9/9