fix: missing tr() and update donate message

This commit is contained in:
flow 2022-05-24 11:11:40 -03:00
parent 22e0527502
commit 5e17d53c7f
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ void ModPage::updateUi()
}
if(!current.extraData.donate.isEmpty()) {
text += "<br><br>Donation information:<br>";
text += tr("<br><br>Donate information:<br>");
auto donateToStr = [](ModPlatform::DonationData& donate) -> QString {
return QString("<a href=\"%1\">%2</a>").arg(donate.url, donate.platform);
};

View File

@ -225,7 +225,7 @@ void ModrinthPage::updateUI()
text += "<br>" + tr(" by ") + QString("<a href=%1>%2</a>").arg(std::get<1>(current.author).toString(), std::get<0>(current.author));
if(!current.extra.donate.isEmpty()) {
text += "<br><br>Donation information:<br>";
text += tr("<br><br>Donate information:<br>");
auto donateToStr = [](Modrinth::DonationData& donate) -> QString {
return QString("<a href=\"%1\">%2</a>").arg(donate.url, donate.platform);
};