qt: Make "Failed to init Vulkan" error translatable
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <QScreen>
|
||||
#include <QMessageBox>
|
||||
#include <QTouchEvent>
|
||||
#include <QStringBuilder>
|
||||
|
||||
#ifdef __APPLE__
|
||||
# include <CoreGraphics/CoreGraphics.h>
|
||||
@@ -393,7 +394,7 @@ RendererStack::createRenderer(Renderer renderer)
|
||||
});
|
||||
connect(hw, &VulkanWindowRenderer::errorInitializing, [=]() {
|
||||
/* Renderer could not initialize, fallback to software. */
|
||||
auto msgBox = new QMessageBox(QMessageBox::Critical, "86Box", QString("Failed to initialize Vulkan renderer.\nFalling back to software rendering."), QMessageBox::Ok);
|
||||
auto msgBox = new QMessageBox(QMessageBox::Critical, "86Box", tr("Failed to initialize Vulkan renderer.") % tr("\nFalling back to software rendering."), QMessageBox::Ok);
|
||||
msgBox->setAttribute(Qt::WA_DeleteOnClose);
|
||||
msgBox->show();
|
||||
imagebufs = {};
|
||||
|
||||
Reference in New Issue
Block a user