Browse Source

🩹 Fix manual move titles (#24518)

Scott Lahteine 1 year ago
parent
commit
ed2071aabd
No account linked to committer's email address

+ 1
- 0
Marlin/src/lcd/language/language_an.h View File

@@ -83,6 +83,7 @@ namespace Language_an {
83 83
   LSTR MSG_MOVE_X                         = _UxGT("Mover X");
84 84
   LSTR MSG_MOVE_Y                         = _UxGT("Mover Y");
85 85
   LSTR MSG_MOVE_Z                         = _UxGT("Mover Z");
86
+  LSTR MSG_MOVE_N                         = _UxGT("Mover @");
86 87
   LSTR MSG_MOVE_E                         = _UxGT("Extrusor");
87 88
   LSTR MSG_MOVE_EN                        = _UxGT("Extrusor *");
88 89
   LSTR MSG_MOVE_N_MM                      = _UxGT("Mover $mm");

+ 1
- 0
Marlin/src/lcd/language/language_bg.h View File

@@ -72,6 +72,7 @@ namespace Language_bg {
72 72
   LSTR MSG_MOVE_X                         = _UxGT("Движение по X");
73 73
   LSTR MSG_MOVE_Y                         = _UxGT("Движение по Y");
74 74
   LSTR MSG_MOVE_Z                         = _UxGT("Движение по Z");
75
+  LSTR MSG_MOVE_N                         = _UxGT("Движение по @");
75 76
   LSTR MSG_MOVE_E                         = _UxGT("Екструдер");
76 77
   LSTR MSG_MOVE_EN                        = _UxGT("Екструдер *");
77 78
   LSTR MSG_MOVE_N_MM                      = _UxGT("Премести с $mm");

+ 1
- 0
Marlin/src/lcd/language/language_ca.h View File

@@ -83,6 +83,7 @@ namespace Language_ca {
83 83
   LSTR MSG_MOVE_X                         = _UxGT("Mou X");
84 84
   LSTR MSG_MOVE_Y                         = _UxGT("Mou Y");
85 85
   LSTR MSG_MOVE_Z                         = _UxGT("Mou Z");
86
+  LSTR MSG_MOVE_N                         = _UxGT("Mou @");
86 87
   LSTR MSG_MOVE_E                         = _UxGT("Extrusor");
87 88
   LSTR MSG_MOVE_EN                        = _UxGT("Extrusor *");
88 89
   LSTR MSG_MOVE_N_MM                      = _UxGT("Mou $mm");

+ 1
- 0
Marlin/src/lcd/language/language_cz.h View File

@@ -232,6 +232,7 @@ namespace Language_cz {
232 232
   LSTR MSG_MOVE_X                         = _UxGT("Posunout X");
233 233
   LSTR MSG_MOVE_Y                         = _UxGT("Posunout Y");
234 234
   LSTR MSG_MOVE_Z                         = _UxGT("Posunout Z");
235
+  LSTR MSG_MOVE_N                         = _UxGT("Posunout @");
235 236
   LSTR MSG_MOVE_E                         = _UxGT("Extrudér");
236 237
   LSTR MSG_MOVE_EN                        = _UxGT("Extrudér *");
237 238
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Hotend je studený");

+ 3
- 0
Marlin/src/lcd/language/language_da.h View File

@@ -74,6 +74,9 @@ namespace Language_da {
74 74
   LSTR MSG_MOVE_X                         = _UxGT("Flyt X");
75 75
   LSTR MSG_MOVE_Y                         = _UxGT("Flyt Y");
76 76
   LSTR MSG_MOVE_Z                         = _UxGT("Flyt Z");
77
+  LSTR MSG_MOVE_N                         = _UxGT("Flyt @");
78
+  LSTR MSG_MOVE_E                         = _UxGT("Flyt E");
79
+  LSTR MSG_MOVE_EN                        = _UxGT("Flyt *");
77 80
   LSTR MSG_MOVE_N_MM                      = _UxGT("Flyt $mm");
78 81
   LSTR MSG_MOVE_01MM                      = _UxGT("Flyt 0.1mm");
79 82
   LSTR MSG_MOVE_1MM                       = _UxGT("Flyt 1mm");

+ 1
- 0
Marlin/src/lcd/language/language_el.h View File

@@ -92,6 +92,7 @@ namespace Language_el {
92 92
   LSTR MSG_MOVE_X                         = _UxGT("Μετακίνηση X");
93 93
   LSTR MSG_MOVE_Y                         = _UxGT("Μετακίνηση Y");
94 94
   LSTR MSG_MOVE_Z                         = _UxGT("Μετακίνηση Z");
95
+  LSTR MSG_MOVE_N                         = _UxGT("Μετακίνηση @");
95 96
   LSTR MSG_MOVE_E                         = _UxGT("Εξωθητής");
96 97
   LSTR MSG_MOVE_EN                        = _UxGT("Εξωθητής *");
97 98
   LSTR MSG_MOVE_N_MM                      = _UxGT("Μετακίνηση %s μμ");

+ 1
- 0
Marlin/src/lcd/language/language_el_gr.h View File

@@ -81,6 +81,7 @@ namespace Language_el_gr {
81 81
   LSTR MSG_MOVE_X                         = _UxGT("Μετακίνηση X");
82 82
   LSTR MSG_MOVE_Y                         = _UxGT("Μετακίνηση Y");
83 83
   LSTR MSG_MOVE_Z                         = _UxGT("Μετακίνηση Z");
84
+  LSTR MSG_MOVE_N                         = _UxGT("Μετακίνηση @");
84 85
   LSTR MSG_MOVE_E                         = _UxGT("Εξωθητήρας");
85 86
   LSTR MSG_MOVE_EN                        = _UxGT("Εξωθητήρας *");
86 87
   LSTR MSG_MOVE_N_MM                      = _UxGT("Μετακίνηση %s μμ");

+ 1
- 0
Marlin/src/lcd/language/language_es.h View File

@@ -226,6 +226,7 @@ namespace Language_es {
226 226
   LSTR MSG_MOVE_X                         = _UxGT("Mover X");
227 227
   LSTR MSG_MOVE_Y                         = _UxGT("Mover Y");
228 228
   LSTR MSG_MOVE_Z                         = _UxGT("Mover Z");
229
+  LSTR MSG_MOVE_N                         = _UxGT("Mover @");
229 230
   LSTR MSG_MOVE_E                         = _UxGT("Extrusor");
230 231
   LSTR MSG_MOVE_EN                        = _UxGT("Extrusor *");
231 232
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Hotend muy frio");

+ 1
- 0
Marlin/src/lcd/language/language_eu.h View File

@@ -136,6 +136,7 @@ namespace Language_eu {
136 136
   LSTR MSG_MOVE_X                         = _UxGT("Mugitu X");
137 137
   LSTR MSG_MOVE_Y                         = _UxGT("Mugitu Y");
138 138
   LSTR MSG_MOVE_Z                         = _UxGT("Mugitu Z");
139
+  LSTR MSG_MOVE_N                         = _UxGT("Mugitu @");
139 140
   LSTR MSG_MOVE_E                         = _UxGT("Estrusorea");
140 141
   LSTR MSG_MOVE_EN                        = _UxGT("Estrusorea *");
141 142
   LSTR MSG_MOVE_N_MM                      = _UxGT("Mugitu $mm");

+ 1
- 0
Marlin/src/lcd/language/language_fi.h View File

@@ -69,6 +69,7 @@ namespace Language_fi {
69 69
   LSTR MSG_MOVE_X                         = _UxGT("Liikuta X");
70 70
   LSTR MSG_MOVE_Y                         = _UxGT("Liikuta Y");
71 71
   LSTR MSG_MOVE_Z                         = _UxGT("Liikuta Z");
72
+  LSTR MSG_MOVE_N                         = _UxGT("Liikuta @");
72 73
   LSTR MSG_MOVE_E                         = _UxGT("Extruder");
73 74
   LSTR MSG_MOVE_EN                        = _UxGT("Extruder *");
74 75
   LSTR MSG_MOVE_N_MM                      = _UxGT("Liikuta $mm");

+ 1
- 0
Marlin/src/lcd/language/language_gl.h View File

@@ -223,6 +223,7 @@ namespace Language_gl {
223 223
   LSTR MSG_MOVE_X                         = _UxGT("Mover X");
224 224
   LSTR MSG_MOVE_Y                         = _UxGT("Mover Y");
225 225
   LSTR MSG_MOVE_Z                         = _UxGT("Mover Z");
226
+  LSTR MSG_MOVE_N                         = _UxGT("Mover @");
226 227
   LSTR MSG_MOVE_E                         = _UxGT("Extrusor");
227 228
   LSTR MSG_MOVE_EN                        = _UxGT("Extrusor *");
228 229
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Bico moi frío");

+ 4
- 0
Marlin/src/lcd/language/language_hr.h View File

@@ -78,6 +78,10 @@ namespace Language_hr {
78 78
   LSTR MSG_LEVEL_BED                      = _UxGT("Niveliraj bed");
79 79
   LSTR MSG_MOVE_X                         = _UxGT("Miči X");
80 80
   LSTR MSG_MOVE_Y                         = _UxGT("Miči Y");
81
+  LSTR MSG_MOVE_Z                         = _UxGT("Miči Z");
82
+  LSTR MSG_MOVE_N                         = _UxGT("Miči @");
83
+  LSTR MSG_MOVE_E                         = _UxGT("Miči E");
84
+  LSTR MSG_MOVE_EN                        = _UxGT("Miči *");
81 85
   LSTR MSG_MOVE_N_MM                      = _UxGT("Miči $mm");
82 86
   LSTR MSG_MOVE_01MM                      = _UxGT("Miči 0.1mm");
83 87
   LSTR MSG_MOVE_1MM                       = _UxGT("Miči 1mm");

+ 2
- 0
Marlin/src/lcd/language/language_jp_kana.h View File

@@ -92,7 +92,9 @@ namespace Language_jp_kana {
92 92
   LSTR MSG_MOVE_X                         = _UxGT("Xジク イドウ");                  // "Move X"
93 93
   LSTR MSG_MOVE_Y                         = _UxGT("Yジク イドウ");                  // "Move Y"
94 94
   LSTR MSG_MOVE_Z                         = _UxGT("Zジク イドウ");                  // "Move Z"
95
+  LSTR MSG_MOVE_N                         = _UxGT("@ジク イドウ");                  // "Move @"
95 96
   LSTR MSG_MOVE_E                         = _UxGT("エクストルーダー");                // "Extruder"
97
+  LSTR MSG_MOVE_EN                        = _UxGT("* エクストルーダー");              // "En"
96 98
   LSTR MSG_MOVE_N_MM                      = _UxGT("$mm イドウ");                    // "Move 0.025mm"
97 99
   LSTR MSG_MOVE_01MM                      = _UxGT("0.1mm イドウ");                 // "Move 0.1mm"
98 100
   LSTR MSG_MOVE_1MM                       = _UxGT("  1mm イドウ");                 // "Move 1mm"

+ 1
- 0
Marlin/src/lcd/language/language_nl.h View File

@@ -84,6 +84,7 @@ namespace Language_nl {
84 84
   LSTR MSG_MOVE_X                         = _UxGT("Verplaats X");
85 85
   LSTR MSG_MOVE_Y                         = _UxGT("Verplaats Y");
86 86
   LSTR MSG_MOVE_Z                         = _UxGT("Verplaats Z");
87
+  LSTR MSG_MOVE_N                         = _UxGT("Verplaats @");
87 88
   LSTR MSG_MOVE_E                         = _UxGT("Extruder");
88 89
   LSTR MSG_MOVE_EN                        = _UxGT("Extruder *");
89 90
   LSTR MSG_MOVE_N_MM                      = _UxGT("Verplaats $mm");

+ 1
- 0
Marlin/src/lcd/language/language_pl.h View File

@@ -235,6 +235,7 @@ namespace Language_pl {
235 235
   LSTR MSG_MOVE_X                         = _UxGT("Przesuń w X");
236 236
   LSTR MSG_MOVE_Y                         = _UxGT("Przesuń w Y");
237 237
   LSTR MSG_MOVE_Z                         = _UxGT("Przesuń w Z");
238
+  LSTR MSG_MOVE_N                         = _UxGT("Przesuń w @");
238 239
   LSTR MSG_MOVE_E                         = _UxGT("Ekstruzja (os E)");
239 240
   LSTR MSG_MOVE_EN                        = _UxGT("Ekstruzja (os E) *");
240 241
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Dysza za zimna");

+ 1
- 0
Marlin/src/lcd/language/language_pt.h View File

@@ -78,6 +78,7 @@ namespace Language_pt {
78 78
   LSTR MSG_MOVE_X                         = _UxGT("Mover X");
79 79
   LSTR MSG_MOVE_Y                         = _UxGT("Mover Y");
80 80
   LSTR MSG_MOVE_Z                         = _UxGT("Mover Z");
81
+  LSTR MSG_MOVE_N                         = _UxGT("Mover @");
81 82
   LSTR MSG_MOVE_E                         = _UxGT("Mover Extrusor");
82 83
   LSTR MSG_MOVE_EN                        = _UxGT("Mover Extrusor *");
83 84
   LSTR MSG_MOVE_N_MM                      = _UxGT("Mover $mm");

+ 1
- 0
Marlin/src/lcd/language/language_pt_br.h View File

@@ -209,6 +209,7 @@ namespace Language_pt_br {
209 209
   LSTR MSG_MOVE_X                         = _UxGT("Mover X");
210 210
   LSTR MSG_MOVE_Y                         = _UxGT("Mover Y");
211 211
   LSTR MSG_MOVE_Z                         = _UxGT("Mover Z");
212
+  LSTR MSG_MOVE_N                         = _UxGT("Mover @");
212 213
   LSTR MSG_MOVE_E                         = _UxGT("Mover Extrusor");
213 214
   LSTR MSG_MOVE_EN                        = _UxGT("Mover Extrusor *");
214 215
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Extrus. mto fria");

+ 1
- 0
Marlin/src/lcd/language/language_ro.h View File

@@ -222,6 +222,7 @@ namespace Language_ro {
222 222
   LSTR MSG_MOVE_X                         = _UxGT("Move X");
223 223
   LSTR MSG_MOVE_Y                         = _UxGT("Move Y");
224 224
   LSTR MSG_MOVE_Z                         = _UxGT("Move Z");
225
+  LSTR MSG_MOVE_N                         = _UxGT("Move @");
225 226
   LSTR MSG_MOVE_E                         = _UxGT("Extruder");
226 227
   LSTR MSG_MOVE_EN                        = _UxGT("Extruder *");
227 228
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Capat Prea Rece");

+ 1
- 0
Marlin/src/lcd/language/language_sv.h View File

@@ -249,6 +249,7 @@ namespace Language_sv {
249 249
   LSTR MSG_MOVE_X                         = _UxGT("Flytta X");
250 250
   LSTR MSG_MOVE_Y                         = _UxGT("Flytta Y");
251 251
   LSTR MSG_MOVE_Z                         = _UxGT("Flytta Z");
252
+  LSTR MSG_MOVE_N                         = _UxGT("Flytta @");
252 253
   LSTR MSG_MOVE_E                         = _UxGT("Extruder");
253 254
   LSTR MSG_MOVE_EN                        = _UxGT("Extruder *");
254 255
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Hetände för kall");

+ 1
- 0
Marlin/src/lcd/language/language_tr.h View File

@@ -225,6 +225,7 @@ namespace Language_tr {
225 225
   LSTR MSG_MOVE_X                         = _UxGT("X Hareketi");
226 226
   LSTR MSG_MOVE_Y                         = _UxGT("Y Hareketi");
227 227
   LSTR MSG_MOVE_Z                         = _UxGT("Z Hareketi");
228
+  LSTR MSG_MOVE_N                         = _UxGT("@ Hareketi");
228 229
   LSTR MSG_MOVE_E                         = _UxGT("Ekstruder");
229 230
   LSTR MSG_MOVE_EN                        = _UxGT("Ekstruder *");
230 231
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Nozul Çok Soğuk");

+ 1
- 0
Marlin/src/lcd/language/language_vi.h View File

@@ -198,6 +198,7 @@ namespace Language_vi {
198 198
   LSTR MSG_MOVE_X                         = _UxGT("Di chuyển X");                          // Move X
199 199
   LSTR MSG_MOVE_Y                         = _UxGT("Di chuyển Y");
200 200
   LSTR MSG_MOVE_Z                         = _UxGT("Di chuyển Z");
201
+  LSTR MSG_MOVE_N                         = _UxGT("Di chuyển @");
201 202
   LSTR MSG_MOVE_E                         = _UxGT("Máy đùn");                              // Extruder
202 203
   LSTR MSG_MOVE_EN                        = _UxGT("Máy đùn *");
203 204
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("Đầu nóng quá lạnh");                    // Hotend too cold

+ 1
- 0
Marlin/src/lcd/language/language_zh_CN.h View File

@@ -222,6 +222,7 @@ namespace Language_zh_CN {
222 222
   LSTR MSG_MOVE_X                         = _UxGT("移动X");     // "Move X"
223 223
   LSTR MSG_MOVE_Y                         = _UxGT("移动Y");     // "Move Y"
224 224
   LSTR MSG_MOVE_Z                         = _UxGT("移动Z");     // "Move Z"
225
+  LSTR MSG_MOVE_N                         = _UxGT("移动@");     // "Move @"
225 226
   LSTR MSG_MOVE_E                         = _UxGT("挤出机");     // "Extruder"
226 227
   LSTR MSG_MOVE_EN                        = _UxGT("挤出机 *");     // "Extruder"
227 228
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("热端太冷");

+ 1
- 0
Marlin/src/lcd/language/language_zh_TW.h View File

@@ -218,6 +218,7 @@ namespace Language_zh_TW {
218 218
   LSTR MSG_MOVE_X                         = _UxGT("移動X");     // "Move X"
219 219
   LSTR MSG_MOVE_Y                         = _UxGT("移動Y");     // "Move Y"
220 220
   LSTR MSG_MOVE_Z                         = _UxGT("移動Z");     // "Move Z"
221
+  LSTR MSG_MOVE_N                         = _UxGT("移動Q");     // "Move @"
221 222
   LSTR MSG_MOVE_E                         = _UxGT("擠出機");     // "Extruder"
222 223
   LSTR MSG_MOVE_EN                        = _UxGT("擠出機 *");       // "Extruder *"
223 224
   LSTR MSG_HOTEND_TOO_COLD                = _UxGT("噴嘴溫度不夠");   // "Hotend too cold"

+ 2
- 0
Marlin/src/lcd/marlinui.h View File

@@ -176,6 +176,8 @@ typedef bool (*statusResetFunc_t)();
176 176
     static void soon(const AxisEnum axis OPTARG(MULTI_E_MANUAL, const int8_t eindex=active_extruder));
177 177
   };
178 178
 
179
+  void lcd_move_axis(const AxisEnum);
180
+
179 181
 #endif
180 182
 
181 183
 ////////////////////////////////////////////

+ 1
- 1
Marlin/src/lcd/menu/menu.cpp View File

@@ -191,7 +191,7 @@ void MarlinUI::goto_screen(screenFunc_t screen, const uint16_t encoder/*=0*/, co
191 191
         else {
192 192
           #if ENABLED(MOVE_Z_WHEN_IDLE)
193 193
             ui.manual_move.menu_scale = MOVE_Z_IDLE_MULTIPLICATOR;
194
-            screen = lcd_move_z;
194
+            screen = []{ lcd_move_axis(Z_AXIS); };
195 195
           #endif
196 196
         }
197 197
       }

+ 0
- 2
Marlin/src/lcd/menu/menu.h View File

@@ -214,8 +214,6 @@ void menu_move();
214 214
 //////// Menu Item Helper Functions ////////
215 215
 ////////////////////////////////////////////
216 216
 
217
-void lcd_move_axis(const AxisEnum);
218
-void lcd_move_z();
219 217
 void _lcd_draw_homing();
220 218
 
221 219
 #define HAS_LINE_TO_Z ANY(DELTA, PROBE_MANUALLY, MESH_BED_LEVELING, LCD_BED_TRAMMING)

+ 1
- 1
Marlin/src/lcd/menu/menu_delta_calibrate.cpp View File

@@ -52,7 +52,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
52 52
     ui.wait_for_move = false;
53 53
     ui.synchronize();
54 54
     ui.manual_move.menu_scale = _MAX(PROBE_MANUALLY_STEP, MIN_STEPS_PER_SEGMENT / planner.settings.axis_steps_per_mm[0]); // Use first axis as for delta XYZ should always match
55
-    ui.goto_screen(lcd_move_z);
55
+    ui.goto_screen([]{ lcd_move_axis(Z_AXIS); });
56 56
   }
57 57
 }
58 58
 

+ 0
- 2
Marlin/src/lcd/menu/menu_item.h View File

@@ -31,8 +31,6 @@
31 31
   #include "../../module/planner.h"
32 32
 #endif
33 33
 
34
-void lcd_move_z();
35
-
36 34
 ////////////////////////////////////////////
37 35
 ///////////// Base Menu Items //////////////
38 36
 ////////////////////////////////////////////

+ 2
- 4
Marlin/src/lcd/menu/menu_motion.cpp View File

@@ -74,6 +74,7 @@ void lcd_move_axis(const AxisEnum axis) {
74 74
   }
75 75
   ui.encoderPosition = 0;
76 76
   if (ui.should_draw()) {
77
+    MenuEditItemBase::itemIndex = axis;
77 78
     const float pos = ui.manual_move.axis_value(axis);
78 79
     if (parser.using_inch_units()) {
79 80
       const float imp_pos = LINEAR_UNIT(pos);
@@ -84,9 +85,6 @@ void lcd_move_axis(const AxisEnum axis) {
84 85
   }
85 86
 }
86 87
 
87
-// Move Z easy accessor
88
-void lcd_move_z() { lcd_move_axis(Z_AXIS); }
89
-
90 88
 #if E_MANUAL
91 89
 
92 90
   static void lcd_move_e(TERN_(MULTI_E_MANUAL, const int8_t eindex=active_extruder)) {
@@ -118,7 +116,7 @@ void lcd_move_z() { lcd_move_axis(Z_AXIS); }
118 116
 
119 117
   void _goto_manual_move_z(const_float_t scale) {
120 118
     ui.manual_move.menu_scale = scale;
121
-    ui.goto_screen(lcd_move_z);
119
+    ui.goto_screen([]{ lcd_move_axis(Z_AXIS); });
122 120
   }
123 121
 
124 122
 #endif

Loading…
Cancel
Save