My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

language.h 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. #ifndef LANGUAGE_H
  23. #define LANGUAGE_H
  24. #include "Configuration.h"
  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" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h"
  36. // ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS
  37. // See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
  38. // Languages
  39. // an Aragonese
  40. // bg Bulgarian
  41. // ca Catalan
  42. // cn Chinese
  43. // cz Czech
  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. // kana Japanese
  56. // kana_utf8 Japanese (UTF8)
  57. // nl Dutch
  58. // pl Polish
  59. // pt Portuguese
  60. // pt-br Portuguese (Brazilian)
  61. // pt-br_utf8 Portuguese (Brazilian UTF8)
  62. // pt_utf8 Portuguese (UTF8)
  63. // ru Russian
  64. #if ENABLED(USE_AUTOMATIC_VERSIONING)
  65. #include "_Version.h"
  66. #else
  67. #include "Version.h"
  68. #endif
  69. #ifdef DEFAULT_SOURCE_CODE_URL
  70. #undef SOURCE_CODE_URL
  71. #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL
  72. #endif
  73. #ifdef CUSTOM_MACHINE_NAME
  74. #undef MACHINE_NAME
  75. #define MACHINE_NAME CUSTOM_MACHINE_NAME
  76. #else
  77. #ifdef DEFAULT_MACHINE_NAME
  78. #undef MACHINE_NAME
  79. #define MACHINE_NAME DEFAULT_MACHINE_NAME
  80. #endif
  81. #endif
  82. #ifndef MACHINE_UUID
  83. #define MACHINE_UUID DEFAULT_MACHINE_UUID
  84. #endif
  85. #ifdef DEFAULT_WEBSITE_URL
  86. #undef WEBSITE_URL
  87. #define WEBSITE_URL DEFAULT_WEBSITE_URL
  88. #endif
  89. // Common LCD messages
  90. /* nothing here yet */
  91. // Common serial messages
  92. #define MSG_MARLIN "Marlin"
  93. // Serial Console Messages (do not translate those!)
  94. #define MSG_Enqueueing "enqueueing \""
  95. #define MSG_POWERUP "PowerUp"
  96. #define MSG_EXTERNAL_RESET " External Reset"
  97. #define MSG_BROWNOUT_RESET " Brown out Reset"
  98. #define MSG_WATCHDOG_RESET " Watchdog Reset"
  99. #define MSG_SOFTWARE_RESET " Software Reset"
  100. #define MSG_AUTHOR " | Author: "
  101. #define MSG_CONFIGURATION_VER " Last Updated: "
  102. #define MSG_FREE_MEMORY " Free Memory: "
  103. #define MSG_PLANNER_BUFFER_BYTES " PlannerBufferBytes: "
  104. #define MSG_OK "ok"
  105. #define MSG_WAIT "wait"
  106. #define MSG_STATS "Stats: "
  107. #define MSG_FILE_SAVED "Done saving file."
  108. #define MSG_ERR_LINE_NO "Line Number is not Last Line Number+1, Last Line: "
  109. #define MSG_ERR_CHECKSUM_MISMATCH "checksum mismatch, Last Line: "
  110. #define MSG_ERR_NO_CHECKSUM "No Checksum with line number, Last Line: "
  111. #define MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM "No Line Number with checksum, Last Line: "
  112. #define MSG_FILE_PRINTED "Done printing file"
  113. #define MSG_BEGIN_FILE_LIST "Begin file list"
  114. #define MSG_END_FILE_LIST "End file list"
  115. #define MSG_INVALID_EXTRUDER "Invalid extruder"
  116. #define MSG_INVALID_SOLENOID "Invalid solenoid"
  117. #define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature"
  118. #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 EMERGENCY_PARSER_CAPABILITIES "\n"
  119. #define MSG_COUNT_X " Count X: "
  120. #define MSG_COUNT_A " Count A: "
  121. #define MSG_ERR_KILLED "Printer halted. kill() called!"
  122. #define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
  123. #define MSG_BUSY_PROCESSING "busy: processing"
  124. #define MSG_BUSY_PAUSED_FOR_USER "busy: paused for user"
  125. #define MSG_BUSY_PAUSED_FOR_INPUT "busy: paused for input"
  126. #define MSG_RESEND "Resend: "
  127. #define MSG_UNKNOWN_COMMAND "Unknown command: \""
  128. #define MSG_ACTIVE_EXTRUDER "Active Extruder: "
  129. #define MSG_X_MIN "x_min: "
  130. #define MSG_X_MAX "x_max: "
  131. #define MSG_Y_MIN "y_min: "
  132. #define MSG_Y_MAX "y_max: "
  133. #define MSG_Z_MIN "z_min: "
  134. #define MSG_Z_MAX "z_max: "
  135. #define MSG_Z2_MAX "z2_max: "
  136. #define MSG_Z_PROBE "z_probe: "
  137. #define MSG_ERR_MATERIAL_INDEX "M145 S<index> out of range (0-1)"
  138. #define MSG_ERR_M421_PARAMETERS "M421 requires XYZ or IJZ parameters"
  139. #define MSG_ERR_MESH_XY "Mesh XY or IJ cannot be resolved"
  140. #define MSG_ERR_M428_TOO_FAR "Too far from reference point"
  141. #define MSG_ERR_M303_DISABLED "PIDTEMP disabled"
  142. #define MSG_M119_REPORT "Reporting endstop status"
  143. #define MSG_ENDSTOP_HIT "TRIGGERED"
  144. #define MSG_ENDSTOP_OPEN "open"
  145. #define MSG_HOTEND_OFFSET "Hotend offsets:"
  146. #define MSG_SD_CANT_OPEN_SUBDIR "Cannot open subdir "
  147. #define MSG_SD_INIT_FAIL "SD init fail"
  148. #define MSG_SD_VOL_INIT_FAIL "volume.init failed"
  149. #define MSG_SD_OPENROOT_FAIL "openRoot failed"
  150. #define MSG_SD_CARD_OK "SD card ok"
  151. #define MSG_SD_WORKDIR_FAIL "workDir open failed"
  152. #define MSG_SD_OPEN_FILE_FAIL "open failed, File: "
  153. #define MSG_SD_FILE_OPENED "File opened: "
  154. #define MSG_SD_SIZE " Size: "
  155. #define MSG_SD_FILE_SELECTED "File selected"
  156. #define MSG_SD_WRITE_TO_FILE "Writing to file: "
  157. #define MSG_SD_PRINTING_BYTE "SD printing byte "
  158. #define MSG_SD_NOT_PRINTING "Not SD printing"
  159. #define MSG_SD_ERR_WRITE_TO_FILE "error writing to file"
  160. #define MSG_SD_ERR_READ "SD read error"
  161. #define MSG_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: "
  162. #define MSG_STEPPER_TOO_HIGH "Steprate too high: "
  163. #define MSG_ENDSTOPS_HIT "endstops hit: "
  164. #define MSG_ERR_COLD_EXTRUDE_STOP " cold extrusion prevented"
  165. #define MSG_ERR_LONG_EXTRUDE_STOP " too long extrusion prevented"
  166. #define MSG_TOO_COLD_FOR_M600 "M600 Hotend too cold to change filament"
  167. #define MSG_BABYSTEPPING_X "Babystepping X"
  168. #define MSG_BABYSTEPPING_Y "Babystepping Y"
  169. #define MSG_BABYSTEPPING_Z "Babystepping Z"
  170. #define MSG_SERIAL_ERROR_MENU_STRUCTURE "Error in menu structure"
  171. #define MSG_ERR_EEPROM_WRITE "Error writing to EEPROM!"
  172. // temperature.cpp strings
  173. #define MSG_PID_AUTOTUNE "PID Autotune"
  174. #define MSG_PID_AUTOTUNE_START MSG_PID_AUTOTUNE " start"
  175. #define MSG_PID_AUTOTUNE_FAILED MSG_PID_AUTOTUNE " failed!"
  176. #define MSG_PID_BAD_EXTRUDER_NUM MSG_PID_AUTOTUNE_FAILED " Bad extruder number"
  177. #define MSG_PID_TEMP_TOO_HIGH MSG_PID_AUTOTUNE_FAILED " Temperature too high"
  178. #define MSG_PID_TIMEOUT MSG_PID_AUTOTUNE_FAILED " timeout"
  179. #define MSG_BIAS " bias: "
  180. #define MSG_D " d: "
  181. #define MSG_T_MIN " min: "
  182. #define MSG_T_MAX " max: "
  183. #define MSG_KU " Ku: "
  184. #define MSG_TU " Tu: "
  185. #define MSG_CLASSIC_PID " Classic PID "
  186. #define MSG_KP " Kp: "
  187. #define MSG_KI " Ki: "
  188. #define MSG_KD " Kd: "
  189. #define MSG_B "B:"
  190. #define MSG_T "T:"
  191. #define MSG_AT " @:"
  192. #define MSG_PID_AUTOTUNE_FINISHED MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
  193. #define MSG_PID_DEBUG " PID_DEBUG "
  194. #define MSG_PID_DEBUG_INPUT ": Input "
  195. #define MSG_PID_DEBUG_OUTPUT " Output "
  196. #define MSG_PID_DEBUG_PTERM " pTerm "
  197. #define MSG_PID_DEBUG_ITERM " iTerm "
  198. #define MSG_PID_DEBUG_DTERM " dTerm "
  199. #define MSG_PID_DEBUG_CTERM " cTerm "
  200. #define MSG_INVALID_EXTRUDER_NUM " - Invalid extruder number !"
  201. #define MSG_HEATER_BED "bed"
  202. #define MSG_STOPPED_HEATER ", system stopped! Heater_ID: "
  203. #define MSG_REDUNDANCY "Heater switched off. Temperature difference between temp sensors is too high !"
  204. #define MSG_T_HEATING_FAILED "Heating failed"
  205. #define MSG_T_THERMAL_RUNAWAY "Thermal Runaway"
  206. #define MSG_T_MAXTEMP "MAXTEMP triggered"
  207. #define MSG_T_MINTEMP "MINTEMP triggered"
  208. // Debug
  209. #define MSG_DEBUG_PREFIX "DEBUG:"
  210. #define MSG_DEBUG_OFF "off"
  211. #define MSG_DEBUG_ECHO "ECHO"
  212. #define MSG_DEBUG_INFO "INFO"
  213. #define MSG_DEBUG_ERRORS "ERRORS"
  214. #define MSG_DEBUG_DRYRUN "DRYRUN"
  215. #define MSG_DEBUG_COMMUNICATION "COMMUNICATION"
  216. #define MSG_DEBUG_LEVELING "LEVELING"
  217. // LCD Menu Messages
  218. #define LANGUAGE_INCL_(M) STRINGIFY_(language_##M.h)
  219. #define LANGUAGE_INCL(M) LANGUAGE_INCL_(M)
  220. #define INCLUDE_LANGUAGE LANGUAGE_INCL(LCD_LANGUAGE)
  221. #include INCLUDE_LANGUAGE
  222. #include "language_en.h"
  223. #endif //__LANGUAGE_H