Translate text in Select widgets.

This commit is contained in:
Steve 2018-05-06 12:38:48 +01:00
parent 11a37ae768
commit a5bb27948a
1 changed files with 1 additions and 1 deletions

View File

@ -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;