From 05a2e15b0048344a0d8b3796e78b6a5ddef3c4ab Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Mon, 27 Jul 2020 21:51:31 +0300 Subject: [PATCH] i18n: translate "Ratio:" string in compact view (#1354) Use already available translation from gettext. Co-authored-by: Charles Kerr --- gtk/torrent-cell-renderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/torrent-cell-renderer.c b/gtk/torrent-cell-renderer.c index 2fd7e0fba..0c3e4e73f 100644 --- a/gtk/torrent-cell-renderer.c +++ b/gtk/torrent-cell-renderer.c @@ -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; }