Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get complete strings and its translation from QTranslator object?
Forum Updated to NodeBB v4.3 + New Features

How to get complete strings and its translation from QTranslator object?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.2k 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.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by
    #1

    (Reposting in right place)

    Hello Guys,

    I have another interesting problem to solve.

    In my application, am using QApplication::tr() to translate the strings.

    And, I use QTranslator object to load the translator files on the application..

    What i need is,
    Since, QTranslator object is pointing or containing strings and its translations present in qm file, Is there a way where i can get all the strings and its translations?
    Is that possible?

    Please let me know..

    Appreciate your feedback again..

    Thanks,
    Kumar

    --Kumar

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      whats the difference to this "question":http://qt-project.org/forums/viewthread/32712/ of yours?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kumararajas
        wrote on last edited by
        #3

        Hi Raven,

        There is a slight difference..

        The another question is, with the string in hand, how to avoid loading translation to the application.

        In this case, I have a language loaded to the application using "install translator".

        Here, I want to get all the strings and its translations.

        We can use this for again, testing purpose.

        Was i clear? Please let me know.

        --Kumar

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          i'm afraid that the QTranslator API is too weak for this, but i might be wrong.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kumararajas
            wrote on last edited by
            #5

            Thanks for your quick response Raven.

            Kindly let me know if you get any thoughts on this...

            --Kumar

            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 Extensions
            • Unsolved