🔨 Fix Multi-Language Menu criteria

This commit is contained in:
Scott Lahteine
2023-05-01 20:33:58 -05:00
parent 4812ed5053
commit 207535af9d
3 changed files with 7 additions and 3 deletions

View File

@@ -64,6 +64,9 @@ typedef const char Language_Str[];
#if NUM_LANGUAGES > 1
#define HAS_MULTI_LANGUAGE 1
#if HAS_MARLINUI_MENU
#define HAS_MENU_MULTI_LANGUAGE 1
#endif
#define GET_TEXT(MSG) ( \
ui.language == 4 ? GET_LANG(LCD_LANGUAGE_5)::MSG : \
ui.language == 3 ? GET_LANG(LCD_LANGUAGE_4)::MSG : \

View File

@@ -26,7 +26,7 @@
#include "../../inc/MarlinConfig.h"
#if HAS_MULTI_LANGUAGE
#if HAS_MENU_MULTI_LANGUAGE
#include "menu_item.h"
#include "../../MarlinCore.h"
@@ -56,4 +56,4 @@ void menu_language() {
END_MENU();
}
#endif // HAS_MULTI_LANGUAGE
#endif // HAS_MENU_MULTI_LANGUAGE