ui/ncurses: Toggle visibility of timeout help label
[petitboot] / ui / ncurses / nc-lang.c
index 5e927072c42d57bbb71e4909e6b2582e70277fc9..0b871566aa83fbeda61e02da393f6fb204be36ed 100644 (file)
@@ -38,7 +38,17 @@ static struct lang {
        const char      *name;
        const wchar_t   *label;
 } languages[] = {
+       { "de_DE.utf8", L"Deutsch"},
        { "en_US.utf8", L"English"},
+       { "es_ES.utf8", L"Espa\u00f1ol"},
+       { "fr_FR.utf8", L"Fran\u00e7ais"},
+       { "it_IT.utf8", L"Italiano"},
+       { "ja_JP.utf8", L"\u65e5\u672c\u8a9e"},
+       { "ko_KR.utf8", L"\ud55c\uad6d\uc5b4"},
+       { "pt_BR.utf8", L"Portugu\u00eas/Brasil"},
+       { "ru_RU.utf8", L"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},
+       { "zh_CN.utf8", L"\u7b80\u4f53\u4e2d\u6587"},
+       { "zh_TW.utf8", L"\u7e41\u9ad4\u4e2d\u6587"},
 };
 
 struct lang_screen {
@@ -121,7 +131,6 @@ static int lang_screen_post(struct nc_scr *scr)
        struct lang_screen *screen = lang_screen_from_scr(scr);
        widgetset_post(screen->widgetset);
        nc_scr_frame_draw(scr);
-       redrawwin(scr->main_ncw);
        wrefresh(screen->scr.main_ncw);
        pad_refresh(screen);
        return 0;
@@ -228,7 +237,7 @@ static void lang_screen_setup_empty(struct lang_screen *screen)
        widget_new_label(screen->widgetset, 2, screen->field_x,
                        _("Waiting for configuration data..."));
        screen->widgets.cancel_b = widget_new_button(screen->widgetset,
-                       4, screen->field_x, 6, _("Cancel"),
+                       4, screen->field_x, 9, _("Cancel"),
                        cancel_click, screen);
 }
 
@@ -279,7 +288,7 @@ static void lang_screen_setup_widgets(struct lang_screen *screen,
 
        screen->widgets.ok_b = widget_new_button(set, 0, 0, 6, _("OK"),
                        ok_click, screen);
-       screen->widgets.cancel_b = widget_new_button(set, 0, 0, 6, _("Cancel"),
+       screen->widgets.cancel_b = widget_new_button(set, 0, 0, 10, _("Cancel"),
                        cancel_click, screen);
 }