mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 12:04:56 +00:00
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.
This commit is contained in:
parent
d84ed054ee
commit
5d1514418e
1 changed files with 2 additions and 2 deletions
|
@ -210,14 +210,14 @@ void GraphicsModListWidget::OnModChanged(std::optional<std::string> 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue