i18n: translate "Ratio:" string in compact view (#1354)

Use already available translation from gettext.

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
Nicholas Guriev 2020-07-27 21:51:31 +03:00 committed by GitHub
parent 073ae6c206
commit 05a2e15b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ static void getShortStatusString(GString* gstr, tr_torrent const* tor, tr_stat c
tr_strlratio(ratioStr, st->ratio, sizeof(ratioStr));
getShortTransferString(tor, st, uploadSpeed_KBps, downloadSpeed_KBps, speedStr, sizeof(speedStr));
/* download/upload speed, ratio */
g_string_append_printf(gstr, "%1$s Ratio: %2$s", speedStr, ratioStr);
g_string_append_printf(gstr, "%s ", speedStr);
g_string_append_printf(gstr, _("Ratio: %s"), ratioStr);
break;
}