Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75c0a8a5 authored by EGRY Gabor's avatar EGRY Gabor Committed by Sam Ravnborg
Browse files

kconfig: gettext support for lxdialog



Gettext support for lxdialog.

Signed-off-by: default avatarEgry Gabor <gaboregry1@t-online.hu>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
parent 413f006b
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
scripts/kconfig/lxdialog/checklist.c
scripts/kconfig/lxdialog/inputbox.c
scripts/kconfig/lxdialog/menubox.c
scripts/kconfig/lxdialog/textbox.c
scripts/kconfig/lxdialog/util.c
scripts/kconfig/lxdialog/yesno.c
scripts/kconfig/mconf.c
scripts/kconfig/mconf.c
scripts/kconfig/conf.c
scripts/kconfig/conf.c
scripts/kconfig/confdata.c
scripts/kconfig/confdata.c
+2 −2
Original line number Original line Diff line number Diff line
@@ -97,8 +97,8 @@ static void print_buttons(WINDOW * dialog, int height, int width, int selected)
	int x = width / 2 - 11;
	int x = width / 2 - 11;
	int y = height - 2;
	int y = height - 2;


	print_button(dialog, "Select", y, x, selected == 0);
	print_button(dialog, gettext("Select"), y, x, selected == 0);
	print_button(dialog, " Help ", y, x + 14, selected == 1);
	print_button(dialog, gettext(" Help "), y, x + 14, selected == 1);


	wmove(dialog, y, x + 1 + 14 * selected);
	wmove(dialog, y, x + 1 + 14 * selected);
	wrefresh(dialog);
	wrefresh(dialog);
+6 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,12 @@
#include <string.h>
#include <string.h>
#include <stdbool.h>
#include <stdbool.h>


#ifndef KBUILD_NO_NLS
# include <libintl.h>
#else
# define gettext(Msgid) ((const char *) (Msgid))
#endif

#ifdef __sun__
#ifdef __sun__
#define CURS_MACROS
#define CURS_MACROS
#endif
#endif
+2 −2
Original line number Original line Diff line number Diff line
@@ -31,8 +31,8 @@ static void print_buttons(WINDOW * dialog, int height, int width, int selected)
	int x = width / 2 - 11;
	int x = width / 2 - 11;
	int y = height - 2;
	int y = height - 2;


	print_button(dialog, "  Ok  ", y, x, selected == 0);
	print_button(dialog, gettext("  Ok  "), y, x, selected == 0);
	print_button(dialog, " Help ", y, x + 14, selected == 1);
	print_button(dialog, gettext(" Help "), y, x + 14, selected == 1);


	wmove(dialog, y, x + 1 + 14 * selected);
	wmove(dialog, y, x + 1 + 14 * selected);
	wrefresh(dialog);
	wrefresh(dialog);
+3 −3
Original line number Original line Diff line number Diff line
@@ -157,9 +157,9 @@ static void print_buttons(WINDOW * win, int height, int width, int selected)
	int x = width / 2 - 16;
	int x = width / 2 - 16;
	int y = height - 2;
	int y = height - 2;


	print_button(win, "Select", y, x, selected == 0);
	print_button(win, gettext("Select"), y, x, selected == 0);
	print_button(win, " Exit ", y, x + 12, selected == 1);
	print_button(win, gettext(" Exit "), y, x + 12, selected == 1);
	print_button(win, " Help ", y, x + 24, selected == 2);
	print_button(win, gettext(" Help "), y, x + 24, selected == 2);


	wmove(win, y, x + 1 + 12 * selected);
	wmove(win, y, x + 1 + 12 * selected);
	wrefresh(win);
	wrefresh(win);
Loading