From: Max Kellermann Date: Mon, 20 Mar 2017 12:43:09 +0000 (+0100) Subject: screen_song: don't translate printf formats X-Git-Tag: v0.26~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3497a4571f0d133a46a13c6bdb26e5676f5cee0;p=ncmpc.git screen_song: don't translate printf formats --- 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); }