Merge pull request #4364 from wwylele/gl-error-tr

citra_qt: fix translation for opengl version error
This commit is contained in:
Weiyi Wang 2018-10-26 22:37:47 -04:00 committed by GitHub
commit 477cda1a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,12 +672,12 @@ bool GMainWindow::LoadROM(const QString& filename) {
render_window->InitRenderTarget(); render_window->InitRenderTarget();
render_window->MakeCurrent(); render_window->MakeCurrent();
const char* below_gl33_title = "OpenGL 3.3 Unsupported"; const QString below_gl33_title = tr("OpenGL 3.3 Unsupported");
const char* below_gl33_message = "Your GPU may not support OpenGL 3.3, or you do not " const QString below_gl33_message = tr("Your GPU may not support OpenGL 3.3, or you do not "
"have the latest graphics driver."; "have the latest graphics driver.");
if (!gladLoadGL()) { if (!gladLoadGL()) {
QMessageBox::critical(this, tr(below_gl33_title), tr(below_gl33_message)); QMessageBox::critical(this, below_gl33_title, below_gl33_message);
return false; return false;
} }
@ -748,7 +748,7 @@ bool GMainWindow::LoadROM(const QString& filename) {
break; break;
case Core::System::ResultStatus::ErrorVideoCore_ErrorBelowGL33: 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; break;
default: default: