Capitalize language files

This commit is contained in:
MysterD 2023-04-01 00:00:44 -07:00
parent 08deb1dcc6
commit fcda4c938a
5 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ bool djui_language_init(char* lang) {
// construct path
char path[SYS_MAX_PATH] = "";
if (!lang || lang[0] == '\0') { lang = "english"; }
if (!lang || lang[0] == '\0') { lang = "English"; }
snprintf(path, SYS_MAX_PATH, "%s/lang/%s.ini", sys_exe_path(), lang);
// load

View File

@ -61,7 +61,7 @@ static void djui_panel_language_destroy(UNUSED struct DjuiBase* caller) {
}
}
if (configLanguage[0] == '\0') {
snprintf(configLanguage, MAX_CONFIG_STRING, "%s", "english");
snprintf(configLanguage, MAX_CONFIG_STRING, "%s", "English");
}
gPanelLanguageOnStartup = false;
}
@ -108,7 +108,7 @@ void djui_panel_language_create(struct DjuiBase* caller) {
bool match = !strcmp(path, configLanguage);
if (match) { foundMatch = true; }
struct DjuiCheckbox* checkbox = djui_checkbox_create(sLayoutBase, path, match ? &sTrue : &sFalse, select_language);
if (!strcmp(path, "english")) { chkEnglish = checkbox; }
if (!strcmp(path, "English")) { chkEnglish = checkbox; }
}
closedir(d);