Browse Source

UBL_Language_Update (#7520)

* UBL_Language_Update

Translatable strings

* Use slightly better wording...

* Use slightly better wording...
pull/1/head
Tannoo 7 years ago
committed by Roxy-3D
parent
commit
b33739d493
  1. 9
      Marlin/language_en.h
  2. 8
      Marlin/ultralcd.cpp

9
Marlin/language_en.h

@ -328,6 +328,15 @@
#ifndef MSG_UBL_SAVE_MESH
#define MSG_UBL_SAVE_MESH _UxGT("Save Bed Mesh")
#endif
#ifndef MSG_MESH_LOADED
#define MSG_MESH_LOADED _UxGT("Mesh %i loaded")
#endif
#ifndef MSG_MESH_SAVED
#define MSG_MESH_SAVED _UxGT("Mesh %i saved")
#endif
#ifndef MSG_NO_STORAGE
#define MSG_NO_STORAGE _UxGT("No storage")
#endif
#ifndef MSG_UBL_SAVE_ERROR
#define MSG_UBL_SAVE_ERROR _UxGT("Err: UBL Save")
#endif

8
Marlin/ultralcd.cpp

@ -2121,7 +2121,7 @@ void kill_screen(const char* lcd_msg) {
char UBL_LCD_GCODE[25];
sprintf_P(UBL_LCD_GCODE, PSTR("G29 L%i"), ubl_storage_slot);
enqueue_and_echo_command(UBL_LCD_GCODE);
sprintf_P(UBL_LCD_GCODE, PSTR("M117 Map %i loaded."), ubl_storage_slot);
sprintf_P(UBL_LCD_GCODE, PSTR("M117 " MSG_MESH_LOADED "."), ubl_storage_slot);
enqueue_and_echo_command(UBL_LCD_GCODE);
}
@ -2132,7 +2132,7 @@ void kill_screen(const char* lcd_msg) {
char UBL_LCD_GCODE[25];
sprintf_P(UBL_LCD_GCODE, PSTR("G29 S%i"), ubl_storage_slot);
enqueue_and_echo_command(UBL_LCD_GCODE);
sprintf_P(UBL_LCD_GCODE, PSTR("M117 Map %i saved."), ubl_storage_slot);
sprintf_P(UBL_LCD_GCODE, PSTR("M117 " MSG_MESH_SAVED "."), ubl_storage_slot);
enqueue_and_echo_command(UBL_LCD_GCODE);
}
@ -2149,8 +2149,8 @@ void kill_screen(const char* lcd_msg) {
START_MENU();
MENU_BACK(MSG_UBL_LEVEL_BED);
if (!WITHIN(ubl_storage_slot, 0, a - 1)) {
STATIC_ITEM("No storage");
STATIC_ITEM("Initialize EEPROM");
STATIC_ITEM(MSG_NO_STORAGE);
STATIC_ITEM(MSG_INIT_EEPROM);
}
else {
MENU_ITEM_EDIT(int3, MSG_UBL_STORAGE_SLOT, &ubl_storage_slot, 0, a - 1);

Loading…
Cancel
Save