Browse Source

Changed `x of 4` and `y of 9` to `x/4` and `y/4`
Added `Iteration` translation

3d-gussner 3 years ago
parent
commit
686054b95e

+ 3 - 6
Firmware/Marlin_main.cpp

@@ -3428,13 +3428,11 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
 		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CONFIRM_NOZZLE_CLEAN));
 		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CONFIRM_NOZZLE_CLEAN));
 		if(onlyZ){
 		if(onlyZ){
 			lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1));
 			lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1));
-			lcd_set_cursor(0, 3);
-			lcd_printf_P(PSTR("1 %S 9"),_T(MSG_OF));
+			lcd_puts_at_P(0,3,_n("1/9"));
 		}else{
 		}else{
 			//lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
 			//lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
 			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
 			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
-			lcd_set_cursor(0, 3);
-			lcd_printf_P(PSTR("1 %S 4"),_T(MSG_OF));
+			lcd_puts_at_P(0,3,_n("1/4"));
 		}
 		}
 
 
 		refresh_cmd_timeout();
 		refresh_cmd_timeout();
@@ -3454,8 +3452,7 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
 		    lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
 		    lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
 			KEEPALIVE_STATE(IN_HANDLER);
 			KEEPALIVE_STATE(IN_HANDLER);
 			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
 			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
-			lcd_set_cursor(0, 3);
-			lcd_printf_P(PSTR("1 %S 4"),_T(MSG_OF));
+			lcd_puts_at_P(0,3,_n("1/4"));
 		}
 		}
 			
 			
 		bool endstops_enabled  = enable_endstops(false);
 		bool endstops_enabled  = enable_endstops(false);

+ 11 - 21
Firmware/mesh_bed_calibration.cpp

@@ -2231,10 +2231,7 @@ BedSkewOffsetDetectionResultType find_bed_offset_and_skew(int8_t verbosity_level
 		}
 		}
 		#endif // SUPPORT_VERBOSITY
 		#endif // SUPPORT_VERBOSITY
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
-    uint8_t next_line;
-    lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1), next_line);
-    if (next_line > 3)
-        next_line = 3;
+    lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 
 
     // Collect the rear 2x3 points.
     // Collect the rear 2x3 points.
@@ -2249,11 +2246,11 @@ BedSkewOffsetDetectionResultType find_bed_offset_and_skew(int8_t verbosity_level
             // Don't let the manage_inactivity() function remove power from the motors.
             // Don't let the manage_inactivity() function remove power from the motors.
             refresh_cmd_timeout();
             refresh_cmd_timeout();
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
-		lcd_set_cursor(0, next_line);
-		lcd_printf_P(PSTR("%d %S 4"),(k+1),_T(MSG_OF));
+		lcd_set_cursor(0, 3);
+		lcd_printf_P(PSTR("%d/4"),(k+1));
 
 
 		if (iteration > 0) {
 		if (iteration > 0) {
-			lcd_printf_P(PSTR(" Iter %d"),int(iteration + 1));
+			lcd_printf_P(PSTR(" %S %d/1"),_T(MSG_ITERATION),int(iteration + 1));
 		}
 		}
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 		float *pt = pts + k * 2;
 		float *pt = pts + k * 2;
@@ -2531,10 +2528,7 @@ BedSkewOffsetDetectionResultType improve_bed_offset_and_skew(int8_t method, int8
     bool endstop_z_enabled = enable_z_endstop(false);
     bool endstop_z_enabled = enable_z_endstop(false);
 
 
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
-    uint8_t next_line;
-    lcd_display_message_fullscreen_P(_i("Improving bed calibration point"), next_line);////MSG_IMPROVE_BED_OFFSET_AND_SKEW_LINE1 c=60
-    if (next_line > 3)
-        next_line = 3;
+    lcd_display_message_fullscreen_P(_i("Improving bed calibration point"));////MSG_IMPROVE_BED_OFFSET_AND_SKEW_LINE1 c=60
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 
 
     // Collect a matrix of 9x9 points.
     // Collect a matrix of 9x9 points.
@@ -2544,8 +2538,8 @@ BedSkewOffsetDetectionResultType improve_bed_offset_and_skew(int8_t method, int8
         refresh_cmd_timeout();
         refresh_cmd_timeout();
         // Print the decrasing ID of the measurement point.
         // Print the decrasing ID of the measurement point.
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
-        lcd_set_cursor(0, next_line);
-        lcd_printf_P(PSTR("%d %S 4"),mesh_point+1,_T(MSG_OF));
+        lcd_set_cursor(0, 3);
+        lcd_printf_P(PSTR("%d/4"),mesh_point+1);
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 
 
         // Move up.
         // Move up.
@@ -2843,13 +2837,9 @@ bool sample_mesh_and_store_reference()
     refresh_cmd_timeout();
     refresh_cmd_timeout();
 
 
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
-    uint8_t next_line;
-    lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1), next_line);
-    if (next_line > 3)
-        next_line = 3;
+    lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1));
     // display "point xx of yy"
     // display "point xx of yy"
-	lcd_set_cursor(0, next_line);
-    lcd_printf_P(PSTR("1 %S 9"),_T(MSG_OF));
+    lcd_puts_at_P(0,3,_n("1/9"));
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 
 
     // Sample Z heights for the mesh bed leveling.
     // Sample Z heights for the mesh bed leveling.
@@ -2897,8 +2887,8 @@ bool sample_mesh_and_store_reference()
         go_to_current(homing_feedrate[X_AXIS]/60);
         go_to_current(homing_feedrate[X_AXIS]/60);
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
 #ifdef MESH_BED_CALIBRATION_SHOW_LCD
         // display "point xx of yy"
         // display "point xx of yy"
-		lcd_set_cursor(0, next_line);
-        lcd_printf_P(PSTR("%d %S 9"),mesh_point+1,_T(MSG_OF));
+		lcd_set_cursor(0, 3);
+        lcd_printf_P(PSTR("%d/9"),mesh_point+1);
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 #endif /* MESH_BED_CALIBRATION_SHOW_LCD */
 		if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
 		if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
 		{
 		{

+ 1 - 1
Firmware/messages.c

@@ -50,6 +50,7 @@ const char MSG_FSENSOR[] PROGMEM_I1 = ISTR("Fil. sensor"); ////c=12
 const char MSG_HEATING[] PROGMEM_I1 = ISTR("Heating"); ////c=20
 const char MSG_HEATING[] PROGMEM_I1 = ISTR("Heating"); ////c=20
 const char MSG_HEATING_COMPLETE[] PROGMEM_I1 = ISTR("Heating done."); ////c=20
 const char MSG_HEATING_COMPLETE[] PROGMEM_I1 = ISTR("Heating done."); ////c=20
 const char MSG_HOMEYZ[] PROGMEM_I1 = ISTR("Calibrate Z"); ////c=18
 const char MSG_HOMEYZ[] PROGMEM_I1 = ISTR("Calibrate Z"); ////c=18
+const char MSG_ITERATION[] PROGMEM_I1 = ISTR("Iteration"); ////c=12
 const char MSG_CHOOSE_EXTRUDER[] PROGMEM_I1 = ISTR("Choose extruder:"); ////c=20
 const char MSG_CHOOSE_EXTRUDER[] PROGMEM_I1 = ISTR("Choose extruder:"); ////c=20
 const char MSG_CHOOSE_FILAMENT[] PROGMEM_I1 = ISTR("Choose filament:"); ////c=20
 const char MSG_CHOOSE_FILAMENT[] PROGMEM_I1 = ISTR("Choose filament:"); ////c=20
 const char MSG_LAST_PRINT[] PROGMEM_I1 = ISTR("Last print"); ////c=18
 const char MSG_LAST_PRINT[] PROGMEM_I1 = ISTR("Last print"); ////c=18
@@ -123,7 +124,6 @@ const char MSG_WIZARD_WELCOME_SHIPPING[] PROGMEM_I1 = ISTR("Hi, I am your Origin
 const char MSG_YES[] PROGMEM_I1 = ISTR("Yes"); ////c=3
 const char MSG_YES[] PROGMEM_I1 = ISTR("Yes"); ////c=3
 const char MSG_V2_CALIBRATION[] PROGMEM_I1 = ISTR("First layer cal."); ////c=18
 const char MSG_V2_CALIBRATION[] PROGMEM_I1 = ISTR("First layer cal."); ////c=18
 const char WELCOME_MSG[] PROGMEM_I1 = ISTR(CUSTOM_MENDEL_NAME " OK."); ////c=20
 const char WELCOME_MSG[] PROGMEM_I1 = ISTR(CUSTOM_MENDEL_NAME " OK."); ////c=20
-const char MSG_OF[] PROGMEM_I1 = ISTR("of"); ////c=3
 const char MSG_OFF[] PROGMEM_I1 = ISTR("Off"); ////c=3
 const char MSG_OFF[] PROGMEM_I1 = ISTR("Off"); ////c=3
 const char MSG_ON[] PROGMEM_I1 = ISTR("On"); ////c=3
 const char MSG_ON[] PROGMEM_I1 = ISTR("On"); ////c=3
 const char MSG_NA[] PROGMEM_I1 = ISTR("N/A"); ////c=3
 const char MSG_NA[] PROGMEM_I1 = ISTR("N/A"); ////c=3

+ 1 - 1
Firmware/messages.h

@@ -51,6 +51,7 @@ extern const char MSG_FSENSOR[];
 extern const char MSG_HEATING[];
 extern const char MSG_HEATING[];
 extern const char MSG_HEATING_COMPLETE[];
 extern const char MSG_HEATING_COMPLETE[];
 extern const char MSG_HOMEYZ[];
 extern const char MSG_HOMEYZ[];
+extern const char MSG_ITERATION[];
 extern const char MSG_CHOOSE_EXTRUDER[];
 extern const char MSG_CHOOSE_EXTRUDER[];
 extern const char MSG_CHOOSE_FILAMENT[];
 extern const char MSG_CHOOSE_FILAMENT[];
 extern const char MSG_LAST_PRINT[];
 extern const char MSG_LAST_PRINT[];
@@ -123,7 +124,6 @@ extern const char MSG_WIZARD_WELCOME_SHIPPING[];
 extern const char MSG_YES[];
 extern const char MSG_YES[];
 extern const char MSG_V2_CALIBRATION[];
 extern const char MSG_V2_CALIBRATION[];
 extern const char WELCOME_MSG[];
 extern const char WELCOME_MSG[];
-extern const char MSG_OF[];
 extern const char MSG_OFF[];
 extern const char MSG_OFF[];
 extern const char MSG_ON[];
 extern const char MSG_ON[];
 extern const char MSG_NA[];
 extern const char MSG_NA[];

+ 3 - 3
lang/lang_en.txt

@@ -412,6 +412,9 @@
 #MSG_LOADING_FILAMENT c=20
 #MSG_LOADING_FILAMENT c=20
 "Loading filament"
 "Loading filament"
 
 
+#MSG_ITERATION c=12
+"Iteration"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 
 
@@ -586,9 +589,6 @@
 #MSG_EJECT_REMOVE c=20 r=4
 #MSG_EJECT_REMOVE c=20 r=4
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 
 
-#MSG_OF c=3
-"of"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 
 

+ 4 - 4
lang/lang_en_cz.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Zavadeni filamentu"
 "Zavadeni filamentu"
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"Opakovani"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Uvolnena remenicka"
 "Uvolnena remenicka"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Prosim vyjmete filament a pote stisknete tlacitko."
 "Prosim vyjmete filament a pote stisknete tlacitko."
 
 
-#MSG_OF c=3
-"of"
-"z"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Odstrante prosim tiskovy plat z podlozky."
 "Odstrante prosim tiskovy plat z podlozky."

+ 4 - 4
lang/lang_en_de.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Filament laedt"
 "Filament laedt"
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"Wiederholung"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Lose Riemenscheibe"
 "Lose Riemenscheibe"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Bitte Filament entfernen und dann den Knopf druecken"
 "Bitte Filament entfernen und dann den Knopf druecken"
 
 
-#MSG_OF c=3
-"of"
-"von"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Bitte entfernen Sie das Stahlblech vom Heizbett."
 "Bitte entfernen Sie das Stahlblech vom Heizbett."

+ 4 - 4
lang/lang_en_es.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Introduciendo filam."
 "Introduciendo filam."
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"Iteracion"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Polea suelta"
 "Polea suelta"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Por favor quite el filamento y luego presione el dial."
 "Por favor quite el filamento y luego presione el dial."
 
 
-#MSG_OF c=3
-"of"
-"de"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Por favor retire la chapa de acero de la base calefactable."
 "Por favor retire la chapa de acero de la base calefactable."

+ 4 - 4
lang/lang_en_fr.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Chargement du fil."
 "Chargement du fil."
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"\x00"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Poulie lache"
 "Poulie lache"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Veuillez retirer le filament puis appuyez sur le bouton."
 "Veuillez retirer le filament puis appuyez sur le bouton."
 
 
-#MSG_OF c=3
-"of"
-"de"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Retirez la plaque en acier du plateau chauffant."
 "Retirez la plaque en acier du plateau chauffant."

+ 4 - 4
lang/lang_en_it.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Caricando filamento"
 "Caricando filamento"
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"Iterazione"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Puleggia lenta"
 "Puleggia lenta"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Rimuovi il filamento e quindi premi la manopola."
 "Rimuovi il filamento e quindi premi la manopola."
 
 
-#MSG_OF c=3
-"of"
-"su"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Rimuovete la piastra di acciaio dal piano riscaldato"
 "Rimuovete la piastra di acciaio dal piano riscaldato"

+ 4 - 4
lang/lang_en_nl.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Laden filament"
 "Laden filament"
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"Iteratie"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Losse riemschijf"
 "Losse riemschijf"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Trek onmiddellijk filament eruit en druk vervolgens op de knop."
 "Trek onmiddellijk filament eruit en druk vervolgens op de knop."
 
 
-#MSG_OF c=3
-"of"
-"van"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Verwijder staalplaat van het bed."
 "Verwijder staalplaat van het bed."

+ 4 - 4
lang/lang_en_pl.txt

@@ -550,6 +550,10 @@
 "Loading filament"
 "Loading filament"
 "Laduje filament"
 "Laduje filament"
 
 
+#MSG_ITERATION c=12
+"Iteration"
+"Iteracja"
+
 #MSG_LOOSE_PULLEY c=20
 #MSG_LOOSE_PULLEY c=20
 "Loose pulley"
 "Loose pulley"
 "Luzne kolo pasowe"
 "Luzne kolo pasowe"
@@ -782,10 +786,6 @@
 "Please remove filament and then press the knob."
 "Please remove filament and then press the knob."
 "Wyciagnij filament i wcisnij pokretlo."
 "Wyciagnij filament i wcisnij pokretlo."
 
 
-#MSG_OF c=3
-"of"
-"z"
-
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 #MSG_REMOVE_STEEL_SHEET c=20 r=4
 "Please remove steel sheet from heatbed."
 "Please remove steel sheet from heatbed."
 "Prosze zdjac plyte stalowa z podgrzewanego stolu."
 "Prosze zdjac plyte stalowa z podgrzewanego stolu."