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

@ -337,6 +337,11 @@ const char* const g_strings[StrId_Max][16] =
STR_TW("由于发生错误, 无法应用主题。"),
},
[StrId_DefaultThemeName] =
{
STR_EN("Default Theme"),
},
/*[StrId_Reboot] =
{
STR_EN(

View File

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

View File

@ -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);