Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to translate text dynamically...?
QtWS25 Last Chance

How to translate text dynamically...?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
translateqt 4.7.4qt 5.5.0
9 Posts 3 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rohith
    wrote on 11 May 2016, 08:51 last edited by
    #1

    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

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 11 May 2016, 08:59 last edited by
      #2

      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/

      R 1 Reply Last reply 11 May 2016, 09:40
      0
      • J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 11 May 2016, 09:01 last edited by
        #3

        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).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply 11 May 2016, 09:35
        0
        • J jsulm
          11 May 2016, 09:01

          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).

          R Offline
          R Offline
          Rohith
          wrote on 11 May 2016, 09:35 last edited by
          #4

          @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

          1 Reply Last reply
          0
          • ? A Former User
            11 May 2016, 08:59

            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/

            R Offline
            R Offline
            Rohith
            wrote on 11 May 2016, 09:40 last edited by
            #5

            @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

            ? 1 Reply Last reply 11 May 2016, 09:47
            0
            • R Rohith
              11 May 2016, 09:40

              @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

              ? Offline
              ? Offline
              A Former User
              wrote on 11 May 2016, 09:47 last edited by A Former User 5 Nov 2016, 09:50
              #6

              @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.

              R 1 Reply Last reply 11 May 2016, 09:59
              0
              • ? A Former User
                11 May 2016, 09:47

                @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.

                R Offline
                R Offline
                Rohith
                wrote on 11 May 2016, 09:59 last edited by
                #7

                @Wieland Thanks for your information.

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Rohith
                  wrote on 13 May 2016, 11:44 last edited by
                  #8

                  @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

                  ? 1 Reply Last reply 13 May 2016, 12:01
                  0
                  • R Rohith
                    13 May 2016, 11:44

                    @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

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on 13 May 2016, 12:01 last edited by A Former User
                    #9

                    @Rohith I don't know. Use Google Search to find it out!

                    1 Reply Last reply
                    0

                    1/9

                    11 May 2016, 08:51

                    • Login

                    • Login or register to search.
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved