Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Translator
Qt 6.11 is out! See what's new in the release blog

Translator

Scheduled Pinned Locked Moved General and Desktop
28 Posts 9 Posters 18.8k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    blex
    wrote on last edited by
    #6

    In Qt installation in examples directory just look on webkit\previewer and richtext\textobject

    But it is not exactly what you want. It is just examples of UI.

    Work with dictionary is implemented, as I said above, in GoldenDict. Sources are available and it is Qt-based.

    Translation-engine is not Qt-related part, I do not know about any free implementation.


    Oleksiy Balabay

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #7

      i tried searching for an example of any sample translation program in qt4 that translates a word from one language to another ; but to no avail.please help

      1 Reply Last reply
      0
      • B Offline
        B Offline
        blex
        wrote on last edited by
        #8

        No such example. To translate the word you need a dictionary. Dictionary is not a part of Qt.

        I show you above one example that already does it, but it is rather complex.


        Oleksiy Balabay

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alexander
          wrote on last edited by
          #9

          Which dictionary do you want to use? online?

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #10

            yea.maybe using the google translate api or some kind of dictionary integrated into a simple translator program ..

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #11

              i used 2 textedit to write the word,2 combox for selection of one language to another and a push button called "Translate" to translate the word based from the 2 combobox... now my idea is that is there any api or something i could use to integrate with this simple program... an example of how to create it would be helpful or beneficial

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #12

                anyways.i have a source code of a translator program a friend of mines did.apparently it did not produce the translated word.... but it gave this application output
                "
                QMetaObject::connectSlotsByName: No matching signal for on_translate_clicked()
                Langs setted
                Lang flags configured...
                Last pair loaded
                All buttons are connected
                "

                anyone that is willing to help , i can send the source code with the folder.....an email will be preferable

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  alexander
                  wrote on last edited by
                  #13

                  is it gpl or commercial program ?

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #14

                    tunde, looks like there was a button named translate (I think it was main button of app and it did actual translating) and it was renamed. Try to rename it back to translate.

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #15

                      gpl program

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #16

                        actually "Translate" was the push button for the application and on_translate_clicked() was the function to translate from a text edit to another text edit with the languages provided

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #17

                          i can provide the source code but it is kinda large

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            anselmolsm
                            wrote on last edited by
                            #18

                            tunde, use a source code hosting service (e.g. "gitorious":http://gitorious.org/, "github":https://github.com/, etc) then just post the link here :-)

                            Anselmo L. S. Melo (anselmolsm)

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              DenisKormalev
                              wrote on last edited by
                              #19

                              tunde, I'm not saying about title but about its name in .ui file.

                              1 Reply Last reply
                              0
                              • ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #20

                                You have the shell of the app which is a good start, now you need the 'meat', the actual text translating functionality. I recommned you implement Google Translate API "from here":http://code.google.com/apis/language/translate/overview.html to do the translation for you. They have documentation and example source code as well.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  stukdev
                                  wrote on last edited by
                                  #21

                                  Yes, use Google API, is the simple way!

                                  Something like this "Qt App":http://qt-apps.org/content/show.php/QGoogleTranslator?content=135221

                                  1 Reply Last reply
                                  0
                                  • ? Offline
                                    ? Offline
                                    A Former User
                                    wrote on last edited by
                                    #22

                                    i created a little english to chinese translator using the google translate api;however, it does not show the translated text..the source code can be seen on
                                    https://github.com/tigertown/chinese-translator

                                    help will be appreciated

                                    1 Reply Last reply
                                    0
                                    • ? Offline
                                      ? Offline
                                      A Former User
                                      wrote on last edited by
                                      #23

                                      feel free to make amendments on that link

                                      1 Reply Last reply
                                      0
                                      • ? Offline
                                        ? Offline
                                        A Former User
                                        wrote on last edited by
                                        #24

                                        i created a little english to chinese translator using the google translate api;however, it does not show the translated text..the source code can be seen on

                                        https://github.com/tigertown/chinese-translator

                                        help will be appreciated

                                        feel free to make amendments to the code on that link..thanks

                                        1 Reply Last reply
                                        0
                                        • V Offline
                                          V Offline
                                          vsorokin
                                          wrote on last edited by
                                          #25

                                          tunde, QHttp is obsolete class now. Use QNetworkAccessManager.

                                          --
                                          Vasiliy

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt
                                          • Unsolved