From a5bb27948a019761b2b8c5422eb1a7eadd8e4b84 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 6 May 2018 12:38:48 +0100 Subject: [PATCH] Translate text in Select widgets. --- src/system/widgets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/widgets.c b/src/system/widgets.c index c43a635..6cb2ac9 100644 --- a/src/system/widgets.c +++ b/src/system/widgets.c @@ -401,7 +401,7 @@ static void loadWidgetSet(char *filename) break; case WT_SELECT: - STRNCPY(w->text, cJSON_GetObjectItem(node, "text")->valuestring, MAX_NAME_LENGTH); + STRNCPY(w->text, _(cJSON_GetObjectItem(node, "text")->valuestring), MAX_NAME_LENGTH); w->rect.w = cJSON_GetObjectItem(node, "w")->valueint; w->rect.h = cJSON_GetObjectItem(node, "h")->valueint; w->rect.x -= w->rect.w / 2;