Translation using QCoreApplication::translate
General and Desktop
3
Posts
2
Posters
1.4k
Views
1
Watching
-
Hi,
Without your code it's pretty much Crystal Ball Debugging. Please share your function code.
-
Yeah,
The function is
void Translate (const QString& context, const QString& str, QString& translation)
{
translation = QCoreApplication::translate (context.toLatin1 (), str.toLatin1 ());
}Then the context and str is passed which should be translated. But when I run lupdate nothing is translated and ts file is not updated.
Do you have any idea?
Maahi