mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-17 07:52:16 -07:00
Do not use %n
This commit is contained in:
parent
cb423dbfbc
commit
af2370425f
1 changed files with 3 additions and 2 deletions
|
|
@ -609,14 +609,15 @@ void MessageLogWidget::logSetCardCounter(Player *player, QString cardName, int c
|
||||||
QString finalStr;
|
QString finalStr;
|
||||||
int delta = abs(oldValue - value);
|
int delta = abs(oldValue - value);
|
||||||
if (value > oldValue) {
|
if (value > oldValue) {
|
||||||
finalStr = tr("%1 places <font class=\"blue\">%n</font> %2 counter(s) on %3 (now %4).", "", delta);
|
finalStr = tr("%1 places %2 %3 counter(s) on %4 (now %5).", "", delta);
|
||||||
} else {
|
} else {
|
||||||
finalStr = tr("%1 removes <font class=\"blue\">%n</font> %2 counter(s) from %3 (now %4).", "", delta);
|
finalStr = tr("%1 removes %2 %3 counter(s) from %4 (now %5).", "", delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
QLocale locale;
|
QLocale locale;
|
||||||
auto &cardCounterSettings = SettingsCache::instance().cardCounters();
|
auto &cardCounterSettings = SettingsCache::instance().cardCounters();
|
||||||
appendHtmlServerMessage(finalStr.arg(sanitizeHtml(player->getName()))
|
appendHtmlServerMessage(finalStr.arg(sanitizeHtml(player->getName()))
|
||||||
|
.arg("<font class=\"blue\">" + QString::number(delta) + "</font>")
|
||||||
.arg(locale.toLower(cardCounterSettings.displayName(counterId)))
|
.arg(locale.toLower(cardCounterSettings.displayName(counterId)))
|
||||||
.arg(cardLink(std::move(cardName)))
|
.arg(cardLink(std::move(cardName)))
|
||||||
.arg(value));
|
.arg(value));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue