From e7c213316066f8bc53e661ab6f09e267df49280c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 20 Aug 2023 08:55:46 +0200 Subject: [PATCH] Fixes to translatable strings --- .../Achievements/AchievementSettingsWidget.cpp | 4 ++-- Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp | 2 +- .../Settings/USBDeviceAddToWhitelistDialog.cpp | 10 ++++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp index d2b8f63b6f..f82c27925d 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp @@ -52,8 +52,8 @@ void AchievementSettingsWidget::CreateLayout() m_common_password_label = new QLabel(tr("Password")); m_common_password_input = new QLineEdit(QStringLiteral("")); m_common_password_input->setEchoMode(QLineEdit::Password); - m_common_login_button = new QPushButton(tr("Login")); - m_common_logout_button = new QPushButton(tr("Logout")); + m_common_login_button = new QPushButton(tr("Log In")); + m_common_logout_button = new QPushButton(tr("Log Out")); m_common_login_failed = new QLabel(tr("Login Failed")); m_common_login_failed->setStyleSheet(QStringLiteral("QLabel { color : red; }")); m_common_login_failed->setVisible(false); diff --git a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp index eaa8d4a05b..8af40e8c04 100644 --- a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp +++ b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp @@ -192,7 +192,7 @@ void GraphicsModListWidget::OnModChanged(std::optional absolute_pat if (!absolute_path) { - m_selected_mod_name->setText(QStringLiteral("No graphics mod selected")); + m_selected_mod_name->setText(tr("No graphics mod selected")); m_selected_mod_name->setAlignment(Qt::AlignCenter); return; } diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp index bb0888195e..447175ed46 100644 --- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp +++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp @@ -128,14 +128,16 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist() const std::string pid_string(StripWhitespace(device_pid_textbox->text().toStdString())); if (!IsValidUSBIDString(vid_string)) { - // i18n: Here, VID means Vendor ID (for a USB device). - ModalMessageBox::critical(this, tr("USB Whitelist Error"), tr("The entered VID is invalid.")); + ModalMessageBox::critical(this, tr("USB Whitelist Error"), + // i18n: Here, VID means Vendor ID (for a USB device). + tr("The entered VID is invalid.")); return; } if (!IsValidUSBIDString(pid_string)) { - // i18n: Here, PID means Product ID (for a USB device). - ModalMessageBox::critical(this, tr("USB Whitelist Error"), tr("The entered PID is invalid.")); + ModalMessageBox::critical(this, tr("USB Whitelist Error"), + // i18n: Here, PID means Product ID (for a USB device). + tr("The entered PID is invalid.")); return; }