From 69e11599f4bec8faf2b9587b7a15f399ce7647ff Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sat, 29 Sep 2018 12:07:34 -0400 Subject: [PATCH] Moved string for default-theme-name into language.c, and fixed language.c whitespace. --- common/language.c | 7 ++++++- common/language.h | 1 + common/menu-list.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/language.c b/common/language.c index 3eb57d4..63a0283 100644 --- a/common/language.c +++ b/common/language.c @@ -336,7 +336,12 @@ const char* const g_strings[StrId_Max][16] = STR_KO("오류가 발생 했기 때문에 테마를 적용할 수 없습니다."), STR_TW("由于发生错误, 无法应用主题。"), }, - + + [StrId_DefaultThemeName] = + { + STR_EN("Default Theme"), + }, + /*[StrId_Reboot] = { STR_EN( diff --git a/common/language.h b/common/language.h index 73d354e..9bf7519 100644 --- a/common/language.h +++ b/common/language.h @@ -45,6 +45,7 @@ typedef enum StrId_ThemeMenu, StrId_ThemeNotApplied, + StrId_DefaultThemeName, StrId_Max, } StrId; diff --git a/common/menu-list.c b/common/menu-list.c index 07c108b..5f35038 100644 --- a/common/menu-list.c +++ b/common/menu-list.c @@ -209,7 +209,7 @@ int themeMenuScan(const char* target) { menuEntry_s* me = menuCreateEntry(ENTRY_TYPE_THEME); if(me) { - if(menuEntryLoad(me, "Default Theme", false))//Create Default theme Menu Entry + if(menuEntryLoad(me, textGetString(StrId_DefaultThemeName), false))//Create Default theme Menu Entry menuAddEntryToFront(me); else menuDeleteEntry(me);