filebrowser: making the string more flexible for i18n

This commit is contained in:
liushuyu
2019-11-23 23:05:25 -07:00
parent b11e8eb33b
commit a9e3e70ae3

View File

@@ -444,8 +444,7 @@ void FileBrowserTreeWidget::mousePressEvent(QMouseEvent * me )
if( !dataFile.validate( f->extension() ) )
{
QMessageBox::warning( 0, tr ( "Error" ),
f->fullName() + " " + tr( "does not appear to be a valid" ) + " " + f->extension() +
" " + tr( "file" ),
tr( "%1 does not appear to be a valid %2 file" ).arg( f->fullName(), f->extension() ),
QMessageBox::Ok, QMessageBox::NoButton );
m_pphMutex.unlock();
return;