From 92b1a5c546b765a0f116d4d24388139b54a786fb Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Thu, 25 Oct 2018 14:30:46 -0400 Subject: [PATCH] citra_qt: fix translation for opengl version error variable in tr() won't trigger linguist to generate translation entry. Instead it needs a string literal --- src/citra_qt/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 669ced7f6e..1c127a5927 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -667,12 +667,12 @@ bool GMainWindow::LoadROM(const QString& filename) { render_window->InitRenderTarget(); render_window->MakeCurrent(); - const char* below_gl33_title = "OpenGL 3.3 Unsupported"; - const char* below_gl33_message = "Your GPU may not support OpenGL 3.3, or you do not " - "have the latest graphics driver."; + const QString below_gl33_title = tr("OpenGL 3.3 Unsupported"); + const QString below_gl33_message = tr("Your GPU may not support OpenGL 3.3, or you do not " + "have the latest graphics driver."); if (!gladLoadGL()) { - QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message)); + QMessageBox::critical(this, below_gl33_title, below_gl33_message); return false; } @@ -743,7 +743,7 @@ bool GMainWindow::LoadROM(const QString& filename) { break; case Core::System::ResultStatus::ErrorVideoCore_ErrorBelowGL33: - QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message)); + QMessageBox::critical(this, below_gl33_title, below_gl33_message); break; default: