Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to get the translated text without loading the translator file?
kumararajas last edited by
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..