diff --git a/lang/english.ini b/lang/English.ini similarity index 100% rename from lang/english.ini rename to lang/English.ini diff --git a/lang/french.ini b/lang/French.ini similarity index 100% rename from lang/french.ini rename to lang/French.ini diff --git a/lang/spanish.ini b/lang/Spanish.ini similarity index 100% rename from lang/spanish.ini rename to lang/Spanish.ini diff --git a/src/pc/djui/djui_language.c b/src/pc/djui/djui_language.c index d9c1c806..707457f6 100644 --- a/src/pc/djui/djui_language.c +++ b/src/pc/djui/djui_language.c @@ -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 diff --git a/src/pc/djui/djui_panel_language.c b/src/pc/djui/djui_panel_language.c index 254a171c..e8decdf2 100644 --- a/src/pc/djui/djui_panel_language.c +++ b/src/pc/djui/djui_panel_language.c @@ -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);