QInputDialog::getText(this,tr("Open"),tr("New"),QLineEdit::Normal,tr(""),&ok);
the translator is loaded and installed but open and new
don’t get translated
but if i do this :
//define Open and New in the mainwindow header file
QString Open,New;
//then define a new function
rename()
{
Open=tr("Open");
New=tr("New");
}
then
every time i switch the installer i call rename
rename();
QInputDialog::getText(this,Open,New,QLineEdit::Normal,tr(""),&ok);
translation works fine
↧