How to get the translated text without loading the translator file?



  • Hello all,

    I have an interesting problem to solve.

    In my application, I want to get the translated text without loading the translator. Is that possible? If yes, Please let me know.

    For better explanation:
    I will have translator files (.ts & .qm).
    But I do not want to use QApplication::tr(""); to do the translation.

    I want something like this:
    // translatedText = GetTranslatedText("Hello");
    // Use translatedText

    Appreciate your feedback..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.