From fcda4c938a2e2bc3706443cf902e2310ba64437a Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 1 Apr 2023 00:00:44 -0700 Subject: [PATCH] Capitalize language files --- lang/{english.ini => English.ini} | 0 lang/{french.ini => French.ini} | 0 lang/{spanish.ini => Spanish.ini} | 0 src/pc/djui/djui_language.c | 2 +- src/pc/djui/djui_panel_language.c | 4 ++-- 5 files changed, 3 insertions(+), 3 deletions(-) rename lang/{english.ini => English.ini} (100%) rename lang/{french.ini => French.ini} (100%) rename lang/{spanish.ini => Spanish.ini} (100%) 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);