fixup! refactor: use fmt to build the GTK client's user-visible strings (#2788) (#3469)

fix: invalid fmt type when downloading metadata
This commit is contained in:
Charles Kerr 2022-07-18 10:33:11 -05:00 committed by GitHub
parent ffe307ac1b
commit 3f07838be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ auto getActivityString(
return fmt::format(
ngettext(
// xgettext:no-c-format
"Downloading metadata from {active_count} connected peer ({percent_done:d}% done)",
"Downloading metadata from {active_count} connected peers ({percent_done:d}% done)",
"Downloading metadata from {active_count} connected peer ({percent_done}% done)",
"Downloading metadata from {active_count} connected peers ({percent_done}% done)",
st->peersConnected),
fmt::arg("active_count", st->peersConnected),
fmt::arg("percent_done", tr_strpercent(st->metadataPercentComplete * 100.0)));