Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • (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


  • Moderators

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



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


  • Moderators

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



  • Thanks for your quick response Raven.

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


Log in to reply