From c3497a4571f0d133a46a13c6bdb26e5676f5cee0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Mar 2017 13:43:09 +0100 Subject: [PATCH] screen_song: don't translate printf formats --- src/screen_song.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screen_song.c b/src/screen_song.c index 1463ec6..555490e 100644 --- a/src/screen_song.c +++ b/src/screen_song.c @@ -358,7 +358,7 @@ audio_format_to_string(char *buffer, size_t size, { #if LIBMPDCLIENT_CHECK_VERSION(2,10,0) if (format->bits == MPD_SAMPLE_FORMAT_FLOAT) { - g_snprintf(buffer, size, _("%u:f:%u"), + g_snprintf(buffer, size, "%u:f:%u", format->sample_rate, format->channels); return; @@ -369,20 +369,20 @@ audio_format_to_string(char *buffer, size_t size, format->sample_rate % 44100 == 0) { /* use shortcuts such as "dsd64" which implies the sample rate */ - g_snprintf(buffer, size, _("dsd%u:%u"), + g_snprintf(buffer, size, "dsd%u:%u", format->sample_rate * 8 / 44100, format->channels); return; } - g_snprintf(buffer, size, _("%u:dsd:%u"), + g_snprintf(buffer, size, "%u:dsd:%u", format->sample_rate, format->channels); return; } #endif - g_snprintf(buffer, size, _("%u:%u:%u"), + g_snprintf(buffer, size, "%u:%u:%u", format->sample_rate, format->bits, format->channels); } -- 2.30.2