opt: some entries do not need to be translated
Some checks failed
SonarCloud / Build and analyze (push) Waiting to run
deploy_website / deploy (push) Has been cancelled

This commit is contained in:
Xiao Yi Fang 2024-09-11 16:47:53 +08:00 committed by shenleban tongying
parent 6abe288f16
commit 0bf8a4a3fd
2 changed files with 3 additions and 3 deletions

View file

@ -1971,7 +1971,7 @@ void MainWindow::updateWindowTitle()
if ( view ) { if ( view ) {
QString str = view->getTitle(); QString str = view->getTitle();
if ( !str.isEmpty() ) { if ( !str.isEmpty() ) {
setWindowTitle( tr( "%1 - %2" ).arg( str, "GoldenDict-ng" ) ); setWindowTitle( QString( "%1 - %2" ).arg( str, "GoldenDict-ng" ) );
} }
} }
} }

View file

@ -553,7 +553,7 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus )
} }
if ( ui.pinButton->isChecked() ) if ( ui.pinButton->isChecked() )
setWindowTitle( tr( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); setWindowTitle( QString( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) );
/// Too large strings make window expand which is probably not what user /// Too large strings make window expand which is probably not what user
/// wants /// wants
@ -916,7 +916,7 @@ void ScanPopup::pinButtonClicked( bool checked )
setAttribute( Qt::WA_MacAlwaysShowToolWindow ); setAttribute( Qt::WA_MacAlwaysShowToolWindow );
#endif #endif
setWindowTitle( tr( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); setWindowTitle( QString( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) );
dictionaryBar.setMovable( true ); dictionaryBar.setMovable( true );
hideTimer.stop(); hideTimer.stop();
} }