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).
-
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).
-
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/
-
@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.
-
@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
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@Rohith I don't know. Use Google Search to find it out!