Browse Source

Replace LANGUAGE_INCLUDE with LCD_LANGUAGE

pull/1/head
Scott Lahteine 9 years ago
parent
commit
0c11566f42
  1. 2
      Marlin/Configuration.h
  2. 2
      Marlin/SanityCheck.h
  3. 2
      Marlin/example_configurations/Felix/Configuration.h
  4. 2
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  5. 2
      Marlin/example_configurations/Hephestos/Configuration.h
  6. 2
      Marlin/example_configurations/Hephestos_2/Configuration.h
  7. 2
      Marlin/example_configurations/K8200/Configuration.h
  8. 2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  9. 2
      Marlin/example_configurations/RigidBot/Configuration.h
  10. 2
      Marlin/example_configurations/SCARA/Configuration.h
  11. 2
      Marlin/example_configurations/TAZ4/Configuration.h
  12. 2
      Marlin/example_configurations/WITBOX/Configuration.h
  13. 2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  14. 2
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  15. 2
      Marlin/example_configurations/delta/generic/Configuration.h
  16. 2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  17. 2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  18. 2
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  19. 2
      Marlin/example_configurations/makibox/Configuration.h
  20. 2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  21. 16
      Marlin/language.h

2
Marlin/Configuration.h

@ -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,
// 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

2
Marlin/SanityCheck.h

@ -506,6 +506,8 @@
#error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead.
#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
#elif defined(LANGUAGE_INCLUDE)
#error LANGUAGE_INCLUDE has been replaced by LCD_LANGUAGE. Please update your configuration.
#endif
#endif //SANITYCHECK_H

2
Marlin/example_configurations/Felix/Configuration.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,
// 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

2
Marlin/example_configurations/Felix/Configuration_DUAL.h

@ -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,
// 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

2
Marlin/example_configurations/Hephestos/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/Hephestos_2/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/K8200/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/RigidBot/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/SCARA/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/TAZ4/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/WITBOX/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/adafruit/ST7565/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/delta/biv2.5/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/delta/generic/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/delta/kossel_mini/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/delta/kossel_pro/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/delta/kossel_xl/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/makibox/Configuration.h

@ -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,
// 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

2
Marlin/example_configurations/tvrrug/Round2/Configuration.h

@ -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,
// 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

16
Marlin/language.h

@ -25,7 +25,10 @@
#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)
#define JAPANESE 1
@ -62,11 +65,6 @@
// cn Chinese
// 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)
#include "_Version.h"
#else
@ -236,7 +234,11 @@
// 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"
#endif //__LANGUAGE_H

Loading…
Cancel
Save