From 5d1514418ec367cc69333d36b1007f3b11d8d9f1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 11 Dec 2023 15:43:39 -0500 Subject: [PATCH] GraphicsModListWidget: Add string specifier to By and Description fields Translators should always know where text is going to be appended and have the ability to move things around to fit the language better. --- Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp index c497ff82ed..2151642d2b 100644 --- a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp +++ b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp @@ -210,14 +210,14 @@ void GraphicsModListWidget::OnModChanged(std::optional absolute_pat if (!mod->m_author.empty()) { - auto* author_label = new QLabel(tr("By: ") + QString::fromStdString(mod->m_author)); + auto* author_label = new QLabel(tr("By: %1").arg(QString::fromStdString(mod->m_author))); m_mod_meta_layout->addWidget(author_label); } if (!mod->m_description.empty()) { auto* description_label = - new QLabel(tr("Description: ") + QString::fromStdString(mod->m_description)); + new QLabel(tr("Description: %1").arg(QString::fromStdString(mod->m_description))); description_label->setWordWrap(true); m_mod_meta_layout->addWidget(description_label); }