fix bug tr() in mainwindow