Unsolved How to get a string's translation with the context ignored?
-
I'd like to translate a string while ignoring the context of it, but
QCoreApplication::translate("", sourceText.toUtf8().constData())
isn't cutting it. Any ideas on what would work? -
Hi
You mean likeQString FriendlyConversation::greeting(int type) { static const char *greeting_strings[] = { QT_TR_NOOP("Hello"), QT_TR_NOOP("Goodbye") }; return tr(greeting_strings[type]); }
http://doc.qt.io/qt-5/i18n-source-translation.html
If they are stored with a context, im not sure its possible to ignore context on fetching as
that would collapse the structure. -
Hm, okay. I'll try sand see if the mailing list has any ideas :)