Browse Source

Use translated strings for axis movement (PR#2280)

Suggest we use the translated strings here. They use (except for
German) the phrasing “Move X” instead of just the axis letter, but they
should fit the available space. The “Extruder” string would be the
same, except it will be translated.
Scott Lahteine 10 years ago
parent
commit
90f858aa85
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/ultralcd.cpp

+ 4
- 4
Marlin/ultralcd.cpp View File

736
   if (lcdDrawUpdate) lcd_implementation_drawedit(name, ftostr31(current_position[axis]));
736
   if (lcdDrawUpdate) lcd_implementation_drawedit(name, ftostr31(current_position[axis]));
737
   if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis);
737
   if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis);
738
 }
738
 }
739
-static void lcd_move_x() { _lcd_move(PSTR("X"), X_AXIS, X_MIN_POS, X_MAX_POS); }
740
-static void lcd_move_y() { _lcd_move(PSTR("Y"), Y_AXIS, Y_MIN_POS, Y_MAX_POS); }
741
-static void lcd_move_z() { _lcd_move(PSTR("Z"), Z_AXIS, Z_MIN_POS, Z_MAX_POS); }
739
+static void lcd_move_x() { _lcd_move(PSTR(MSG_MOVE_X), X_AXIS, X_MIN_POS, X_MAX_POS); }
740
+static void lcd_move_y() { _lcd_move(PSTR(MSG_MOVE_Y), Y_AXIS, Y_MIN_POS, Y_MAX_POS); }
741
+static void lcd_move_z() { _lcd_move(PSTR(MSG_MOVE_Z), Z_AXIS, Z_MIN_POS, Z_MAX_POS); }
742
 static void lcd_move_e() {
742
 static void lcd_move_e() {
743
   if (encoderPosition != 0) {
743
   if (encoderPosition != 0) {
744
     current_position[E_AXIS] += float((int)encoderPosition) * move_menu_scale;
744
     current_position[E_AXIS] += float((int)encoderPosition) * move_menu_scale;
746
     line_to_current(E_AXIS);
746
     line_to_current(E_AXIS);
747
     lcdDrawUpdate = 1;
747
     lcdDrawUpdate = 1;
748
   }
748
   }
749
-  if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("Extruder"), ftostr31(current_position[E_AXIS]));
749
+  if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR(MSG_MOVE_E), ftostr31(current_position[E_AXIS]));
750
   if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis);
750
   if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis);
751
 }
751
 }
752
 
752
 

Loading…
Cancel
Save