From 0bf8a4a3fdbd4abcf64577eda402698e9daab54b Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Wed, 11 Sep 2024 16:47:53 +0800 Subject: [PATCH] opt: some entries do not need to be translated --- src/ui/mainwindow.cc | 2 +- src/ui/scanpopup.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index b1d1a617..d9aa581d 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -1971,7 +1971,7 @@ void MainWindow::updateWindowTitle() if ( view ) { QString str = view->getTitle(); if ( !str.isEmpty() ) { - setWindowTitle( tr( "%1 - %2" ).arg( str, "GoldenDict-ng" ) ); + setWindowTitle( QString( "%1 - %2" ).arg( str, "GoldenDict-ng" ) ); } } } diff --git a/src/ui/scanpopup.cc b/src/ui/scanpopup.cc index ed061586..5c4edd00 100644 --- a/src/ui/scanpopup.cc +++ b/src/ui/scanpopup.cc @@ -553,7 +553,7 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus ) } 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 /// wants @@ -916,7 +916,7 @@ void ScanPopup::pinButtonClicked( bool checked ) setAttribute( Qt::WA_MacAlwaysShowToolWindow ); #endif - setWindowTitle( tr( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); + setWindowTitle( QString( "%1 - GoldenDict-ng" ).arg( elideInputWord() ) ); dictionaryBar.setMovable( true ); hideTimer.stop(); }