Browse Source

UBL_Language_Update (#7520)

* UBL_Language_Update

Translatable strings

* Use slightly better wording...

* Use slightly better wording...
Tannoo 8 years ago
parent
commit
b33739d493
2 changed files with 13 additions and 4 deletions
  1. 9
    0
      Marlin/language_en.h
  2. 4
    4
      Marlin/ultralcd.cpp

+ 9
- 0
Marlin/language_en.h View File

328
 #ifndef MSG_UBL_SAVE_MESH
328
 #ifndef MSG_UBL_SAVE_MESH
329
   #define MSG_UBL_SAVE_MESH                   _UxGT("Save Bed Mesh")
329
   #define MSG_UBL_SAVE_MESH                   _UxGT("Save Bed Mesh")
330
 #endif
330
 #endif
331
+#ifndef MSG_MESH_LOADED
332
+  #define MSG_MESH_LOADED                     _UxGT("Mesh %i loaded")
333
+#endif
334
+#ifndef MSG_MESH_SAVED
335
+  #define MSG_MESH_SAVED                      _UxGT("Mesh %i saved")
336
+#endif
337
+#ifndef MSG_NO_STORAGE
338
+  #define MSG_NO_STORAGE                      _UxGT("No storage")
339
+#endif
331
 #ifndef MSG_UBL_SAVE_ERROR
340
 #ifndef MSG_UBL_SAVE_ERROR
332
   #define MSG_UBL_SAVE_ERROR                  _UxGT("Err: UBL Save")
341
   #define MSG_UBL_SAVE_ERROR                  _UxGT("Err: UBL Save")
333
 #endif
342
 #endif

+ 4
- 4
Marlin/ultralcd.cpp View File

2121
       char UBL_LCD_GCODE[25];
2121
       char UBL_LCD_GCODE[25];
2122
       sprintf_P(UBL_LCD_GCODE, PSTR("G29 L%i"), ubl_storage_slot);
2122
       sprintf_P(UBL_LCD_GCODE, PSTR("G29 L%i"), ubl_storage_slot);
2123
       enqueue_and_echo_command(UBL_LCD_GCODE);
2123
       enqueue_and_echo_command(UBL_LCD_GCODE);
2124
-      sprintf_P(UBL_LCD_GCODE, PSTR("M117 Map %i loaded."), ubl_storage_slot);
2124
+      sprintf_P(UBL_LCD_GCODE, PSTR("M117 " MSG_MESH_LOADED "."), ubl_storage_slot);
2125
       enqueue_and_echo_command(UBL_LCD_GCODE);
2125
       enqueue_and_echo_command(UBL_LCD_GCODE);
2126
     }
2126
     }
2127
 
2127
 
2132
       char UBL_LCD_GCODE[25];
2132
       char UBL_LCD_GCODE[25];
2133
       sprintf_P(UBL_LCD_GCODE, PSTR("G29 S%i"), ubl_storage_slot);
2133
       sprintf_P(UBL_LCD_GCODE, PSTR("G29 S%i"), ubl_storage_slot);
2134
       enqueue_and_echo_command(UBL_LCD_GCODE);
2134
       enqueue_and_echo_command(UBL_LCD_GCODE);
2135
-      sprintf_P(UBL_LCD_GCODE, PSTR("M117 Map %i saved."), ubl_storage_slot);
2135
+      sprintf_P(UBL_LCD_GCODE, PSTR("M117 " MSG_MESH_SAVED "."), ubl_storage_slot);
2136
       enqueue_and_echo_command(UBL_LCD_GCODE);
2136
       enqueue_and_echo_command(UBL_LCD_GCODE);
2137
     }
2137
     }
2138
 
2138
 
2149
       START_MENU();
2149
       START_MENU();
2150
       MENU_BACK(MSG_UBL_LEVEL_BED);
2150
       MENU_BACK(MSG_UBL_LEVEL_BED);
2151
       if (!WITHIN(ubl_storage_slot, 0, a - 1)) {
2151
       if (!WITHIN(ubl_storage_slot, 0, a - 1)) {
2152
-        STATIC_ITEM("No storage");
2153
-        STATIC_ITEM("Initialize EEPROM");
2152
+        STATIC_ITEM(MSG_NO_STORAGE);
2153
+        STATIC_ITEM(MSG_INIT_EEPROM);
2154
       }
2154
       }
2155
       else {
2155
       else {
2156
         MENU_ITEM_EDIT(int3, MSG_UBL_STORAGE_SLOT, &ubl_storage_slot, 0, a - 1);
2156
         MENU_ITEM_EDIT(int3, MSG_UBL_STORAGE_SLOT, &ubl_storage_slot, 0, a - 1);

Loading…
Cancel
Save