diff --git a/Source/Core/DolphinQt/Debugger/AssembleInstructionDialog.cpp b/Source/Core/DolphinQt/Debugger/AssembleInstructionDialog.cpp index 01d3c91d5d..a130576e08 100644 --- a/Source/Core/DolphinQt/Debugger/AssembleInstructionDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/AssembleInstructionDialog.cpp @@ -17,10 +17,9 @@ namespace { QString HtmlFormatErrorLoc(const Common::GekkoAssembler::AssemblerError& err) { - const QString error = QStringLiteral("%1") - .arg(QObject::tr("Error")); - // i18n: '%1' is the translation of 'Error' - return QObject::tr("%1 in column %2").arg(error).arg(err.col + 1); + return QObject::tr("Error on line %1 col %2") + .arg(err.line + 1) + .arg(err.col + 1); } QString HtmlFormatErrorLine(const Common::GekkoAssembler::AssemblerError& err) diff --git a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp index a769df82e6..a8d2dc96f3 100644 --- a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp @@ -48,10 +48,9 @@ using namespace Common::GekkoAssembler; QString HtmlFormatErrorLoc(const AssemblerError& err) { - const QString error = QStringLiteral("%1") - .arg(QObject::tr("Error")); - // i18n: '%1' is the translation of 'Error' - return QObject::tr("%1 on line %1 column %2").arg(error).arg(err.line + 1).arg(err.col + 1); + return QObject::tr("Error on line %1 col %2") + .arg(err.line + 1) + .arg(err.col + 1); } QString HtmlFormatErrorLine(const AssemblerError& err) @@ -525,10 +524,8 @@ void AssemblerWidget::OnAssemble(std::vector* asm_out) if (!good) { base_address = 0; - const QString warning = - QStringLiteral("%1").arg(tr("Warning")); - // i18n: '%1' is the translation of 'Warning' - m_error_box->append(tr("%1 invalid base address, defaulting to 0").arg(warning)); + m_error_box->append( + tr("Warning invalid base address, defaulting to 0")); } const std::string contents = active_editor->toPlainText().toStdString();