diff --git a/src/citra_qt/camera/qt_camera_factory.cpp b/src/citra_qt/camera/qt_camera_factory.cpp index d7eb49cd43..fa78591baf 100644 --- a/src/citra_qt/camera/qt_camera_factory.cpp +++ b/src/citra_qt/camera/qt_camera_factory.cpp @@ -14,10 +14,10 @@ std::unique_ptr QtCameraFactory::CreatePreview(const std::strin if (camera->IsPreviewAvailable()) { return camera; } - QMessageBox::critical(nullptr, QObject::tr("Error"), - QObject::tr("Couldn't load ") + - (config.empty() ? QObject::tr("the camera") : "") + - QString::fromStdString(config)); + QMessageBox::critical( + nullptr, QObject::tr("Error"), + (config.empty() ? QObject::tr("Couldn't load the camera") + : QObject::tr("Couldn't load %1").arg(QString::fromStdString(config)))); return nullptr; } diff --git a/src/citra_qt/camera/still_image_camera.cpp b/src/citra_qt/camera/still_image_camera.cpp index c3929df4f3..ab0d183088 100644 --- a/src/citra_qt/camera/still_image_camera.cpp +++ b/src/citra_qt/camera/still_image_camera.cpp @@ -52,7 +52,7 @@ const std::string StillImageCameraFactory::getFilePath() { temp_filters << QString("*." + QString(type)); } - QString filter = QObject::tr("Supported image files (") + temp_filters.join(" ") + ")"; + QString filter = QObject::tr("Supported image files (%1)").arg(temp_filters.join(" ")); return QFileDialog::getOpenFileName(nullptr, QObject::tr("Open File"), ".", filter) .toStdString(); diff --git a/src/citra_qt/configuration/configure_camera.ui b/src/citra_qt/configuration/configure_camera.ui index ff6615498f..cd4d2e1088 100644 --- a/src/citra_qt/configuration/configure_camera.ui +++ b/src/citra_qt/configuration/configure_camera.ui @@ -117,7 +117,7 @@ - Select where the image of the emulated camera come from. It may be an image or a real camera. + Select where the image of the emulated camera comes from. It may be an image or a real camera. Camera Image Source: