My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

language.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #include "../inc/MarlinConfig.h"
  24. #define _UxGT(a) a
  25. // Fallback if no language is set. DON'T CHANGE
  26. #ifndef LCD_LANGUAGE
  27. #define LCD_LANGUAGE en
  28. #endif
  29. // For character-based LCD controllers (DISPLAY_CHARSET_HD44780)
  30. #define JAPANESE 1
  31. #define WESTERN 2
  32. #define CYRILLIC 3
  33. // NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
  34. //
  35. // ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRA_LCD" / "SDSUPPORT" #define IN "Configuration.h"
  36. // ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS
  37. // See also https://marlinfw.org/docs/development/lcd_language.html
  38. // Languages
  39. // an Aragonese
  40. // bg Bulgarian
  41. // ca Catalan
  42. // cz Czech
  43. // da Danish
  44. // de German
  45. // el Greek
  46. // el_gr Greek (Greece)
  47. // en English
  48. // es Spanish
  49. // eu Basque-Euskera
  50. // fi Finnish
  51. // fr French
  52. // gl Galician
  53. // hr Croatian
  54. // hu Hungarian
  55. // it Italian
  56. // jp_kana Japanese
  57. // ko_KR Korean (South Korea)
  58. // nl Dutch
  59. // pl Polish
  60. // pt Portuguese
  61. // pt_br Portuguese (Brazilian)
  62. // ro Romanian
  63. // ru Russian
  64. // sk Slovak
  65. // sv Swedish
  66. // tr Turkish
  67. // uk Ukrainian
  68. // vi Vietnamese
  69. // zh_CN Chinese (Simplified)
  70. // zh_TW Chinese (Traditional)
  71. #ifdef DEFAULT_SOURCE_CODE_URL
  72. #undef SOURCE_CODE_URL
  73. #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL
  74. #endif
  75. #ifdef CUSTOM_MACHINE_NAME
  76. #undef MACHINE_NAME
  77. #define MACHINE_NAME CUSTOM_MACHINE_NAME
  78. #elif defined(DEFAULT_MACHINE_NAME)
  79. #undef MACHINE_NAME
  80. #define MACHINE_NAME DEFAULT_MACHINE_NAME
  81. #endif
  82. #ifndef MACHINE_UUID
  83. #define MACHINE_UUID DEFAULT_MACHINE_UUID
  84. #endif
  85. #define MARLIN_WEBSITE_URL "marlinfw.org"
  86. //#if !defined(STRING_SPLASH_LINE3) && defined(WEBSITE_URL)
  87. // #define STRING_SPLASH_LINE3 WEBSITE_URL
  88. //#endif
  89. //
  90. // Common Serial Console Messages
  91. // Don't change these strings because serial hosts look for them.
  92. //
  93. #define STR_ENQUEUEING "enqueueing \""
  94. #define STR_POWERUP "PowerUp"
  95. #define STR_EXTERNAL_RESET " External Reset"
  96. #define STR_BROWNOUT_RESET " Brown out Reset"
  97. #define STR_WATCHDOG_RESET " Watchdog Reset"
  98. #define STR_SOFTWARE_RESET " Software Reset"
  99. #define STR_FREE_MEMORY " Free Memory: "
  100. #define STR_PLANNER_BUFFER_BYTES " PlannerBufferBytes: "
  101. #define STR_OK "ok"
  102. #define STR_WAIT "wait"
  103. #define STR_STATS "Stats: "
  104. #define STR_FILE_SAVED "Done saving file."
  105. #define STR_ERR_LINE_NO "Line Number is not Last Line Number+1, Last Line: "
  106. #define STR_ERR_CHECKSUM_MISMATCH "checksum mismatch, Last Line: "
  107. #define STR_ERR_NO_CHECKSUM "No Checksum with line number, Last Line: "
  108. #define STR_FILE_PRINTED "Done printing file"
  109. #define STR_NO_MEDIA "No media"
  110. #define STR_BEGIN_FILE_LIST "Begin file list"
  111. #define STR_END_FILE_LIST "End file list"
  112. #define STR_INVALID_EXTRUDER "Invalid extruder"
  113. #define STR_INVALID_E_STEPPER "Invalid E stepper"
  114. #define STR_E_STEPPER_NOT_SPECIFIED "E stepper not specified"
  115. #define STR_INVALID_SOLENOID "Invalid solenoid"
  116. #define STR_COUNT_X " Count X:"
  117. #define STR_COUNT_A " Count A:"
  118. #define STR_WATCHDOG_FIRED "Watchdog timeout. Reset required."
  119. #define STR_ERR_KILLED "Printer halted. kill() called!"
  120. #define STR_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
  121. #define STR_ERR_SERIAL_MISMATCH "Serial status mismatch"
  122. #define STR_BUSY_PROCESSING "busy: processing"
  123. #define STR_BUSY_PAUSED_FOR_USER "busy: paused for user"
  124. #define STR_BUSY_PAUSED_FOR_INPUT "busy: paused for input"
  125. #define STR_Z_MOVE_COMP "Z_move_comp"
  126. #define STR_RESEND "Resend: "
  127. #define STR_UNKNOWN_COMMAND "Unknown command: \""
  128. #define STR_ACTIVE_EXTRUDER "Active Extruder: "
  129. #define STR_X_MIN "x_min"
  130. #define STR_X_MAX "x_max"
  131. #define STR_X2_MIN "x2_min"
  132. #define STR_X2_MAX "x2_max"
  133. #define STR_Y_MIN "y_min"
  134. #define STR_Y_MAX "y_max"
  135. #define STR_Y2_MIN "y2_min"
  136. #define STR_Y2_MAX "y2_max"
  137. #define STR_Z_MIN "z_min"
  138. #define STR_Z_MAX "z_max"
  139. #define STR_Z2_MIN "z2_min"
  140. #define STR_Z2_MAX "z2_max"
  141. #define STR_Z3_MIN "z3_min"
  142. #define STR_Z3_MAX "z3_max"
  143. #define STR_Z4_MIN "z4_min"
  144. #define STR_Z4_MAX "z4_max"
  145. #define STR_Z_PROBE "z_probe"
  146. #define STR_PROBE_EN "probe_en"
  147. #define STR_FILAMENT_RUNOUT_SENSOR "filament"
  148. #define STR_PROBE_OFFSET "Probe Offset"
  149. #define STR_SKEW_MIN "min_skew_factor: "
  150. #define STR_SKEW_MAX "max_skew_factor: "
  151. #define STR_ERR_MATERIAL_INDEX "M145 S<index> out of range (0-1)"
  152. #define STR_ERR_M421_PARAMETERS "M421 incorrect parameter usage"
  153. #define STR_ERR_BAD_PLANE_MODE "G5 requires XY plane mode"
  154. #define STR_ERR_MESH_XY "Mesh point out of range"
  155. #define STR_ERR_ARC_ARGS "G2/G3 bad parameters"
  156. #define STR_ERR_PROTECTED_PIN "Protected Pin"
  157. #define STR_ERR_M420_FAILED "Failed to enable Bed Leveling"
  158. #define STR_ERR_M428_TOO_FAR "Too far from reference point"
  159. #define STR_ERR_M303_DISABLED "PIDTEMP disabled"
  160. #define STR_M119_REPORT "Reporting endstop status"
  161. #define STR_ON "ON"
  162. #define STR_OFF "OFF"
  163. #define STR_ENDSTOP_HIT "TRIGGERED"
  164. #define STR_ENDSTOP_OPEN "open"
  165. #define STR_HOTEND_OFFSET "Hotend offsets:"
  166. #define STR_DUPLICATION_MODE "Duplication mode: "
  167. #define STR_SOFT_ENDSTOPS "Soft endstops: "
  168. #define STR_SOFT_MIN " Min: "
  169. #define STR_SOFT_MAX " Max: "
  170. #define STR_SAVED_POS "Position saved"
  171. #define STR_RESTORING_POS "Restoring position"
  172. #define STR_INVALID_POS_SLOT "Invalid slot. Total: "
  173. #define STR_SD_CANT_OPEN_SUBDIR "Cannot open subdir "
  174. #define STR_SD_INIT_FAIL "No SD card"
  175. #define STR_SD_VOL_INIT_FAIL "volume.init failed"
  176. #define STR_SD_OPENROOT_FAIL "openRoot failed"
  177. #define STR_SD_CARD_OK "SD card ok"
  178. #define STR_SD_WORKDIR_FAIL "workDir open failed"
  179. #define STR_SD_OPEN_FILE_FAIL "open failed, File: "
  180. #define STR_SD_FILE_OPENED "File opened: "
  181. #define STR_SD_SIZE " Size: "
  182. #define STR_SD_FILE_SELECTED "File selected"
  183. #define STR_SD_WRITE_TO_FILE "Writing to file: "
  184. #define STR_SD_PRINTING_BYTE "SD printing byte "
  185. #define STR_SD_NOT_PRINTING "Not SD printing"
  186. #define STR_SD_ERR_WRITE_TO_FILE "error writing to file"
  187. #define STR_SD_ERR_READ "SD read error"
  188. #define STR_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: "
  189. #define STR_ENDSTOPS_HIT "endstops hit: "
  190. #define STR_ERR_COLD_EXTRUDE_STOP " cold extrusion prevented"
  191. #define STR_ERR_LONG_EXTRUDE_STOP " too long extrusion prevented"
  192. #define STR_ERR_HOTEND_TOO_COLD "Hotend too cold"
  193. #define STR_ERR_EEPROM_WRITE "Error writing to EEPROM!"
  194. #define STR_FILAMENT_CHANGE_HEAT_LCD "Press button to heat nozzle"
  195. #define STR_FILAMENT_CHANGE_INSERT_LCD "Insert filament and press button"
  196. #define STR_FILAMENT_CHANGE_WAIT_LCD "Press button to resume"
  197. #define STR_FILAMENT_CHANGE_HEAT_M108 "Send M108 to heat nozzle"
  198. #define STR_FILAMENT_CHANGE_INSERT_M108 "Insert filament and send M108"
  199. #define STR_FILAMENT_CHANGE_WAIT_M108 "Send M108 to resume"
  200. #define STR_STOP_BLTOUCH "!! STOP called because of BLTouch error - restart with M999"
  201. #define STR_STOP_UNHOMED "!! STOP called because of unhomed error - restart with M999"
  202. #define STR_KILL_INACTIVE_TIME "!! KILL caused by too much inactive time - current command: "
  203. #define STR_KILL_BUTTON "!! KILL caused by KILL button/pin"
  204. // temperature.cpp strings
  205. #define STR_PID_AUTOTUNE_START "PID Autotune start"
  206. #define STR_PID_BAD_HEATER_ID "PID Autotune failed! Bad heater id"
  207. #define STR_PID_TEMP_TOO_HIGH "PID Autotune failed! Temperature too high"
  208. #define STR_PID_TIMEOUT "PID Autotune failed! timeout"
  209. #define STR_BIAS " bias: "
  210. #define STR_D_COLON " d: "
  211. #define STR_T_MIN " min: "
  212. #define STR_T_MAX " max: "
  213. #define STR_KU " Ku: "
  214. #define STR_TU " Tu: "
  215. #define STR_CLASSIC_PID " Classic PID "
  216. #define STR_KP " Kp: "
  217. #define STR_KI " Ki: "
  218. #define STR_KD " Kd: "
  219. #define STR_PID_AUTOTUNE_FINISHED "PID Autotune finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
  220. #define STR_PID_DEBUG " PID_DEBUG "
  221. #define STR_PID_DEBUG_INPUT ": Input "
  222. #define STR_PID_DEBUG_OUTPUT " Output "
  223. #define STR_PID_DEBUG_PTERM " pTerm "
  224. #define STR_PID_DEBUG_ITERM " iTerm "
  225. #define STR_PID_DEBUG_DTERM " dTerm "
  226. #define STR_PID_DEBUG_CTERM " cTerm "
  227. #define STR_INVALID_EXTRUDER_NUM " - Invalid extruder number !"
  228. #define STR_HEATER_BED "bed"
  229. #define STR_HEATER_CHAMBER "chamber"
  230. #define STR_STOPPED_HEATER ", system stopped! Heater_ID: "
  231. #define STR_REDUNDANCY "Heater switched off. Temperature difference between temp sensors is too high !"
  232. #define STR_T_HEATING_FAILED "Heating failed"
  233. #define STR_T_THERMAL_RUNAWAY "Thermal Runaway"
  234. #define STR_T_MAXTEMP "MAXTEMP triggered"
  235. #define STR_T_MINTEMP "MINTEMP triggered"
  236. #define STR_ERR_PROBING_FAILED "Probing Failed"
  237. #define STR_ZPROBE_OUT_SER "Z Probe Past Bed"
  238. // Debug
  239. #define STR_DEBUG_PREFIX "DEBUG:"
  240. #define STR_DEBUG_OFF "off"
  241. #define STR_DEBUG_ECHO "ECHO"
  242. #define STR_DEBUG_INFO "INFO"
  243. #define STR_DEBUG_ERRORS "ERRORS"
  244. #define STR_DEBUG_DRYRUN "DRYRUN"
  245. #define STR_DEBUG_COMMUNICATION "COMMUNICATION"
  246. #define STR_DEBUG_LEVELING "LEVELING"
  247. #define STR_PRINTER_LOCKED "Printer locked! (Unlock with M511 or LCD)"
  248. #define STR_WRONG_PASSWORD "Incorrect Password"
  249. #define STR_PASSWORD_TOO_LONG "Password too long"
  250. #define STR_PASSWORD_REMOVED "Password removed"
  251. #define STR_REMINDER_SAVE_SETTINGS "Remember to save!"
  252. #define STR_PASSWORD_SET "Password is "
  253. // LCD Menu Messages
  254. #define LANGUAGE_DATA_INCL_(M) STRINGIFY_(fontdata/langdata_##M.h)
  255. #define LANGUAGE_DATA_INCL(M) LANGUAGE_DATA_INCL_(M)
  256. #define LANGUAGE_INCL_(M) STRINGIFY_(../lcd/language/language_##M.h)
  257. #define LANGUAGE_INCL(M) LANGUAGE_INCL_(M)
  258. #define STR_X "X"
  259. #define STR_Y "Y"
  260. #define STR_Z "Z"
  261. #define STR_E "E"
  262. #if IS_KINEMATIC
  263. #define STR_A "A"
  264. #define STR_B "B"
  265. #define STR_C "C"
  266. #else
  267. #define STR_A "X"
  268. #define STR_B "Y"
  269. #define STR_C "Z"
  270. #endif
  271. #define STR_X2 "X2"
  272. #define STR_Y2 "Y2"
  273. #define STR_Z2 "Z2"
  274. #define STR_Z3 "Z3"
  275. #define STR_Z4 "Z4"
  276. #define LCD_STR_A STR_A
  277. #define LCD_STR_B STR_B
  278. #define LCD_STR_C STR_C
  279. #define LCD_STR_E STR_E
  280. #if EITHER(HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL)
  281. // Custom characters defined in the first 8 characters of the LCD
  282. #define LCD_STR_BEDTEMP "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!
  283. #define LCD_STR_DEGREE "\x01"
  284. #define LCD_STR_THERMOMETER "\x02" // Still used with string concatenation
  285. #define LCD_STR_UPLEVEL "\x03"
  286. #define LCD_STR_REFRESH "\x04"
  287. #define LCD_STR_FOLDER "\x05"
  288. #define LCD_STR_FEEDRATE "\x06"
  289. #define LCD_STR_CLOCK "\x07"
  290. #define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
  291. #else
  292. //
  293. // Custom characters from Marlin_symbols.fon which was merged into ISO10646-0-3.bdf
  294. // \x00 intentionally skipped to avoid problems in strings
  295. //
  296. #define LCD_STR_REFRESH "\x01"
  297. #define LCD_STR_FOLDER "\x02"
  298. #define LCD_STR_ARROW_RIGHT "\x03"
  299. #define LCD_STR_UPLEVEL "\x04"
  300. #define LCD_STR_CLOCK "\x05"
  301. #define LCD_STR_FEEDRATE "\x06"
  302. #define LCD_STR_BEDTEMP "\x07"
  303. #define LCD_STR_THERMOMETER "\x08"
  304. #define LCD_STR_DEGREE "\x09"
  305. #define LCD_STR_SPECIAL_MAX '\x09'
  306. // Maximum here is 0x1F because 0x20 is ' ' (space) and the normal charsets begin.
  307. // Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
  308. // Symbol characters
  309. #define LCD_STR_FILAM_DIA "\xF8"
  310. #define LCD_STR_FILAM_MUL "\xA4"
  311. #endif
  312. /**
  313. * Tool indexes for LCD display only
  314. *
  315. * By convention the LCD shows "E1" for the first extruder.
  316. * However, internal to Marlin E0/T0 is the first tool, and
  317. * most board silkscreens say "E0." Zero-based labels will
  318. * make these indexes consistent but this defies expectation.
  319. */
  320. #if ENABLED(NUMBER_TOOLS_FROM_0)
  321. #define LCD_FIRST_TOOL 0
  322. #define LCD_STR_N0 "0"
  323. #define LCD_STR_N1 "1"
  324. #define LCD_STR_N2 "2"
  325. #define LCD_STR_N3 "3"
  326. #define LCD_STR_N4 "4"
  327. #define LCD_STR_N5 "5"
  328. #define LCD_STR_N6 "6"
  329. #define LCD_STR_N7 "7"
  330. #else
  331. #define LCD_FIRST_TOOL 1
  332. #define LCD_STR_N0 "1"
  333. #define LCD_STR_N1 "2"
  334. #define LCD_STR_N2 "3"
  335. #define LCD_STR_N3 "4"
  336. #define LCD_STR_N4 "5"
  337. #define LCD_STR_N5 "6"
  338. #define LCD_STR_N6 "7"
  339. #define LCD_STR_N7 "8"
  340. #endif
  341. #define LCD_STR_E0 "E" LCD_STR_N0
  342. #define LCD_STR_E1 "E" LCD_STR_N1
  343. #define LCD_STR_E2 "E" LCD_STR_N2
  344. #define LCD_STR_E3 "E" LCD_STR_N3
  345. #define LCD_STR_E4 "E" LCD_STR_N4
  346. #define LCD_STR_E5 "E" LCD_STR_N5
  347. #define LCD_STR_E6 "E" LCD_STR_N6
  348. #define LCD_STR_E7 "E" LCD_STR_N7
  349. // Use superscripts, if possible. Evaluated at point of use.
  350. #define SUPERSCRIPT_TWO TERN(NOT_EXTENDED_ISO10646_1_5X7, "^2", "²")
  351. #define SUPERSCRIPT_THREE TERN(NOT_EXTENDED_ISO10646_1_5X7, "^3", "³")
  352. #include "multi_language.h" // Allow multiple languages
  353. #include "../lcd/language/language_en.h"
  354. #include LANGUAGE_INCL(LCD_LANGUAGE)
  355. #include LANGUAGE_INCL(LCD_LANGUAGE_2)
  356. #include LANGUAGE_INCL(LCD_LANGUAGE_3)
  357. #include LANGUAGE_INCL(LCD_LANGUAGE_4)
  358. #include LANGUAGE_INCL(LCD_LANGUAGE_5)
  359. #if NONE(DISPLAY_CHARSET_ISO10646_1, \
  360. DISPLAY_CHARSET_ISO10646_5, \
  361. DISPLAY_CHARSET_ISO10646_KANA, \
  362. DISPLAY_CHARSET_ISO10646_GREEK, \
  363. DISPLAY_CHARSET_ISO10646_CN, \
  364. DISPLAY_CHARSET_ISO10646_TR, \
  365. DISPLAY_CHARSET_ISO10646_PL, \
  366. DISPLAY_CHARSET_ISO10646_CZ, \
  367. DISPLAY_CHARSET_ISO10646_SK)
  368. #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
  369. #endif