Added a very hacky text UI

This commit is contained in:
Jozef Nagy 2025-05-20 19:24:16 +02:00
parent 06fb67beca
commit dae7b9c869
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
16 changed files with 296 additions and 33783 deletions

View file

@ -22,5 +22,8 @@
struct language i18n_csCZ = {
.shutdown = "Vypnout",
.reboot = "Restartovat",
.reboot_to_firmware = "Přejít do nastavení firmwaru"
.reboot_to_firmware = "Přejít do nastavení firmwaru",
.resolution = "Rozlišení",
.language = "Jazyk"
};

View file

@ -22,5 +22,8 @@
struct language i18n_enUS = {
.shutdown = "Shutdown",
.reboot = "Reboot",
.reboot_to_firmware = "Reboot to Firmware"
.reboot_to_firmware = "Reboot to Firmware",
.resolution = "Resolution",
.language = "Language"
};

View file

@ -19,6 +19,20 @@
#include <i18n.h>
extern struct language i18n_csCZ;
extern struct language i18n_enUS;
struct language *i18n_lang = &i18n_enUS;
struct language_selection i18n_languages[] = {
{
"Čeština",
"cs_CZ",
&i18n_csCZ
},
{
"English",
"en_US",
&i18n_enUS
}
};
struct language_selection *i18n_curlang = &i18n_languages[1]; // english