Moved string for default-theme-name into language.c, and fixed language.c whitespace.

This commit is contained in:
yellows8 2018-09-29 12:07:34 -04:00
parent a9d7a47f2e
commit 69e11599f4
3 changed files with 8 additions and 2 deletions

View File

@ -336,7 +336,12 @@ const char* const g_strings[StrId_Max][16] =
STR_KO("오류가 발생 했기 때문에 테마를 적용할 수 없습니다."), STR_KO("오류가 발생 했기 때문에 테마를 적용할 수 없습니다."),
STR_TW("由于发生错误, 无法应用主题。"), STR_TW("由于发生错误, 无法应用主题。"),
}, },
[StrId_DefaultThemeName] =
{
STR_EN("Default Theme"),
},
/*[StrId_Reboot] = /*[StrId_Reboot] =
{ {
STR_EN( STR_EN(

View File

@ -45,6 +45,7 @@ typedef enum
StrId_ThemeMenu, StrId_ThemeMenu,
StrId_ThemeNotApplied, StrId_ThemeNotApplied,
StrId_DefaultThemeName,
StrId_Max, StrId_Max,
} StrId; } StrId;

View File

@ -209,7 +209,7 @@ int themeMenuScan(const char* target) {
menuEntry_s* me = menuCreateEntry(ENTRY_TYPE_THEME); menuEntry_s* me = menuCreateEntry(ENTRY_TYPE_THEME);
if(me) { 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); menuAddEntryToFront(me);
else else
menuDeleteEntry(me); menuDeleteEntry(me);