tr("Some Text");
Мне нужно:QString str("some text");
tr(str);
Возможно такое сделать?
tr("Some Text");
Мне нужно:QString str("some text");
tr(str);
QString str = tr("some text");
foo(str);
bar(str);
QString errStr;
if (errNo == 1)
errStr = tr("File '%1' not found").arg(fileName);
else
errStr = tr("Unknown error");
showErrorMsg(tr("Error in the program:\n%1.").arg(errStr));
QStringList translatedOutList;
for (int i = 0; i < outList.count(); ++i) {
translatedOutList.append(tr(outList.at(i)));
}
QStringList translatedOutList;
for (int i = 0; i < outList.count(); ++i) {
translatedOutList.append(tr(outList.at(i)));
}