Browse Source

Now the oter way around.

Include of language_en.h now behind national language.

All "#define MSG_STR_*" now surrounded by #ifndef and #endif.
AnHardt 10 years ago
parent
commit
3aac2df057
2 changed files with 233 additions and 1 deletions
  1. 1
    1
      Marlin/language.h
  2. 232
    0
      Marlin/language_en.h

+ 1
- 1
Marlin/language.h View File

@@ -222,7 +222,7 @@
222 222
 #define TESTSTRING360 "\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377"
223 223
 */
224 224
 
225
-#include "language_en.h"
226 225
 #include LANGUAGE_INCLUDE
226
+#include "language_en.h"
227 227
 
228 228
 #endif //__LANGUAGE_H

+ 232
- 0
Marlin/language_en.h View File

@@ -8,124 +8,356 @@
8 8
 #ifndef LANGUAGE_EN_H
9 9
 #define LANGUAGE_EN_H
10 10
 
11
+#ifndef WELCOME_MSG
11 12
 #define WELCOME_MSG                         MACHINE_NAME " ready."
13
+#endif
14
+#ifndef MSG_SD_INSERTED
12 15
 #define MSG_SD_INSERTED                     "Card inserted"
16
+#endif
17
+#ifndef MSG_SD_REMOVED
13 18
 #define MSG_SD_REMOVED                      "Card removed"
19
+#endif
20
+#ifndef MSG_MAIN
14 21
 #define MSG_MAIN                            "Main"
22
+#endif
23
+#ifndef MSG_AUTOSTART
15 24
 #define MSG_AUTOSTART                       "Autostart"
25
+#endif
26
+#ifndef MSG_DISABLE_STEPPERS
16 27
 #define MSG_DISABLE_STEPPERS                "Disable steppers"
28
+#endif
29
+#ifndef MSG_AUTO_HOME
17 30
 #define MSG_AUTO_HOME                       "Auto home"
31
+#endif
32
+#ifndef MSG_SET_HOME_OFFSETS
18 33
 #define MSG_SET_HOME_OFFSETS                "Set home offsets"
34
+#endif
35
+#ifndef MSG_SET_ORIGIN
19 36
 #define MSG_SET_ORIGIN                      "Set origin"
37
+#endif
38
+#ifndef MSG_PREHEAT_PLA
20 39
 #define MSG_PREHEAT_PLA                     "Preheat PLA"
40
+#endif
41
+#ifndef MSG_PREHEAT_PLA_N
21 42
 #define MSG_PREHEAT_PLA_N                   MSG_PREHEAT_PLA " "
43
+#endif
44
+#ifndef MSG_PREHEAT_PLA_ALL
22 45
 #define MSG_PREHEAT_PLA_ALL                 MSG_PREHEAT_PLA " All"
46
+#endif
47
+#ifndef MSG_PREHEAT_PLA_BEDONLY
23 48
 #define MSG_PREHEAT_PLA_BEDONLY             MSG_PREHEAT_PLA " Bed"
49
+#endif
50
+#ifndef MSG_PREHEAT_PLA_SETTINGS
24 51
 #define MSG_PREHEAT_PLA_SETTINGS            MSG_PREHEAT_PLA " conf"
52
+#endif
53
+#ifndef MSG_PREHEAT_ABS
25 54
 #define MSG_PREHEAT_ABS                     "Preheat ABS"
55
+#endif
56
+#ifndef MSG_PREHEAT_ABS_N
26 57
 #define MSG_PREHEAT_ABS_N                   MSG_PREHEAT_ABS " "
58
+#endif
59
+#ifndef MSG_PREHEAT_ABS_ALL
27 60
 #define MSG_PREHEAT_ABS_ALL                 MSG_PREHEAT_ABS " All"
61
+#endif
62
+#ifndef MSG_PREHEAT_ABS_BEDONLY
28 63
 #define MSG_PREHEAT_ABS_BEDONLY             MSG_PREHEAT_ABS " Bed"
64
+#endif
65
+#ifndef MSG_PREHEAT_ABS_SETTINGS
29 66
 #define MSG_PREHEAT_ABS_SETTINGS            MSG_PREHEAT_ABS " conf"
67
+#endif
68
+#ifndef MSG_COOLDOWN
30 69
 #define MSG_COOLDOWN                        "Cooldown"
70
+#endif
71
+#ifndef MSG_SWITCH_PS_ON
31 72
 #define MSG_SWITCH_PS_ON                    "Switch power on"
73
+#endif
74
+#ifndef MSG_SWITCH_PS_OFF
32 75
 #define MSG_SWITCH_PS_OFF                   "Switch power off"
76
+#endif
77
+#ifndef MSG_EXTRUDE
33 78
 #define MSG_EXTRUDE                         "Extrude"
79
+#endif
80
+#ifndef MSG_RETRACT
34 81
 #define MSG_RETRACT                         "Retract"
82
+#endif
83
+#ifndef MSG_MOVE_AXIS
35 84
 #define MSG_MOVE_AXIS                       "Move axis"
85
+#endif
86
+#ifndef MSG_MOVE_X
36 87
 #define MSG_MOVE_X                          "Move X"
88
+#endif
89
+#ifndef MSG_MOVE_Y
37 90
 #define MSG_MOVE_Y                          "Move Y"
91
+#endif
92
+#ifndef MSG_MOVE_Z
38 93
 #define MSG_MOVE_Z                          "Move Z"
94
+#endif
95
+#ifndef MSG_MOVE_E
39 96
 #define MSG_MOVE_E                          "Extruder"
97
+#endif
98
+#ifndef MSG_MOVE_01MM
40 99
 #define MSG_MOVE_01MM                       "Move 0.1mm"
100
+#endif
101
+#ifndef MSG_MOVE_1MM
41 102
 #define MSG_MOVE_1MM                        "Move 1mm"
103
+#endif
104
+#ifndef MSG_MOVE_10MM
42 105
 #define MSG_MOVE_10MM                       "Move 10mm"
106
+#endif
107
+#ifndef MSG_SPEED
43 108
 #define MSG_SPEED                           "Speed"
109
+#endif
110
+#ifndef MSG_NOZZLE
44 111
 #define MSG_NOZZLE                          "Nozzle"
112
+#endif
113
+#ifndef MSG_BED
45 114
 #define MSG_BED                             "Bed"
115
+#endif
116
+#ifndef MSG_FAN_SPEED
46 117
 #define MSG_FAN_SPEED                       "Fan speed"
118
+#endif
119
+#ifndef MSG_FLOW
47 120
 #define MSG_FLOW                            "Flow"
121
+#endif
122
+#ifndef MSG_CONTROL
48 123
 #define MSG_CONTROL                         "Control"
124
+#endif
125
+#ifndef MSG_MIN
49 126
 #define MSG_MIN                             " " STR_THERMOMETER " Min"
127
+#endif
128
+#ifndef MSG_MAX
50 129
 #define MSG_MAX                             " " STR_THERMOMETER " Max"
130
+#endif
131
+#ifndef MSG_FACTOR
51 132
 #define MSG_FACTOR                          " " STR_THERMOMETER " Fact"
133
+#endif
134
+#ifndef MSG_AUTOTEMP
52 135
 #define MSG_AUTOTEMP                        "Autotemp"
136
+#endif
137
+#ifndef MSG_ON
53 138
 #define MSG_ON                              "On "
139
+#endif
140
+#ifndef MSG_OFF
54 141
 #define MSG_OFF                             "Off"
142
+#endif
143
+#ifndef MSG_PID_P
55 144
 #define MSG_PID_P                           "PID-P"
145
+#endif
146
+#ifndef MSG_PID_I
56 147
 #define MSG_PID_I                           "PID-I"
148
+#endif
149
+#ifndef MSG_PID_D
57 150
 #define MSG_PID_D                           "PID-D"
151
+#endif
152
+#ifndef MSG_PID_C
58 153
 #define MSG_PID_C                           "PID-C"
154
+#endif
155
+#ifndef MSG_ACC
59 156
 #define MSG_ACC                             "Accel"
157
+#endif
158
+#ifndef MSG_VXY_JERK
60 159
 #define MSG_VXY_JERK                        "Vxy-jerk"
160
+#endif
161
+#ifndef MSG_VZ_JERK
61 162
 #define MSG_VZ_JERK                         "Vz-jerk"
163
+#endif
164
+#ifndef MSG_VE_JERK
62 165
 #define MSG_VE_JERK                         "Ve-jerk"
166
+#endif
167
+#ifndef MSG_VMAX
63 168
 #define MSG_VMAX                            "Vmax "
169
+#endif
170
+#ifndef MSG_X
64 171
 #define MSG_X                               "x"
172
+#endif
173
+#ifndef MSG_Y
65 174
 #define MSG_Y                               "y"
175
+#endif
176
+#ifndef MSG_Z
66 177
 #define MSG_Z                               "z"
178
+#endif
179
+#ifndef MSG_E
67 180
 #define MSG_E                               "e"
181
+#endif
182
+#ifndef MSG_VMIN
68 183
 #define MSG_VMIN                            "Vmin"
184
+#endif
185
+#ifndef MSG_VTRAV_MIN
69 186
 #define MSG_VTRAV_MIN                       "VTrav min"
187
+#endif
188
+#ifndef MSG_AMAX
70 189
 #define MSG_AMAX                            "Amax "
190
+#endif
191
+#ifndef MSG_A_RETRACT
71 192
 #define MSG_A_RETRACT                       "A-retract"
193
+#endif
194
+#ifndef MSG_XSTEPS
72 195
 #define MSG_XSTEPS                          "Xsteps/mm"
196
+#endif
197
+#ifndef MSG_YSTEPS
73 198
 #define MSG_YSTEPS                          "Ysteps/mm"
199
+#endif
200
+#ifndef MSG_ZSTEPS
74 201
 #define MSG_ZSTEPS                          "Zsteps/mm"
202
+#endif
203
+#ifndef MSG_ESTEPS
75 204
 #define MSG_ESTEPS                          "Esteps/mm"
205
+#endif
206
+#ifndef MSG_TEMPERATURE
76 207
 #define MSG_TEMPERATURE                     "Temperature"
208
+#endif
209
+#ifndef MSG_MOTION
77 210
 #define MSG_MOTION                          "Motion"
211
+#endif
212
+#ifndef MSG_VOLUMETRIC
78 213
 #define MSG_VOLUMETRIC                      "Filament"
214
+#endif
215
+#ifndef MSG_VOLUMETRIC_ENABLED
79 216
 #define MSG_VOLUMETRIC_ENABLED		          "E in mm" STR_h3
217
+#endif
218
+#ifndef MSG_FILAMENT_SIZE_EXTRUDER_0
80 219
 #define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
220
+#endif
221
+#ifndef MSG_FILAMENT_SIZE_EXTRUDER_1
81 222
 #define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
223
+#endif
224
+#ifndef MSG_FILAMENT_SIZE_EXTRUDER_2
82 225
 #define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
226
+#endif
227
+#ifndef MSG_FILAMENT_SIZE_EXTRUDER_3
83 228
 #define MSG_FILAMENT_SIZE_EXTRUDER_3        "Fil. Dia. 4"
229
+#endif
230
+#ifndef MSG_CONTRAST
84 231
 #define MSG_CONTRAST                        "LCD contrast"
232
+#endif
233
+#ifndef MSG_STORE_EPROM
85 234
 #define MSG_STORE_EPROM                     "Store memory"
235
+#endif
236
+#ifndef MSG_LOAD_EPROM
86 237
 #define MSG_LOAD_EPROM                      "Load memory"
238
+#endif
239
+#ifndef MSG_RESTORE_FAILSAFE
87 240
 #define MSG_RESTORE_FAILSAFE                "Restore failsafe"
241
+#endif
242
+#ifndef MSG_REFRESH
88 243
 #define MSG_REFRESH                         "Refresh"
244
+#endif
245
+#ifndef MSG_WATCH
89 246
 #define MSG_WATCH                           "Info screen"
247
+#endif
248
+#ifndef MSG_PREPARE
90 249
 #define MSG_PREPARE                         "Prepare"
250
+#endif
251
+#ifndef MSG_TUNE
91 252
 #define MSG_TUNE                            "Tune"
253
+#endif
254
+#ifndef MSG_PAUSE_PRINT
92 255
 #define MSG_PAUSE_PRINT                     "Pause print"
256
+#endif
257
+#ifndef MSG_RESUME_PRINT
93 258
 #define MSG_RESUME_PRINT                    "Resume print"
259
+#endif
260
+#ifndef MSG_STOP_PRINT
94 261
 #define MSG_STOP_PRINT                      "Stop print"
262
+#endif
263
+#ifndef MSG_CARD_MENU
95 264
 #define MSG_CARD_MENU                       "Print from SD"
265
+#endif
266
+#ifndef MSG_NO_CARD
96 267
 #define MSG_NO_CARD                         "No SD card"
268
+#endif
269
+#ifndef MSG_DWELL
97 270
 #define MSG_DWELL                           "Sleep..."
271
+#endif
272
+#ifndef MSG_USERWAIT
98 273
 #define MSG_USERWAIT                        "Wait for user..."
274
+#endif
275
+#ifndef MSG_RESUMING
99 276
 #define MSG_RESUMING                        "Resuming print"
277
+#endif
278
+#ifndef MSG_PRINT_ABORTED
100 279
 #define MSG_PRINT_ABORTED                   "Print aborted"
280
+#endif
281
+#ifndef MSG_NO_MOVE
101 282
 #define MSG_NO_MOVE                         "No move."
283
+#endif
284
+#ifndef MSG_KILLED
102 285
 #define MSG_KILLED                          "KILLED. "
286
+#endif
287
+#ifndef MSG_STOPPED
103 288
 #define MSG_STOPPED                         "STOPPED. "
289
+#endif
290
+#ifndef MSG_CONTROL_RETRACT
104 291
 #define MSG_CONTROL_RETRACT                 "Retract mm"
292
+#endif
293
+#ifndef MSG_CONTROL_RETRACT_SWAP
105 294
 #define MSG_CONTROL_RETRACT_SWAP            "Swap Re.mm"
295
+#endif
296
+#ifndef MSG_CONTROL_RETRACTF
106 297
 #define MSG_CONTROL_RETRACTF                "Retract  V"
298
+#endif
299
+#ifndef MSG_CONTROL_RETRACT_ZLIFT
107 300
 #define MSG_CONTROL_RETRACT_ZLIFT           "Hop mm"
301
+#endif
302
+#ifndef MSG_CONTROL_RETRACT_RECOVER
108 303
 #define MSG_CONTROL_RETRACT_RECOVER         "UnRet +mm"
304
+#endif
305
+#ifndef MSG_CONTROL_RETRACT_RECOVER_SWAP
109 306
 #define MSG_CONTROL_RETRACT_RECOVER_SWAP    "S UnRet+mm"
307
+#endif
308
+#ifndef MSG_CONTROL_RETRACT_RECOVERF
110 309
 #define MSG_CONTROL_RETRACT_RECOVERF        "UnRet  V"
310
+#endif
311
+#ifndef MSG_AUTORETRACT
111 312
 #define MSG_AUTORETRACT                     "AutoRetr."
313
+#endif
314
+#ifndef MSG_FILAMENTCHANGE
112 315
 #define MSG_FILAMENTCHANGE                  "Change filament"
316
+#endif
317
+#ifndef MSG_INIT_SDCARD
113 318
 #define MSG_INIT_SDCARD                     "Init. SD card"
319
+#endif
320
+#ifndef MSG_CNG_SDCARD
114 321
 #define MSG_CNG_SDCARD                      "Change SD card"
322
+#endif
323
+#ifndef MSG_ZPROBE_OUT
115 324
 #define MSG_ZPROBE_OUT                      "Z probe out. bed"
325
+#endif
326
+#ifndef MSG_POSITION_UNKNOWN
116 327
 #define MSG_POSITION_UNKNOWN                "Home X/Y before Z"
328
+#endif
329
+#ifndef MSG_ZPROBE_ZOFFSET
117 330
 #define MSG_ZPROBE_ZOFFSET                  "Z Offset"
331
+#endif
332
+#ifndef MSG_BABYSTEP_X
118 333
 #define MSG_BABYSTEP_X                      "Babystep X"
334
+#endif
335
+#ifndef MSG_BABYSTEP_Y
119 336
 #define MSG_BABYSTEP_Y                      "Babystep Y"
337
+#endif
338
+#ifndef MSG_BABYSTEP_Z
120 339
 #define MSG_BABYSTEP_Z                      "Babystep Z"
340
+#endif
341
+#ifndef MSG_ENDSTOP_ABORT
121 342
 #define MSG_ENDSTOP_ABORT                   "Endstop abort"
343
+#endif
122 344
 
123 345
 #ifdef DELTA_CALIBRATION_MENU
346
+    #ifndef MSG_DELTA_CALIBRATE
124 347
     #define MSG_DELTA_CALIBRATE             "Delta Calibration"
348
+    #endif
349
+    #ifndef MSG_DELTA_CALIBRATE_X
125 350
     #define MSG_DELTA_CALIBRATE_X           "Calibrate X"
351
+    #endif
352
+    #ifndef MSG_DELTA_CALIBRATE_Y
126 353
     #define MSG_DELTA_CALIBRATE_Y           "Calibrate Y"
354
+    #endif
355
+    #ifndef MSG_DELTA_CALIBRATE_Z
127 356
     #define MSG_DELTA_CALIBRATE_Z           "Calibrate Z"
357
+    #endif
358
+    #ifndef MSG_DELTA_CALIBRATE_CENTER
128 359
     #define MSG_DELTA_CALIBRATE_CENTER      "Calibrate Center"
360
+    #endif
129 361
 #endif // DELTA_CALIBRATION_MENU
130 362
 
131 363
 #endif // LANGUAGE_EN_H

Loading…
Cancel
Save