瀏覽代碼

Merge pull request #1434 from AnHardt/LostInTranslation2

Introduction of a system to feed displays with the correct charsets. Example in language_de.h
Scott Lahteine 9 年之前
父節點
當前提交
b40dd814b0
共有 3 個文件被更改,包括 144 次插入72 次删除
  1. 6
    0
      Marlin/Configuration.h
  2. 67
    0
      Marlin/language.h
  3. 71
    72
      Marlin/language_de.h

+ 6
- 0
Marlin/Configuration.h 查看文件

@@ -533,6 +533,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
533 533
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
534 534
 
535 535
 //LCD and SD support
536
+
537
+// Character based displays can have different extended charsets. If you see strange or missing characters on yours - try an other definition below.
538
+#define DISPLAY_CHARSET_HD44870_JAPAN  //  "ääööüüß°"
539
+//#define DISPLAY_CHARSET_HD44870_WESTERN // with better support for European languages. "ÄäÖöÜüß°"
540
+//#define DISPLAY_CHARSET_DOGM // for full graphics display "ÄäÖÖÜÜß°"
541
+
536 542
 //#define ULTRA_LCD  //general LCD support, also 16x2
537 543
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
538 544
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console

+ 67
- 0
Marlin/language.h 查看文件

@@ -1,6 +1,8 @@
1 1
 #ifndef LANGUAGE_H
2 2
 #define LANGUAGE_H
3 3
 
4
+#include "Configuration.h"
5
+
4 6
 #define LANGUAGE_CONCAT(M)       #M
5 7
 #define GENERATE_LANGUAGE_INCLUDE(M)  LANGUAGE_CONCAT(language_##M.h)
6 8
 
@@ -160,6 +162,71 @@
160 162
 
161 163
 #define MSG_ERR_EEPROM_WRITE                "Error writing to EEPROM!"
162 164
 
165
+// LCD Menu Messages
166
+
167
+#define STR_Ae "Ae" // No charset known now. Default will be overruled when we know.
168
+#define STR_ae "ae"
169
+#define STR_Oe "Oe"
170
+#define STR_oe "oe"
171
+#define STR_Ue "Ue"
172
+#define STR_ue "ue"
173
+#define STR_sz "ss"
174
+#define STR_Deg ""
175
+#define STR_THERMOMETER "\302"
176
+
177
+#ifdef DISPLAY_CHARSET_DOGM
178
+  #define STR_Ae "\304" // U8glib
179
+  #define STR_ae "\344"
180
+  #define STR_Oe "\326"
181
+  #define STR_oe STR_Oe
182
+  #define STR_Ue "\334"
183
+  #define STR_ue STR_Ue
184
+  #define STR_sz "\337"
185
+  #define STR_Deg "\260"
186
+  #define STR_THERMOMETER "\377"
187
+#endif
188
+#ifdef DISPLAY_CHARSET_HD44870_JAPAN // HD44870 ROM Code: A00 (Japan)
189
+  #define STR_ae "\xe1"
190
+  #define STR_Ae STR_ae
191
+  #define STR_oe "\357"
192
+  #define STR_Oe STR_oe
193
+  #define STR_ue "\365"
194
+  #define STR_Ue STR_ue
195
+  #define STR_sz "\342"
196
+  #define STR_Deg "\271"
197
+  #define STR_THERMOMETER "\302"
198
+#endif
199
+#ifdef DISPLAY_CHARSET_HD44870_WESTERN // HD44870 ROM Code: A02 (Western)
200
+  #define STR_Ae "\216"
201
+  #define STR_ae "\204"
202
+  #define STR_Oe "\211"
203
+  #define STR_oe "\204"
204
+  #define STR_Ue "\212"
205
+  #define STR_ue "\201"
206
+  #define STR_sz "\160"
207
+  #define STR_Deg "\337"
208
+  #define STR_THERMOMETER "\302"
209
+#endif
210
+
211
+/*
212
+#define TESTSTRING000 "\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017"
213
+#define TESTSTRING020 "\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
214
+#define TESTSTRING040 "\040\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057"
215
+#define TESTSTRING060 "\060\061\062\063\064\065\066\067\070\071\072\073\074\075\076\077"
216
+#define TESTSTRING100 "\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117"
217
+#define TESTSTRING120 "\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137"
218
+#define TESTSTRING140 "\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157"
219
+#define TESTSTRING160 "\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177"
220
+#define TESTSTRING200 "\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217"
221
+#define TESTSTRING220 "\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237"
222
+#define TESTSTRING240 "\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257"
223
+#define TESTSTRING260 "\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277"
224
+#define TESTSTRING300 "\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317"
225
+#define TESTSTRING320 "\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337"
226
+#define TESTSTRING340 "\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357"
227
+#define TESTSTRING360 "\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377"
228
+*/
229
+
163 230
 #include LANGUAGE_INCLUDE
164 231
 
165 232
 #endif //__LANGUAGE_H

+ 71
- 72
Marlin/language_de.h 查看文件

@@ -9,97 +9,96 @@
9 9
 #define LANGUAGE_DE_H
10 10
 
11 11
 #define WELCOME_MSG                         MACHINE_NAME " Bereit."
12
-#define MSG_SD_INSERTED                     "SDKarte erkannt"
13
-#define MSG_SD_REMOVED                      "SDKarte entfernt"
14
-#define MSG_MAIN                            "Hauptmenü"
12
+#define MSG_SD_INSERTED                     "SDKarte erkannt."
13
+#define MSG_SD_REMOVED                      "SDKarte entfernt."
14
+#define MSG_MAIN                            "Hauptmen" STR_ue
15 15
 #define MSG_AUTOSTART                       "Autostart"
16
-#define MSG_DISABLE_STEPPERS                "Stepper abschalt."
17
-#define MSG_AUTO_HOME                       "Auto Nullpunkt"
18
-#define MSG_SET_HOME_OFFSETS                "Set home offsets"
19
-#define MSG_SET_ORIGIN                      "Setze Nullpunkt"
20
-#define MSG_PREHEAT_PLA                     "Vorwärmen PLA"
21
-#define MSG_PREHEAT_PLA_N                   "Vorwärmen PLA "
16
+#define MSG_DISABLE_STEPPERS                "Motoren Aus" // M84
17
+#define MSG_AUTO_HOME                       "Home" // G28
18
+#define MSG_SET_HOME_OFFSETS                "Setze Home hier"
19
+#define MSG_SET_ORIGIN                      "Setze Null hier" //"G92 X0 Y0 Z0" commented out in ultralcd.cpp
20
+#define MSG_PREHEAT_PLA                     "Vorw" STR_ae "rmen PLA"
21
+#define MSG_PREHEAT_PLA_N                   "Vorw" STR_ae "rmen PLA "
22 22
 #define MSG_PREHEAT_PLA_ALL                 "Vorw. PLA Alle"
23 23
 #define MSG_PREHEAT_PLA_BEDONLY             "Vorw. PLA Bett"
24
-#define MSG_PREHEAT_PLA_SETTINGS            "Vorwärm. PLA Ein."
25
-#define MSG_PREHEAT_ABS                     "Vorwärmen ABS"
26
-#define MSG_PREHEAT_ABS_N                   "Vorwärmen ABS "
24
+#define MSG_PREHEAT_PLA_SETTINGS            "Vorw" STR_ae "rm. PLA Ein."
25
+#define MSG_PREHEAT_ABS                     "Vorw" STR_ae "rmen ABS"
26
+#define MSG_PREHEAT_ABS_N                   "Vorw" STR_ae "rmen ABS "
27 27
 #define MSG_PREHEAT_ABS_ALL                 "Vorw. ABS Alle"
28 28
 #define MSG_PREHEAT_ABS_BEDONLY             "Vorw. ABS Bett"
29
-#define MSG_PREHEAT_ABS_SETTINGS            "Vorwärm. ABS Ein."
30
-#define MSG_COOLDOWN                        "Abkühlen"
31
-#define MSG_SWITCH_PS_ON                    "Switch Power On"
32
-#define MSG_SWITCH_PS_OFF                   "Switch Power Off"
33
-#define MSG_EXTRUDE                         "Extrude"
29
+#define MSG_PREHEAT_ABS_SETTINGS            "Vorw" STR_ae "rm. ABS Ein."
30
+#define MSG_COOLDOWN                        "Abk" STR_ue "hlen"
31
+#define MSG_SWITCH_PS_ON                    "Netzteil Ein"
32
+#define MSG_SWITCH_PS_OFF                   "Netzteil Aus"
34 33
 #define MSG_RETRACT                         "Retract"
35
-#define MSG_MOVE_AXIS                       "Achsen bewegen"
36
-#define MSG_MOVE_X                          "X bewegen"
37
-#define MSG_MOVE_Y                          "Y bewegen"
38
-#define MSG_MOVE_Z                          "Z bewegen"
39
-#define MSG_MOVE_E                          "Extruder"
40
-#define MSG_MOVE_01MM                       "0.1mm bewegen"
41
-#define MSG_MOVE_1MM                        "1mm bewegen"
42
-#define MSG_MOVE_10MM                       "10mm bewegen"
43
-#define MSG_SPEED                           "Geschw"
44
-#define MSG_NOZZLE                          "Düse"
34
+#define MSG_MOVE_AXIS                       "Bewegen"
35
+#define MSG_MOVE_X                          "X"
36
+#define MSG_MOVE_Y                          "Y"
37
+#define MSG_MOVE_Z                          "Z"
38
+#define MSG_MOVE_E                          "E"
39
+#define MSG_MOVE_01MM                       " 0.1 mm"
40
+#define MSG_MOVE_1MM                        " 1.0 mm"
41
+#define MSG_MOVE_10MM                       "10.0 mm"
42
+#define MSG_SPEED                           "Geschw."
43
+#define MSG_NOZZLE                          "D" STR_ue "se"
45 44
 #define MSG_BED                             "Bett"
46
-#define MSG_FAN_SPEED                       "Lüftergeschw."
45
+#define MSG_FAN_SPEED                       "L" STR_ue "ftergeschw."
47 46
 #define MSG_FLOW                            "Fluss"
48 47
 #define MSG_CONTROL                         "Einstellungen"
49
-#define MSG_MIN                             "\002 Min"
50
-#define MSG_MAX                             "\002 Max"
51
-#define MSG_FACTOR                          "\002 Faktor"
48
+#define MSG_MIN                             STR_THERMOMETER " Min"
49
+#define MSG_MAX                             STR_THERMOMETER " Max"
50
+#define MSG_FACTOR                          STR_THERMOMETER " Faktor"
52 51
 #define MSG_AUTOTEMP                        "AutoTemp"
53 52
 #define MSG_ON                              "Ein"
54 53
 #define MSG_OFF                             "Aus"
55
-#define MSG_PID_P                           "PID-P"
56
-#define MSG_PID_I                           "PID-I"
57
-#define MSG_PID_D                           "PID-D"
58
-#define MSG_PID_C                           "PID-C"
59
-#define MSG_ACC                             "Acc"
60
-#define MSG_VXY_JERK                        "Vxy-jerk"
61
-#define MSG_VZ_JERK                         "Vz-jerk"
62
-#define MSG_VE_JERK                         "Ve-jerk"
63
-#define MSG_VMAX                            "Vmax "
54
+#define MSG_PID_P                           "PID P"
55
+#define MSG_PID_I                           "PID I"
56
+#define MSG_PID_D                           "PID D"
57
+#define MSG_PID_C                           "PID C"
58
+#define MSG_ACC                             "A"
59
+#define MSG_VXY_JERK                        "V xy jerk"
60
+#define MSG_VZ_JERK                         "V z  jerk"
61
+#define MSG_VE_JERK                         "V e  jerk"
62
+#define MSG_VMAX                            "V max " // space by purpose
64 63
 #define MSG_X                               "x"
65 64
 #define MSG_Y                               "y"
66 65
 #define MSG_Z                               "z"
67 66
 #define MSG_E                               "e"
68
-#define MSG_VMIN                            "Vmin"
67
+#define MSG_VMIN                            "V min"
69 68
 #define MSG_VTRAV_MIN                       "VTrav min"
70
-#define MSG_AMAX                            "Amax "
71
-#define MSG_A_RETRACT                       "A-Retract"
72
-#define MSG_XSTEPS                          "Xsteps/mm"
73
-#define MSG_YSTEPS                          "Ysteps/mm"
74
-#define MSG_ZSTEPS                          "Zsteps/mm"
75
-#define MSG_ESTEPS                          "Esteps/mm"
69
+#define MSG_AMAX                            "A max " // space by purpose
70
+#define MSG_A_RETRACT                       "A Retract"
71
+#define MSG_XSTEPS                          "X steps/mm"
72
+#define MSG_YSTEPS                          "Y steps/mm"
73
+#define MSG_ZSTEPS                          "Z steps/mm"
74
+#define MSG_ESTEPS                          "E steps/mm"
76 75
 #define MSG_TEMPERATURE                     "Temperatur"
77 76
 #define MSG_MOTION                          "Bewegung"
78 77
 #define MSG_VOLUMETRIC                      "Filament"
79
-#define MSG_VOLUMETRIC_ENABLED		        "E in mm3"
80
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
81
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
82
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
78
+#define MSG_VOLUMETRIC_ENABLED		          "E in mm3"
79
+#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Filament D 1"
80
+#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Filament D 2"
81
+#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Filament D 3"
83 82
 #define MSG_CONTRAST                        "LCD contrast"
84 83
 #define MSG_STORE_EPROM                     "EPROM speichern"
85 84
 #define MSG_LOAD_EPROM                      "EPROM laden"
86 85
 #define MSG_RESTORE_FAILSAFE                "Standardkonfig."
87 86
 #define MSG_REFRESH                         "Aktualisieren"
88
-#define MSG_WATCH                           "Beobachten"
87
+#define MSG_WATCH                           "Info"
89 88
 #define MSG_PREPARE                         "Vorbereitung"
90 89
 #define MSG_TUNE                            "Justierung"
91
-#define MSG_PAUSE_PRINT                     "Druck anhalten"
92
-#define MSG_RESUME_PRINT                    "Druck fortsetz"
93
-#define MSG_STOP_PRINT                      "Druck stoppen"
94
-#define MSG_CARD_MENU                       "SDKarten Menü"
90
+#define MSG_PAUSE_PRINT                     "SD-Druck Pause"
91
+#define MSG_RESUME_PRINT                    "SD-Druck Weiter"
92
+#define MSG_STOP_PRINT                      "SD-Druck Abbruch"
93
+#define MSG_CARD_MENU                       "SDKarte"
95 94
 #define MSG_NO_CARD                         "Keine SDKarte"
96 95
 #define MSG_DWELL                           "Warten..."
97
-#define MSG_USERWAIT                        "Warte auf Nutzer"
98
-#define MSG_RESUMING                        "Druck fortsetzung"
99
-#define MSG_PRINT_ABORTED                   "Print aborted"
100
-#define MSG_NO_MOVE                         "Kein Zug."
101
-#define MSG_KILLED                          "KILLED"
102
-#define MSG_STOPPED                         "GESTOPPT"
96
+#define MSG_USERWAIT                        "Warte auf Nutzer."
97
+#define MSG_RESUMING                        "Druck geht weiter"
98
+#define MSG_PRINT_ABORTED                   "Druck abgebrochen"
99
+#define MSG_NO_MOVE                         "Motoren Eingesch."
100
+#define MSG_KILLED                          "KILLED."
101
+#define MSG_STOPPED                         "ANGEHALTEN."
103 102
 #define MSG_CONTROL_RETRACT                 "Retract mm"
104 103
 #define MSG_CONTROL_RETRACT_SWAP            "Wechs. Retract mm"
105 104
 #define MSG_CONTROL_RETRACTF                "Retract  V"
@@ -109,22 +108,22 @@
109 108
 #define MSG_CONTROL_RETRACT_RECOVERF        "UnRet  V"
110 109
 #define MSG_AUTORETRACT                     "AutoRetr."
111 110
 #define MSG_FILAMENTCHANGE                  "Filament wechseln"
112
-#define MSG_INIT_SDCARD                     "Init. SD-Card"
113
-#define MSG_CNG_SDCARD                      "Change SD-Card"
114
-#define MSG_ZPROBE_OUT                      "Z probe out. bed"
115
-#define MSG_POSITION_UNKNOWN                "Home X/Y before Z"
111
+#define MSG_INIT_SDCARD                     "SDKarte erkennen"// Manually initialize the SD-card via user interface
112
+#define MSG_CNG_SDCARD                      "SDKarte erkennen"// SD-card changed by user. For machines with no autocarddetect. Both send "M21"
113
+#define MSG_ZPROBE_OUT                      "Sensor ausserhalb"
114
+#define MSG_POSITION_UNKNOWN                "X/Y vor Z Homen."
116 115
 #define MSG_ZPROBE_ZOFFSET                  "Z Offset"
117 116
 #define MSG_BABYSTEP_X                      "Babystep X"
118 117
 #define MSG_BABYSTEP_Y                      "Babystep Y"
119 118
 #define MSG_BABYSTEP_Z                      "Babystep Z"
120
-#define MSG_ENDSTOP_ABORT                   "Endstop abort"
119
+#define MSG_ENDSTOP_ABORT                   "Endstop Abbr. Ein"
121 120
 
122 121
 #ifdef DELTA_CALIBRATION_MENU
123
-    #define MSG_DELTA_CALIBRATE             "Delta Calibration"
124
-    #define MSG_DELTA_CALIBRATE_X           "Calibrate X"
125
-    #define MSG_DELTA_CALIBRATE_Y           "Calibrate Y"
126
-    #define MSG_DELTA_CALIBRATE_Z           "Calibrate Z"
127
-    #define MSG_DELTA_CALIBRATE_CENTER      "Calibrate Center"
122
+    #define MSG_DELTA_CALIBRATE             "Delta Kalibrieren"
123
+    #define MSG_DELTA_CALIBRATE_X           "Kalibriere X"
124
+    #define MSG_DELTA_CALIBRATE_Y           "Kalibriere Y"
125
+    #define MSG_DELTA_CALIBRATE_Z           "Kalibriere Z"
126
+    #define MSG_DELTA_CALIBRATE_CENTER      "Kalibriere Mitte"
128 127
 #endif // DELTA_CALIBRATION_MENU
129 128
 
130 129
 #endif // LANGUAGE_DE_H

Loading…
取消
儲存