Hostel
19th November 2010, 00:00
I made a translate in Qt Linguist but I have a problem with one object. In constructor I have:
WindowA::WindowA(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::WindowA)
{
(...)
acClose = ui->menuBar->addAction( tr( "Close", "menu" ) );
(...)
}
acClose is a QAction* which I decleared in WindowA.
WindowA has a QTranslator as member.
In my program I have menu for changing language. When I choose another lang, then application translate all text but not this "Close" label for acClose.
How to resolve this?
WindowA::WindowA(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::WindowA)
{
(...)
acClose = ui->menuBar->addAction( tr( "Close", "menu" ) );
(...)
}
acClose is a QAction* which I decleared in WindowA.
WindowA has a QTranslator as member.
In my program I have menu for changing language. When I choose another lang, then application translate all text but not this "Close" label for acClose.
How to resolve this?