Replace LANGUAGE_INCLUDE with LCD_LANGUAGE
This commit is contained in:
parent
259794c0be
commit
0c11566f42
21 changed files with 30 additions and 26 deletions
|
@ -771,7 +771,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -506,6 +506,8 @@
|
||||||
#error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead.
|
#error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead.
|
||||||
#elif ENABLED(Z_DUAL_ENDSTOPS) && !defined(Z2_USE_ENDSTOP)
|
#elif ENABLED(Z_DUAL_ENDSTOPS) && !defined(Z2_USE_ENDSTOP)
|
||||||
#error Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2
|
#error Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2
|
||||||
|
#elif defined(LANGUAGE_INCLUDE)
|
||||||
|
#error LANGUAGE_INCLUDE has been replaced by LCD_LANGUAGE. Please update your configuration.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //SANITYCHECK_H
|
#endif //SANITYCHECK_H
|
||||||
|
|
|
@ -753,7 +753,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -750,7 +750,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -762,7 +762,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -764,7 +764,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -787,7 +787,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -770,7 +770,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -765,7 +765,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -778,7 +778,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -791,7 +791,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -762,7 +762,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -770,7 +770,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -899,7 +899,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -899,7 +899,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -903,7 +903,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -896,7 +896,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -904,7 +904,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -773,7 +773,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -764,7 +764,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||||
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
// en, pl, fr, de, es, ru, bg, it, pt, pt_utf8, pt-br, pt-br_utf8,
|
||||||
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
// fi, an, nl, ca, eu, kana, kana_utf8, cn, cz, test
|
||||||
//
|
//
|
||||||
//#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
//#define LCD_LANGUAGE en
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD Character Set
|
* LCD Character Set
|
||||||
|
|
|
@ -25,7 +25,10 @@
|
||||||
|
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
|
|
||||||
#define GENERATE_LANGUAGE_INCLUDE(M) STRINGIFY_(language_##M.h)
|
// Fallback if no language is set. DON'T CHANGE
|
||||||
|
#ifndef LCD_LANGUAGE
|
||||||
|
#define LCD_LANGUAGE en
|
||||||
|
#endif
|
||||||
|
|
||||||
// For character-based LCD controllers (DISPLAY_CHARSET_HD44780)
|
// For character-based LCD controllers (DISPLAY_CHARSET_HD44780)
|
||||||
#define JAPANESE 1
|
#define JAPANESE 1
|
||||||
|
@ -62,11 +65,6 @@
|
||||||
// cn Chinese
|
// cn Chinese
|
||||||
// cz Czech
|
// cz Czech
|
||||||
|
|
||||||
// fallback if no language is set, don't change
|
|
||||||
#ifndef LANGUAGE_INCLUDE
|
|
||||||
#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(USE_AUTOMATIC_VERSIONING)
|
#if ENABLED(USE_AUTOMATIC_VERSIONING)
|
||||||
#include "_Version.h"
|
#include "_Version.h"
|
||||||
#else
|
#else
|
||||||
|
@ -236,7 +234,11 @@
|
||||||
|
|
||||||
// LCD Menu Messages
|
// LCD Menu Messages
|
||||||
|
|
||||||
#include LANGUAGE_INCLUDE
|
#define LANGUAGE_INCL_(M) STRINGIFY_(language_##M.h)
|
||||||
|
#define LANGUAGE_INCL(M) LANGUAGE_INCL_(M)
|
||||||
|
#define INCLUDE_LANGUAGE LANGUAGE_INCL(LCD_LANGUAGE)
|
||||||
|
|
||||||
|
#include INCLUDE_LANGUAGE
|
||||||
#include "language_en.h"
|
#include "language_en.h"
|
||||||
|
|
||||||
#endif //__LANGUAGE_H
|
#endif //__LANGUAGE_H
|
||||||
|
|
Reference in a new issue