1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 22:20:39 +00:00

fix: missing fmt::arg calls in GTK client (#2819)

This commit is contained in:
Charles Kerr 2022-03-25 12:16:29 -05:00 committed by GitHub
parent b94c6796c8
commit 7905244320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,13 +126,13 @@ std::string getShortTransferString(
{ {
return fmt::format( return fmt::format(
_("{upload_speed} ▲ {download_speed} ▼"), _("{upload_speed} ▲ {download_speed} ▼"),
tr_formatter_speed_KBps(downloadSpeed_KBps), fmt::arg("upload_speed", tr_formatter_speed_KBps(uploadSpeed_KBps)),
tr_formatter_speed_KBps(uploadSpeed_KBps)); fmt::arg("download_speed", tr_formatter_speed_KBps(downloadSpeed_KBps)));
} }
if (bool const have_up = have_meta && st->peersGettingFromUs > 0; have_up) if (bool const have_up = have_meta && st->peersGettingFromUs > 0; have_up)
{ {
return fmt::format(_("{upload_speed} ▲"), tr_formatter_speed_KBps(downloadSpeed_KBps)); return fmt::format(_("{upload_speed} ▲"), fmt::arg("upload_speed", tr_formatter_speed_KBps(downloadSpeed_KBps)));
} }
if (st->isStalled) if (st->isStalled)