Translate text in Select widgets.
This commit is contained in:
parent
11a37ae768
commit
a5bb27948a
|
@ -401,7 +401,7 @@ static void loadWidgetSet(char *filename)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WT_SELECT:
|
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.w = cJSON_GetObjectItem(node, "w")->valueint;
|
||||||
w->rect.h = cJSON_GetObjectItem(node, "h")->valueint;
|
w->rect.h = cJSON_GetObjectItem(node, "h")->valueint;
|
||||||
w->rect.x -= w->rect.w / 2;
|
w->rect.x -= w->rect.w / 2;
|
||||||
|
|
Loading…
Reference in New Issue