BalaQT
4th May 2011, 11:48
hi,
I'm using linguist to translate the following, (environment: ubuntu,qt4.7)
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
QTranslator translator;
QString txt1="text";
translator.load("testLang");
qApp->installTranslator(&translator);
ui->setupUi(this);
l=new QLabel(this);
l->setText(tr("file %1").arg(txt1));
}
But I'm getting the following warning:
QString::arg: Argument missing: test translatedText, text
(translatedText: The text translated in the target language.)
what's the possible cause , how can i get rid of this?
Thanks in advance.
Bala
I'm using linguist to translate the following, (environment: ubuntu,qt4.7)
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
QTranslator translator;
QString txt1="text";
translator.load("testLang");
qApp->installTranslator(&translator);
ui->setupUi(this);
l=new QLabel(this);
l->setText(tr("file %1").arg(txt1));
}
But I'm getting the following warning:
QString::arg: Argument missing: test translatedText, text
(translatedText: The text translated in the target language.)
what's the possible cause , how can i get rid of this?
Thanks in advance.
Bala