From bc731ef86a5cffcc708b33e4678b76ab68285ef9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 21 Dec 2011 21:40:51 +0100 Subject: [PATCH] command: make Ctrl-X/Alt-X/F1 etc. translatable --- src/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2