mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #12511 from JosJuice/partial-revert-assembler-translatability
Partially revert "DolphinQt/Assembler: improve translatability"
This commit is contained in:
commit
1a57040163
@ -17,10 +17,9 @@ namespace
|
||||
{
|
||||
QString HtmlFormatErrorLoc(const Common::GekkoAssembler::AssemblerError& err)
|
||||
{
|
||||
const QString error = QStringLiteral("<span style=\"color: red; font-weight: bold\">%1</span>")
|
||||
.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("<span style=\"color: red; font-weight: bold\">Error</span> on line %1 col %2")
|
||||
.arg(err.line + 1)
|
||||
.arg(err.col + 1);
|
||||
}
|
||||
|
||||
QString HtmlFormatErrorLine(const Common::GekkoAssembler::AssemblerError& err)
|
||||
|
@ -48,10 +48,9 @@ using namespace Common::GekkoAssembler;
|
||||
|
||||
QString HtmlFormatErrorLoc(const AssemblerError& err)
|
||||
{
|
||||
const QString error = QStringLiteral("<span style=\"color: red; font-weight: bold\">%1</span>")
|
||||
.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("<span style=\"color: red; font-weight: bold\">Error</span> 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<CodeBlock>* asm_out)
|
||||
if (!good)
|
||||
{
|
||||
base_address = 0;
|
||||
const QString warning =
|
||||
QStringLiteral("<span style=\"color:#ffcc00\">%1</span>").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("<span style=\"color:#ffcc00\">Warning</span> invalid base address, defaulting to 0"));
|
||||
}
|
||||
|
||||
const std::string contents = active_editor->toPlainText().toStdString();
|
||||
|
Loading…
Reference in New Issue
Block a user