From: Jonathan Neuschäfer Date: Wed, 21 Dec 2011 20:40:51 +0000 (+0100) Subject: command: make Ctrl-X/Alt-X/F1 etc. translatable X-Git-Tag: release-0.20~42 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc731ef86a5cffcc708b33e4678b76ab68285ef9;p=ncmpc.git command: make Ctrl-X/Alt-X/F1 etc. translatable --- diff --git a/src/command.c b/src/command.c index 43741cf..82232af 100644 --- a/src/command.c +++ b/src/command.c @@ -307,13 +307,13 @@ key2str(int key) default: for (i = 0; i <= 63; i++) if (key == KEY_F(i)) { - g_snprintf(buf, 32, "F%d", i ); + g_snprintf(buf, 32, _("F%d"), i ); return buf; } if (!(key & ~037)) - g_snprintf(buf, 32, "Ctrl-%c", 'A'+(key & 037)-1 ); + g_snprintf(buf, 32, _("Ctrl-%c"), 'A'+(key & 037)-1 ); else if ((key & ~037) == 224) - g_snprintf(buf, 32, "Alt-%c", 'A'+(key & 037)-1 ); + g_snprintf(buf, 32, _("Alt-%c"), 'A'+(key & 037)-1 ); else if (key > 32 && key < 256) g_snprintf(buf, 32, "%c", key); else