My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

language.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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 <http://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 http://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. // it Italian
  55. // jp_kana Japanese
  56. // ko_KR Korean (South Korea)
  57. // nl Dutch
  58. // pl Polish
  59. // pt Portuguese
  60. // pt_br Portuguese (Brazilian)
  61. // ru Russian
  62. // sk Slovak
  63. // tr Turkish
  64. // uk Ukrainian
  65. // vi Vietnamese
  66. // zh_CN Chinese (Simplified)
  67. // zh_TW Chinese (Traditional)
  68. #ifdef DEFAULT_SOURCE_CODE_URL
  69. #undef SOURCE_CODE_URL
  70. #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL
  71. #endif
  72. #ifdef CUSTOM_MACHINE_NAME
  73. #undef MACHINE_NAME
  74. #define MACHINE_NAME CUSTOM_MACHINE_NAME
  75. #else
  76. #ifdef DEFAULT_MACHINE_NAME
  77. #undef MACHINE_NAME
  78. #define MACHINE_NAME DEFAULT_MACHINE_NAME
  79. #endif
  80. #endif
  81. #ifndef MACHINE_UUID
  82. #define MACHINE_UUID DEFAULT_MACHINE_UUID
  83. #endif
  84. #define MARLIN_WEBSITE_URL "http://marlinfw.org"
  85. //#if !defined(STRING_SPLASH_LINE3) && defined(WEBSITE_URL)
  86. // #define STRING_SPLASH_LINE3 WEBSITE_URL
  87. //#endif
  88. #if HAS_CHARACTER_LCD
  89. // Custom characters defined in the first 8 characters of the LCD
  90. #define LCD_STR_BEDTEMP "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!
  91. #define LCD_STR_DEGREE "\x01"
  92. #define LCD_STR_THERMOMETER "\x02" // Still used with string concatenation
  93. #define LCD_STR_UPLEVEL "\x03"
  94. #define LCD_STR_REFRESH "\x04"
  95. #define LCD_STR_FOLDER "\x05"
  96. #define LCD_STR_FEEDRATE "\x06"
  97. #define LCD_STR_CLOCK "\x07"
  98. #define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
  99. #else
  100. //
  101. // Custom characters from Marlin_symbols.fon which was merged into ISO10646-0-3.bdf
  102. // \x00 intentionally skipped to avoid problems in strings
  103. //
  104. #define LCD_STR_REFRESH "\x01"
  105. #define LCD_STR_FOLDER "\x02"
  106. #define LCD_STR_ARROW_RIGHT "\x03"
  107. #define LCD_STR_UPLEVEL "\x04"
  108. #define LCD_STR_CLOCK "\x05"
  109. #define LCD_STR_FEEDRATE "\x06"
  110. #define LCD_STR_BEDTEMP "\x07"
  111. #define LCD_STR_THERMOMETER "\x08"
  112. #define LCD_STR_DEGREE "\x09"
  113. #define LCD_STR_SPECIAL_MAX '\x09'
  114. // Maximum here is 0x1F because 0x20 is ' ' (space) and the normal charsets begin.
  115. // Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
  116. // Symbol characters
  117. #define LCD_STR_FILAM_DIA "\xF8"
  118. #define LCD_STR_FILAM_MUL "\xA4"
  119. #endif
  120. // Common LCD messages
  121. /* nothing here yet */
  122. // Common serial messages
  123. #define MSG_MARLIN "Marlin"
  124. // Serial Console Messages (do not translate those!)
  125. #define MSG_ENQUEUEING "enqueueing \""
  126. #define MSG_POWERUP "PowerUp"
  127. #define MSG_EXTERNAL_RESET " External Reset"
  128. #define MSG_BROWNOUT_RESET " Brown out Reset"
  129. #define MSG_WATCHDOG_RESET " Watchdog Reset"
  130. #define MSG_SOFTWARE_RESET " Software Reset"
  131. #define MSG_AUTHOR " | Author: "
  132. #define MSG_CONFIGURATION_VER " Last Updated: "
  133. #define MSG_FREE_MEMORY " Free Memory: "
  134. #define MSG_PLANNER_BUFFER_BYTES " PlannerBufferBytes: "
  135. #define MSG_OK "ok"
  136. #define MSG_WAIT "wait"
  137. #define MSG_STATS "Stats: "
  138. #define MSG_FILE_SAVED "Done saving file."
  139. #define MSG_ERR_LINE_NO "Line Number is not Last Line Number+1, Last Line: "
  140. #define MSG_ERR_CHECKSUM_MISMATCH "checksum mismatch, Last Line: "
  141. #define MSG_ERR_NO_CHECKSUM "No Checksum with line number, Last Line: "
  142. #define MSG_FILE_PRINTED "Done printing file"
  143. #define MSG_BEGIN_FILE_LIST "Begin file list"
  144. #define MSG_END_FILE_LIST "End file list"
  145. #define MSG_INVALID_EXTRUDER "Invalid extruder"
  146. #define MSG_INVALID_E_STEPPER "Invalid E stepper"
  147. #define MSG_E_STEPPER_NOT_SPECIFIED "E stepper not specified"
  148. #define MSG_INVALID_SOLENOID "Invalid solenoid"
  149. #define MSG_M115_REPORT "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID
  150. #define MSG_COUNT_X " Count X:"
  151. #define MSG_COUNT_A " Count A:"
  152. #define MSG_WATCHDOG_FIRED "Watchdog timeout. Reset required."
  153. #define MSG_ERR_KILLED "Printer halted. kill() called!"
  154. #define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
  155. #define MSG_BUSY_PROCESSING "busy: processing"
  156. #define MSG_BUSY_PAUSED_FOR_USER "busy: paused for user"
  157. #define MSG_BUSY_PAUSED_FOR_INPUT "busy: paused for input"
  158. #define MSG_Z_MOVE_COMP "Z_move_comp"
  159. #define MSG_RESEND "Resend: "
  160. #define MSG_UNKNOWN_COMMAND "Unknown command: \""
  161. #define MSG_ACTIVE_EXTRUDER "Active Extruder: "
  162. #define MSG_X_MIN "x_min"
  163. #define MSG_X_MAX "x_max"
  164. #define MSG_X2_MIN "x2_min"
  165. #define MSG_X2_MAX "x2_max"
  166. #define MSG_Y_MIN "y_min"
  167. #define MSG_Y_MAX "y_max"
  168. #define MSG_Y2_MIN "y2_min"
  169. #define MSG_Y2_MAX "y2_max"
  170. #define MSG_Z_MIN "z_min"
  171. #define MSG_Z_MAX "z_max"
  172. #define MSG_Z2_MIN "z2_min"
  173. #define MSG_Z2_MAX "z2_max"
  174. #define MSG_Z3_MIN "z3_min"
  175. #define MSG_Z3_MAX "z3_max"
  176. #define MSG_Z4_MIN "z4_min"
  177. #define MSG_Z4_MAX "z4_max"
  178. #define MSG_Z_PROBE "z_probe"
  179. #define MSG_FILAMENT_RUNOUT_SENSOR "filament"
  180. #define MSG_PROBE_OFFSET "Probe Offset"
  181. #define MSG_SKEW_MIN "min_skew_factor: "
  182. #define MSG_SKEW_MAX "max_skew_factor: "
  183. #define MSG_ERR_MATERIAL_INDEX "M145 S<index> out of range (0-1)"
  184. #define MSG_ERR_M421_PARAMETERS "M421 incorrect parameter usage"
  185. #define MSG_ERR_BAD_PLANE_MODE "G5 requires XY plane mode"
  186. #define MSG_ERR_MESH_XY "Mesh point cannot be resolved"
  187. #define MSG_ERR_ARC_ARGS "G2/G3 bad parameters"
  188. #define MSG_ERR_PROTECTED_PIN "Protected Pin"
  189. #define MSG_ERR_M420_FAILED "Failed to enable Bed Leveling"
  190. #define MSG_ERR_M428_TOO_FAR "Too far from reference point"
  191. #define MSG_ERR_M303_DISABLED "PIDTEMP disabled"
  192. #define MSG_M119_REPORT "Reporting endstop status"
  193. #define MSG_ON "ON"
  194. #define MSG_OFF "OFF"
  195. #define MSG_ENDSTOP_HIT "TRIGGERED"
  196. #define MSG_ENDSTOP_OPEN "open"
  197. #define MSG_HOTEND_OFFSET "Hotend offsets:"
  198. #define MSG_DUPLICATION_MODE "Duplication mode: "
  199. #define MSG_SOFT_ENDSTOPS "Soft endstops: "
  200. #define MSG_SOFT_MIN " Min: "
  201. #define MSG_SOFT_MAX " Max: "
  202. #define MSG_SD_CANT_OPEN_SUBDIR "Cannot open subdir "
  203. #define MSG_SD_INIT_FAIL "SD init fail"
  204. #define MSG_SD_VOL_INIT_FAIL "volume.init failed"
  205. #define MSG_SD_OPENROOT_FAIL "openRoot failed"
  206. #define MSG_SD_CARD_OK "SD card ok"
  207. #define MSG_SD_WORKDIR_FAIL "workDir open failed"
  208. #define MSG_SD_OPEN_FILE_FAIL "open failed, File: "
  209. #define MSG_SD_FILE_OPENED "File opened: "
  210. #define MSG_SD_SIZE " Size: "
  211. #define MSG_SD_FILE_SELECTED "File selected"
  212. #define MSG_SD_WRITE_TO_FILE "Writing to file: "
  213. #define MSG_SD_PRINTING_BYTE "SD printing byte "
  214. #define MSG_SD_NOT_PRINTING "Not SD printing"
  215. #define MSG_SD_ERR_WRITE_TO_FILE "error writing to file"
  216. #define MSG_SD_ERR_READ "SD read error"
  217. #define MSG_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: "
  218. #define MSG_STEPPER_TOO_HIGH "Steprate too high: "
  219. #define MSG_ENDSTOPS_HIT "endstops hit: "
  220. #define MSG_ERR_COLD_EXTRUDE_STOP " cold extrusion prevented"
  221. #define MSG_ERR_LONG_EXTRUDE_STOP " too long extrusion prevented"
  222. #define MSG_ERR_HOTEND_TOO_COLD "Hotend too cold"
  223. #define MSG_ERR_Z_HOMING_SER "Home XY first"
  224. #define MSG_ERR_EEPROM_WRITE "Error writing to EEPROM!"
  225. #define MSG_FILAMENT_CHANGE_HEAT_LCD "Press button to heat nozzle"
  226. #define MSG_FILAMENT_CHANGE_INSERT_LCD "Insert filament and press button"
  227. #define MSG_FILAMENT_CHANGE_WAIT_LCD "Press button to resume"
  228. #define MSG_FILAMENT_CHANGE_HEAT_M108 "Send M108 to heat nozzle"
  229. #define MSG_FILAMENT_CHANGE_INSERT_M108 "Insert filament and send M108"
  230. #define MSG_FILAMENT_CHANGE_WAIT_M108 "Send M108 to resume"
  231. #define MSG_STOP_BLTOUCH "!! STOP called because of BLTouch error - restart with M999"
  232. #define MSG_STOP_UNHOMED "!! STOP called because of unhomed error - restart with M999"
  233. #define MSG_KILL_INACTIVE_TIME "!! KILL caused by too much inactive time - current command: "
  234. #define MSG_KILL_BUTTON "!! KILL caused by KILL button/pin"
  235. // temperature.cpp strings
  236. #define MSG_PID_AUTOTUNE_PREFIX "PID Autotune"
  237. #define MSG_PID_AUTOTUNE_START MSG_PID_AUTOTUNE_PREFIX " start"
  238. #define MSG_PID_AUTOTUNE_FAILED MSG_PID_AUTOTUNE_PREFIX " failed!"
  239. #define MSG_PID_BAD_EXTRUDER_NUM MSG_PID_AUTOTUNE_FAILED " Bad extruder number"
  240. #define MSG_PID_TEMP_TOO_HIGH MSG_PID_AUTOTUNE_FAILED " Temperature too high"
  241. #define MSG_PID_TIMEOUT MSG_PID_AUTOTUNE_FAILED " timeout"
  242. #define MSG_BIAS " bias: "
  243. #define MSG_D " d: "
  244. #define MSG_T_MIN " min: "
  245. #define MSG_T_MAX " max: "
  246. #define MSG_KU " Ku: "
  247. #define MSG_TU " Tu: "
  248. #define MSG_CLASSIC_PID " Classic PID "
  249. #define MSG_KP " Kp: "
  250. #define MSG_KI " Ki: "
  251. #define MSG_KD " Kd: "
  252. #define MSG_AT " @:"
  253. #define MSG_PID_AUTOTUNE_FINISHED MSG_PID_AUTOTUNE_PREFIX " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
  254. #define MSG_PID_DEBUG " PID_DEBUG "
  255. #define MSG_PID_DEBUG_INPUT ": Input "
  256. #define MSG_PID_DEBUG_OUTPUT " Output "
  257. #define MSG_PID_DEBUG_PTERM " pTerm "
  258. #define MSG_PID_DEBUG_ITERM " iTerm "
  259. #define MSG_PID_DEBUG_DTERM " dTerm "
  260. #define MSG_PID_DEBUG_CTERM " cTerm "
  261. #define MSG_INVALID_EXTRUDER_NUM " - Invalid extruder number !"
  262. #define MSG_HEATER_BED "bed"
  263. #define MSG_HEATER_CHAMBER "chamber"
  264. #define MSG_STOPPED_HEATER ", system stopped! Heater_ID: "
  265. #define MSG_REDUNDANCY "Heater switched off. Temperature difference between temp sensors is too high !"
  266. #define MSG_T_HEATING_FAILED "Heating failed"
  267. #define MSG_T_THERMAL_RUNAWAY "Thermal Runaway"
  268. #define MSG_T_MAXTEMP "MAXTEMP triggered"
  269. #define MSG_T_MINTEMP "MINTEMP triggered"
  270. #define MSG_ERR_PROBING_FAILED "Probing Failed"
  271. #define MSG_ZPROBE_OUT_SER "Z Probe Past Bed"
  272. // Debug
  273. #define MSG_DEBUG_PREFIX "DEBUG:"
  274. #define MSG_DEBUG_OFF "off"
  275. #define MSG_DEBUG_ECHO "ECHO"
  276. #define MSG_DEBUG_INFO "INFO"
  277. #define MSG_DEBUG_ERRORS "ERRORS"
  278. #define MSG_DEBUG_DRYRUN "DRYRUN"
  279. #define MSG_DEBUG_COMMUNICATION "COMMUNICATION"
  280. #define MSG_DEBUG_LEVELING "LEVELING"
  281. // LCD Menu Messages
  282. #define LANGUAGE_DATA_INCL_(M) STRINGIFY_(fontdata/langdata_##M.h)
  283. #define LANGUAGE_DATA_INCL(M) LANGUAGE_DATA_INCL_(M)
  284. #define LANGUAGE_INCL_(M) STRINGIFY_(../lcd/language/language_##M.h)
  285. #define LANGUAGE_INCL(M) LANGUAGE_INCL_(M)
  286. // Never translate these strings
  287. #define MSG_X "X"
  288. #define MSG_Y "Y"
  289. #define MSG_Z "Z"
  290. #define MSG_E "E"
  291. #if IS_KINEMATIC
  292. #define MSG_A "A"
  293. #define MSG_B "B"
  294. #define MSG_C "C"
  295. #else
  296. #define MSG_A "X"
  297. #define MSG_B "Y"
  298. #define MSG_C "Z"
  299. #endif
  300. #define MSG_X2 "X2"
  301. #define MSG_Y2 "Y2"
  302. #define MSG_Z2 "Z2"
  303. #define MSG_Z3 "Z3"
  304. #define MSG_Z4 "Z4"
  305. #define LCD_STR_A MSG_A
  306. #define LCD_STR_B MSG_B
  307. #define LCD_STR_C MSG_C
  308. #define LCD_STR_E MSG_E
  309. /**
  310. * Tool indexes for LCD display only
  311. *
  312. * By convention the LCD shows "E1" for the first extruder.
  313. * However, internal to Marlin E0/T0 is the first tool, and
  314. * most board silkscreens say "E0." Zero-based labels will
  315. * make these indexes consistent but this defies expectation.
  316. *
  317. */
  318. #if ENABLED(NUMBER_TOOLS_FROM_0)
  319. #define LCD_FIRST_TOOL '0'
  320. #define LCD_STR_N0 "0"
  321. #define LCD_STR_N1 "1"
  322. #define LCD_STR_N2 "2"
  323. #define LCD_STR_N3 "3"
  324. #define LCD_STR_N4 "4"
  325. #define LCD_STR_N5 "5"
  326. #define LCD_STR_N6 "6"
  327. #define LCD_STR_N7 "7"
  328. #else
  329. #define LCD_FIRST_TOOL '1'
  330. #define LCD_STR_N0 "1"
  331. #define LCD_STR_N1 "2"
  332. #define LCD_STR_N2 "3"
  333. #define LCD_STR_N3 "4"
  334. #define LCD_STR_N4 "5"
  335. #define LCD_STR_N5 "6"
  336. #define LCD_STR_N6 "7"
  337. #define LCD_STR_N7 "8"
  338. #endif
  339. #define LCD_STR_E0 "E" LCD_STR_N0
  340. #define LCD_STR_E1 "E" LCD_STR_N1
  341. #define LCD_STR_E2 "E" LCD_STR_N2
  342. #define LCD_STR_E3 "E" LCD_STR_N3
  343. #define LCD_STR_E4 "E" LCD_STR_N4
  344. #define LCD_STR_E5 "E" LCD_STR_N5
  345. #define LCD_STR_E6 "E" LCD_STR_N6
  346. #define LCD_STR_E7 "E" LCD_STR_N7
  347. #include "multi_language.h" // Allow multiple languages
  348. #include "../lcd/language/language_en.h"
  349. #include LANGUAGE_INCL(LCD_LANGUAGE)
  350. #include LANGUAGE_INCL(LCD_LANGUAGE_2)
  351. #include LANGUAGE_INCL(LCD_LANGUAGE_3)
  352. #include LANGUAGE_INCL(LCD_LANGUAGE_4)
  353. #include LANGUAGE_INCL(LCD_LANGUAGE_5)
  354. #if NONE(DISPLAY_CHARSET_ISO10646_1, \
  355. DISPLAY_CHARSET_ISO10646_5, \
  356. DISPLAY_CHARSET_ISO10646_KANA, \
  357. DISPLAY_CHARSET_ISO10646_GREEK, \
  358. DISPLAY_CHARSET_ISO10646_CN, \
  359. DISPLAY_CHARSET_ISO10646_TR, \
  360. DISPLAY_CHARSET_ISO10646_PL, \
  361. DISPLAY_CHARSET_ISO10646_CZ, \
  362. DISPLAY_CHARSET_ISO10646_SK)
  363. #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
  364. #endif