Skip to content

Commit

Permalink
filebrowser: making the string more flexible for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Nov 24, 2019
1 parent b11e8eb commit a9e3e70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/FileBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9e3e70

Please sign in to comment.