Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2018-02-15 19:30:33 +0300
committerYuSanka <yusanka@gmail.com>2018-02-15 19:30:33 +0300
commite0933786e35b044b1694e5c1c4d4458de978ecb2 (patch)
treeae944c2ed3ffb76af8c2086c0f9ccea1b9434f6c /xs/src/libslic3r/PrintConfig.cpp
parent39fae3777ccbb95503dcdcf6c532f1e85a50db1f (diff)
Marked string used at localization.
* Correct save changed color
Diffstat (limited to 'xs/src/libslic3r/PrintConfig.cpp')
-rw-r--r--xs/src/libslic3r/PrintConfig.cpp1279
1 files changed, 644 insertions, 635 deletions
diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp
index 44d21f85b..6c0ca9fd3 100644
--- a/xs/src/libslic3r/PrintConfig.cpp
+++ b/xs/src/libslic3r/PrintConfig.cpp
@@ -9,6 +9,10 @@
namespace Slic3r {
+//! macro used to mark string used at localization,
+//! return same string
+#define _L(s) s
+
PrintConfigDef::PrintConfigDef()
{
t_optiondef_map &Options = this->options;
@@ -17,34 +21,39 @@ PrintConfigDef::PrintConfigDef()
// Maximum extruder temperature, bumped to 1500 to support printing of glass.
const int max_temp = 1500;
+
+ //! On purpose of localization there is that changes at text of tooltip and sidetext:
+ //! - ° -> \u00B0
+ //! - ² -> \u00B2
+ //! - ³ -> \u00B3
def = this->add("avoid_crossing_perimeters", coBool);
- def->label = "Avoid crossing perimeters";
- def->tooltip = "Optimize travel moves in order to minimize the crossing of perimeters. "
+ def->label = _L("Avoid crossing perimeters");
+ def->tooltip = _L("Optimize travel moves in order to minimize the crossing of perimeters. "
"This is mostly useful with Bowden extruders which suffer from oozing. "
- "This feature slows down both the print and the G-code generation.";
+ "This feature slows down both the print and the G-code generation.");
def->cli = "avoid-crossing-perimeters!";
def->default_value = new ConfigOptionBool(false);
def = this->add("bed_shape", coPoints);
- def->label = "Bed shape";
+ def->label = _L("Bed shape");
def->default_value = new ConfigOptionPoints { Pointf(0,0), Pointf(200,0), Pointf(200,200), Pointf(0,200) };
def = this->add("bed_temperature", coInts);
- def->label = "Other layers";
- def->tooltip = "Bed temperature for layers after the first one. "
- "Set this to zero to disable bed temperature control commands in the output.";
+ def->label = _L("Other layers");
+ def->tooltip = _L("Bed temperature for layers after the first one. "
+ "Set this to zero to disable bed temperature control commands in the output.");
def->cli = "bed-temperature=i@";
- def->full_label = "Bed temperature";
+ def->full_label = _L("Bed temperature");
def->min = 0;
def->max = 300;
def->default_value = new ConfigOptionInts { 0 };
def = this->add("before_layer_gcode", coString);
- def->label = "Before layer change G-code";
- def->tooltip = "This custom code is inserted at every layer change, right before the Z move. "
+ def->label = _L("Before layer change G-code");
+ def->tooltip = _L("This custom code is inserted at every layer change, right before the Z move. "
"Note that you can use placeholder variables for all Slic3r settings as well "
- "as [layer_num] and [layer_z].";
+ "as [layer_num] and [layer_z].");
def->cli = "before-layer-gcode=s";
def->multiline = true;
def->full_width = true;
@@ -52,8 +61,8 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("");
def = this->add("between_objects_gcode", coString);
- def->label = "Between objects G-code";
- def->tooltip = "This code is inserted between objects when using sequential printing. By default extruder and bed temperature are reset using non-wait command; however if M104, M109, M140 or M190 are detected in this custom code, Slic3r will not add temperature commands. Note that you can use placeholder variables for all Slic3r settings, so you can put a \"M109 S[first_layer_temperature]\" command wherever you want.";
+ def->label = _L("Between objects G-code");
+ def->tooltip = _L("This code is inserted between objects when using sequential printing. By default extruder and bed temperature are reset using non-wait command; however if M104, M109, M140 or M190 are detected in this custom code, Slic3r will not add temperature commands. Note that you can use placeholder variables for all Slic3r settings, so you can put a \"M109 S[first_layer_temperature]\" command wherever you want.");
def->cli = "between-objects-gcode=s";
def->multiline = true;
def->full_width = true;
@@ -61,158 +70,158 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("");
def = this->add("bottom_solid_layers", coInt);
- def->label = "Bottom";
- def->category = "Layers and Perimeters";
- def->tooltip = "Number of solid layers to generate on bottom surfaces.";
+ def->label = _L("Bottom");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Number of solid layers to generate on bottom surfaces.");
def->cli = "bottom-solid-layers=i";
- def->full_label = "Bottom solid layers";
+ def->full_label = _L("Bottom solid layers");
def->min = 0;
def->default_value = new ConfigOptionInt(3);
def = this->add("bridge_acceleration", coFloat);
- def->label = "Bridge";
- def->tooltip = "This is the acceleration your printer will use for bridges. "
- "Set zero to disable acceleration control for bridges.";
- def->sidetext = "mm/s²";
+ def->label = _L("Bridge");
+ def->tooltip = _L("This is the acceleration your printer will use for bridges. "
+ "Set zero to disable acceleration control for bridges.");
+ def->sidetext = _L("mm/s\u00B2");
def->cli = "bridge-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("bridge_angle", coFloat);
- def->label = "Bridging angle";
- def->category = "Infill";
- def->tooltip = "Bridging angle override. If left to zero, the bridging angle will be calculated "
+ def->label = _L("Bridging angle");
+ def->category = _L("Infill");
+ def->tooltip = _L("Bridging angle override. If left to zero, the bridging angle will be calculated "
"automatically. Otherwise the provided angle will be used for all bridges. "
- "Use 180° for zero angle.";
- def->sidetext = "°";
+ "Use 180\u00B0 for zero angle.");
+ def->sidetext = _L("\u00B0");
def->cli = "bridge-angle=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0.);
def = this->add("bridge_fan_speed", coInts);
- def->label = "Bridges fan speed";
- def->tooltip = "This fan speed is enforced during all bridges and overhangs.";
- def->sidetext = "%";
+ def->label = _L("Bridges fan speed");
+ def->tooltip = _L("This fan speed is enforced during all bridges and overhangs.");
+ def->sidetext = _L("%");
def->cli = "bridge-fan-speed=i@";
def->min = 0;
def->max = 100;
def->default_value = new ConfigOptionInts { 100 };
def = this->add("bridge_flow_ratio", coFloat);
- def->label = "Bridge flow ratio";
- def->category = "Advanced";
- def->tooltip = "This factor affects the amount of plastic for bridging. "
+ def->label = _L("Bridge flow ratio");
+ def->category = _L("Advanced");
+ def->tooltip = _L("This factor affects the amount of plastic for bridging. "
"You can decrease it slightly to pull the extrudates and prevent sagging, "
"although default settings are usually good and you should experiment "
- "with cooling (use a fan) before tweaking this.";
+ "with cooling (use a fan) before tweaking this.");
def->cli = "bridge-flow-ratio=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(1);
def = this->add("bridge_speed", coFloat);
- def->label = "Bridges";
- def->category = "Speed";
- def->tooltip = "Speed for printing bridges.";
- def->sidetext = "mm/s";
+ def->label = _L("Bridges");
+ def->category = _L("Speed");
+ def->tooltip = _L("Speed for printing bridges.");
+ def->sidetext = _L("mm/s");
def->cli = "bridge-speed=f";
def->aliases.push_back("bridge_feed_rate");
def->min = 0;
def->default_value = new ConfigOptionFloat(60);
def = this->add("brim_width", coFloat);
- def->label = "Brim width";
- def->tooltip = "Horizontal width of the brim that will be printed around each object on the first layer.";
- def->sidetext = "mm";
+ def->label = _L("Brim width");
+ def->tooltip = _L("Horizontal width of the brim that will be printed around each object on the first layer.");
+ def->sidetext = _L("mm");
def->cli = "brim-width=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("clip_multipart_objects", coBool);
- def->label = "Clip multi-part objects";
- def->tooltip = "When printing multi-material objects, this settings will make slic3r "
+ def->label = _L("Clip multi-part objects");
+ def->tooltip = _L("When printing multi-material objects, this settings will make slic3r "
"to clip the overlapping object parts one by the other "
- "(2nd part will be clipped by the 1st, 3rd part will be clipped by the 1st and 2nd etc).";
+ "(2nd part will be clipped by the 1st, 3rd part will be clipped by the 1st and 2nd etc).");
def->cli = "clip-multipart-objects!";
def->default_value = new ConfigOptionBool(false);
def = this->add("compatible_printers", coStrings);
- def->label = "Compatible printers";
+ def->label = _L("Compatible printers");
def->default_value = new ConfigOptionStrings();
def = this->add("compatible_printers_condition", coString);
- def->label = "Compatible printers condition";
- def->tooltip = "A boolean expression using the configuration values of an active printer profile. "
+ def->label = _L("Compatible printers condition");
+ def->tooltip = _L("A boolean expression using the configuration values of an active printer profile. "
"If this expression evaluates to true, this profile is considered compatible "
- "with the active printer profile.";
+ "with the active printer profile.");
def->default_value = new ConfigOptionString();
def = this->add("complete_objects", coBool);
- def->label = "Complete individual objects";
- def->tooltip = "When printing multiple objects or copies, this feature will complete "
+ def->label = _L("Complete individual objects");
+ def->tooltip = _L("When printing multiple objects or copies, this feature will complete "
"each object before moving onto next one (and starting it from its bottom layer). "
"This feature is useful to avoid the risk of ruined prints. "
- "Slic3r should warn and prevent you from extruder collisions, but beware.";
+ "Slic3r should warn and prevent you from extruder collisions, but beware.");
def->cli = "complete-objects!";
def->default_value = new ConfigOptionBool(false);
def = this->add("cooling", coBools);
- def->label = "Enable auto cooling";
- def->tooltip = "This flag enables the automatic cooling logic that adjusts print speed "
- "and fan speed according to layer printing time.";
+ def->label = _L("Enable auto cooling");
+ def->tooltip = _L("This flag enables the automatic cooling logic that adjusts print speed "
+ "and fan speed according to layer printing time.");
def->cli = "cooling!";
def->default_value = new ConfigOptionBools { true };
def = this->add("default_acceleration", coFloat);
- def->label = "Default";
- def->tooltip = "This is the acceleration your printer will be reset to after "
+ def->label = _L("Default");
+ def->tooltip = _L("This is the acceleration your printer will be reset to after "
"the role-specific acceleration values are used (perimeter/infill). "
- "Set zero to prevent resetting acceleration at all.";
- def->sidetext = "mm/s²";
+ "Set zero to prevent resetting acceleration at all.");
+ def->sidetext = _L("mm/s\u00B2");
def->cli = "default-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("disable_fan_first_layers", coInts);
- def->label = "Disable fan for the first";
- def->tooltip = "You can set this to a positive value to disable fan at all "
- "during the first layers, so that it does not make adhesion worse.";
- def->sidetext = "layers";
+ def->label = _L("Disable fan for the first");
+ def->tooltip = _L("You can set this to a positive value to disable fan at all "
+ "during the first layers, so that it does not make adhesion worse.");
+ def->sidetext = _L("layers");
def->cli = "disable-fan-first-layers=i@";
def->min = 0;
def->max = 1000;
def->default_value = new ConfigOptionInts { 3 };
def = this->add("dont_support_bridges", coBool);
- def->label = "Don't support bridges";
- def->category = "Support material";
- def->tooltip = "Experimental option for preventing support material from being generated "
- "under bridged areas.";
+ def->label = _L("Don't support bridges");
+ def->category = _L("Support material");
+ def->tooltip = _L("Experimental option for preventing support material from being generated "
+ "under bridged areas.");
def->cli = "dont-support-bridges!";
def->default_value = new ConfigOptionBool(true);
def = this->add("duplicate_distance", coFloat);
- def->label = "Distance between copies";
- def->tooltip = "Distance used for the auto-arrange feature of the plater.";
- def->sidetext = "mm";
+ def->label = _L("Distance between copies");
+ def->tooltip = _L("Distance used for the auto-arrange feature of the plater.");
+ def->sidetext = _L("mm");
def->cli = "duplicate-distance=f";
def->aliases.push_back("multiply_distance");
def->min = 0;
def->default_value = new ConfigOptionFloat(6);
def = this->add("elefant_foot_compensation", coFloat);
- def->label = "Elefant foot compensation";
- def->category = "Advanced";
- def->tooltip = "The first layer will be shrunk in the XY plane by the configured value "
- "to compensate for the 1st layer squish aka an Elefant Foot effect.";
- def->sidetext = "mm";
+ def->label = _L("Elefant foot compensation");
+ def->category = _L("Advanced");
+ def->tooltip = _L("The first layer will be shrunk in the XY plane by the configured value "
+ "to compensate for the 1st layer squish aka an Elefant Foot effect.");
+ def->sidetext = _L("mm");
def->cli = "elefant-foot-compensation=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("end_gcode", coString);
- def->label = "End G-code";
- def->tooltip = "This end procedure is inserted at the end of the output file. "
- "Note that you can use placeholder variables for all Slic3r settings.";
+ def->label = _L("End G-code");
+ def->tooltip = _L("This end procedure is inserted at the end of the output file. "
+ "Note that you can use placeholder variables for all Slic3r settings.");
def->cli = "end-gcode=s";
def->multiline = true;
def->full_width = true;
@@ -220,10 +229,10 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("M104 S0 ; turn off temperature\nG28 X0 ; home X axis\nM84 ; disable motors\n");
def = this->add("end_filament_gcode", coStrings);
- def->label = "End G-code";
- def->tooltip = "This end procedure is inserted at the end of the output file, before the printer end gcode. "
+ def->label = _L("End G-code");
+ def->tooltip = _L("This end procedure is inserted at the end of the output file, before the printer end gcode. "
"Note that you can use placeholder variables for all Slic3r settings. "
- "If you have multiple extruders, the gcode is processed in extruder order.";
+ "If you have multiple extruders, the gcode is processed in extruder order.");
def->cli = "end-filament-gcode=s@";
def->multiline = true;
def->full_width = true;
@@ -231,18 +240,18 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionStrings { "; Filament-specific end gcode \n;END gcode for filament\n" };
def = this->add("ensure_vertical_shell_thickness", coBool);
- def->label = "Ensure vertical shell thickness";
- def->category = "Layers and Perimeters";
- def->tooltip = "Add solid infill near sloping surfaces to guarantee the vertical shell thickness "
- "(top+bottom solid layers).";
+ def->label = _L("Ensure vertical shell thickness");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Add solid infill near sloping surfaces to guarantee the vertical shell thickness "
+ "(top+bottom solid layers).");
def->cli = "ensure-vertical-shell-thickness!";
def->default_value = new ConfigOptionBool(false);
def = this->add("external_fill_pattern", coEnum);
- def->label = "Top/bottom fill pattern";
- def->category = "Infill";
- def->tooltip = "Fill pattern for top/bottom infill. This only affects the external visible layer, "
- "and not its adjacent solid shells.";
+ def->label = _L("Top/bottom fill pattern");
+ def->category = _L("Infill");
+ def->tooltip = _L("Fill pattern for top/bottom infill. This only affects the external visible layer, "
+ "and not its adjacent solid shells.");
def->cli = "external-fill-pattern|solid-fill-pattern=s";
def->enum_keys_map = &ConfigOptionEnum<InfillPattern>::get_enum_values();
def->enum_values.push_back("rectilinear");
@@ -260,50 +269,50 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionEnum<InfillPattern>(ipRectilinear);
def = this->add("external_perimeter_extrusion_width", coFloatOrPercent);
- def->label = "External perimeters";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for external perimeters. "
+ def->label = _L("External perimeters");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for external perimeters. "
"If left zero, default extrusion width will be used if set, otherwise 1.125 x nozzle diameter will be used. "
- "If expressed as percentage (for example 200%), it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If expressed as percentage (for example 200%), it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "external-perimeter-extrusion-width=s";
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("external_perimeter_speed", coFloatOrPercent);
- def->label = "External perimeters";
- def->category = "Speed";
- def->tooltip = "This separate setting will affect the speed of external perimeters (the visible ones). "
+ def->label = _L("External perimeters");
+ def->category = _L("Speed");
+ def->tooltip = _L("This separate setting will affect the speed of external perimeters (the visible ones). "
"If expressed as percentage (for example: 80%) it will be calculated "
- "on the perimeters speed setting above. Set to zero for auto.";
- def->sidetext = "mm/s or %";
+ "on the perimeters speed setting above. Set to zero for auto.");
+ def->sidetext = _L("mm/s or %");
def->cli = "external-perimeter-speed=s";
def->ratio_over = "perimeter_speed";
def->min = 0;
def->default_value = new ConfigOptionFloatOrPercent(50, true);
def = this->add("external_perimeters_first", coBool);
- def->label = "External perimeters first";
- def->category = "Layers and Perimeters";
- def->tooltip = "Print contour perimeters from the outermost one to the innermost one "
- "instead of the default inverse order.";
+ def->label = _L("External perimeters first");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Print contour perimeters from the outermost one to the innermost one "
+ "instead of the default inverse order.");
def->cli = "external-perimeters-first!";
def->default_value = new ConfigOptionBool(false);
def = this->add("extra_perimeters", coBool);
- def->label = "Extra perimeters if needed";
- def->category = "Layers and Perimeters";
- def->tooltip = "Add more perimeters when needed for avoiding gaps in sloping walls. "
+ def->label = _L("Extra perimeters if needed");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Add more perimeters when needed for avoiding gaps in sloping walls. "
"Slic3r keeps adding perimeters, until more than 70% of the loop immediately above "
- "is supported.";
+ "is supported.");
def->cli = "extra-perimeters!";
def->default_value = new ConfigOptionBool(true);
def = this->add("extruder", coInt);
def->gui_type = "i_enum_open";
- def->label = "Extruder";
- def->category = "Extruders";
- def->tooltip = "The extruder to use (unless more specific extruder settings are specified). "
- "This value overrides perimeter and infill extruders, but not the support extruders.";
+ def->label = _L("Extruder");
+ def->category = _L("Extruders");
+ def->tooltip = _L("The extruder to use (unless more specific extruder settings are specified). "
+ "This value overrides perimeter and infill extruders, but not the support extruders.");
def->cli = "extruder=i";
def->min = 0; // 0 = inherit defaults
def->enum_labels.push_back("default"); // override label for item 0
@@ -313,84 +322,84 @@ PrintConfigDef::PrintConfigDef()
def->enum_labels.push_back("4");
def = this->add("extruder_clearance_height", coFloat);
- def->label = "Height";
- def->tooltip = "Set this to the vertical distance between your nozzle tip and (usually) the X carriage rods. "
+ def->label = _L("Height");
+ def->tooltip = _L("Set this to the vertical distance between your nozzle tip and (usually) the X carriage rods. "
"In other words, this is the height of the clearance cylinder around your extruder, "
"and it represents the maximum depth the extruder can peek before colliding with "
- "other printed objects.";
- def->sidetext = "mm";
+ "other printed objects.");
+ def->sidetext = _L("mm");
def->cli = "extruder-clearance-height=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(20);
def = this->add("extruder_clearance_radius", coFloat);
- def->label = "Radius";
- def->tooltip = "Set this to the clearance radius around your extruder. "
+ def->label = _L("Radius");
+ def->tooltip = _L("Set this to the clearance radius around your extruder. "
"If the extruder is not centered, choose the largest value for safety. "
"This setting is used to check for collisions and to display the graphical preview "
- "in the plater.";
- def->sidetext = "mm";
+ "in the plater.");
+ def->sidetext = _L("mm");
def->cli = "extruder-clearance-radius=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(20);
def = this->add("extruder_colour", coStrings);
- def->label = "Extruder Color";
- def->tooltip = "This is only used in the Slic3r interface as a visual help.";
+ def->label = _L("Extruder Color");
+ def->tooltip = _L("This is only used in the Slic3r interface as a visual help.");
def->cli = "extruder-color=s@";
def->gui_type = "color";
// Empty string means no color assigned yet.
def->default_value = new ConfigOptionStrings { "" };
def = this->add("extruder_offset", coPoints);
- def->label = "Extruder offset";
- def->tooltip = "If your firmware doesn't handle the extruder displacement you need the G-code "
+ def->label = _L("Extruder offset");
+ def->tooltip = _L("If your firmware doesn't handle the extruder displacement you need the G-code "
"to take it into account. This option lets you specify the displacement of each extruder "
"with respect to the first one. It expects positive coordinates (they will be subtracted "
- "from the XY coordinate).";
- def->sidetext = "mm";
+ "from the XY coordinate).");
+ def->sidetext = _L("mm");
def->cli = "extruder-offset=s@";
def->default_value = new ConfigOptionPoints { Pointf(0,0) };
def = this->add("extrusion_axis", coString);
- def->label = "Extrusion axis";
- def->tooltip = "Use this option to set the axis letter associated to your printer's extruder "
- "(usually E but some printers use A).";
+ def->label = _L("Extrusion axis");
+ def->tooltip = _L("Use this option to set the axis letter associated to your printer's extruder "
+ "(usually E but some printers use A).");
def->cli = "extrusion-axis=s";
def->default_value = new ConfigOptionString("E");
def = this->add("extrusion_multiplier", coFloats);
- def->label = "Extrusion multiplier";
- def->tooltip = "This factor changes the amount of flow proportionally. You may need to tweak "
+ def->label = _L("Extrusion multiplier");
+ def->tooltip = _L("This factor changes the amount of flow proportionally. You may need to tweak "
"this setting to get nice surface finish and correct single wall widths. "
"Usual values are between 0.9 and 1.1. If you think you need to change this more, "
- "check filament diameter and your firmware E steps.";
+ "check filament diameter and your firmware E steps.");
def->cli = "extrusion-multiplier=f@";
def->default_value = new ConfigOptionFloats { 1. };
def = this->add("extrusion_width", coFloatOrPercent);
- def->label = "Default extrusion width";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to allow a manual extrusion width. "
+ def->label = _L("Default extrusion width");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to allow a manual extrusion width. "
"If left to zero, Slic3r derives extrusion widths from the nozzle diameter "
"(see the tooltips for perimeter extrusion width, infill extrusion width etc). "
- "If expressed as percentage (for example: 230%), it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for auto)";
+ "If expressed as percentage (for example: 230%), it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for auto)");
def->cli = "extrusion-width=s";
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("fan_always_on", coBools);
- def->label = "Keep fan always on";
- def->tooltip = "If this is enabled, fan will never be disabled and will be kept running at least "
- "at its minimum speed. Useful for PLA, harmful for ABS.";
+ def->label = _L("Keep fan always on");
+ def->tooltip = _L("If this is enabled, fan will never be disabled and will be kept running at least "
+ "at its minimum speed. Useful for PLA, harmful for ABS.");
def->cli = "fan-always-on!";
def->default_value = new ConfigOptionBools { false };
def = this->add("fan_below_layer_time", coInts);
- def->label = "Enable fan if layer print time is below";
- def->tooltip = "If layer print time is estimated below this number of seconds, fan will be enabled "
- "and its speed will be calculated by interpolating the minimum and maximum speeds.";
- def->sidetext = "approximate seconds";
+ def->label = _L("Enable fan if layer print time is below");
+ def->tooltip = _L("If layer print time is estimated below this number of seconds, fan will be enabled "
+ "and its speed will be calculated by interpolating the minimum and maximum speeds.");
+ def->sidetext = _L("approximate seconds");
def->cli = "fan-below-layer-time=i@";
def->width = 60;
def->min = 0;
@@ -398,15 +407,15 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionInts { 60 };
def = this->add("filament_colour", coStrings);
- def->label = "Color";
- def->tooltip = "This is only used in the Slic3r interface as a visual help.";
+ def->label = _L("Color");
+ def->tooltip = _L("This is only used in the Slic3r interface as a visual help.");
def->cli = "filament-color=s@";
def->gui_type = "color";
def->default_value = new ConfigOptionStrings { "#29b2b2" };
def = this->add("filament_notes", coStrings);
- def->label = "Filament notes";
- def->tooltip = "You can put your notes regarding the filament here.";
+ def->label = _L("Filament notes");
+ def->tooltip = _L("You can put your notes regarding the filament here.");
def->cli = "filament-notes=s@";
def->multiline = true;
def->full_width = true;
@@ -414,40 +423,40 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionStrings { "" };
def = this->add("filament_max_volumetric_speed", coFloats);
- def->label = "Max volumetric speed";
- def->tooltip = "Maximum volumetric speed allowed for this filament. Limits the maximum volumetric "
+ def->label = _L("Max volumetric speed");
+ def->tooltip = _L("Maximum volumetric speed allowed for this filament. Limits the maximum volumetric "
"speed of a print to the minimum of print and filament volumetric speed. "
- "Set to zero for no limit.";
- def->sidetext = "mm³/s";
+ "Set to zero for no limit.");
+ def->sidetext = _L("mm\u00B3/s");
def->cli = "filament-max-volumetric-speed=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("filament_diameter", coFloats);
- def->label = "Diameter";
- def->tooltip = "Enter your filament diameter here. Good precision is required, so use a caliper "
- "and do multiple measurements along the filament, then compute the average.";
- def->sidetext = "mm";
+ def->label = _L("Diameter");
+ def->tooltip = _L("Enter your filament diameter here. Good precision is required, so use a caliper "
+ "and do multiple measurements along the filament, then compute the average.");
+ def->sidetext = _L("mm");
def->cli = "filament-diameter=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 3. };
def = this->add("filament_density", coFloats);
- def->label = "Density";
- def->tooltip = "Enter your filament density here. This is only for statistical information. "
+ def->label = _L("Density");
+ def->tooltip = _L("Enter your filament density here. This is only for statistical information. "
"A decent way is to weigh a known length of filament and compute the ratio "
- "of the length to volume. Better is to calculate the volume directly through displacement.";
- def->sidetext = "g/cm^3";
+ "of the length to volume. Better is to calculate the volume directly through displacement.");
+ def->sidetext = _L("g/cm^3");
def->cli = "filament-density=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("filament_type", coStrings);
- def->label = "Filament type";
- def->tooltip = "If you want to process the output G-code through custom scripts, just list their "
+ def->label = _L("Filament type");
+ def->tooltip = _L("If you want to process the output G-code through custom scripts, just list their "
"absolute paths here. Separate multiple scripts with a semicolon. Scripts will be passed "
"the absolute path to the G-code file as the first argument, and they can access "
- "the Slic3r config settings by reading environment variables.";
+ "the Slic3r config settings by reading environment variables.");
def->cli = "filament_type=s@";
def->gui_type = "f_enum_open";
def->gui_flags = "show_value";
@@ -463,15 +472,15 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionStrings { "PLA" };
def = this->add("filament_soluble", coBools);
- def->label = "Soluble material";
- def->tooltip = "Soluble material is most likely used for a soluble support.";
+ def->label = _L("Soluble material");
+ def->tooltip = _L("Soluble material is most likely used for a soluble support.");
def->cli = "filament-soluble!";
def->default_value = new ConfigOptionBools { false };
def = this->add("filament_cost", coFloats);
- def->label = "Cost";
- def->tooltip = "Enter your filament cost per kg here. This is only for statistical information.";
- def->sidetext = "money/kg";
+ def->label = _L("Cost");
+ def->tooltip = _L("Enter your filament cost per kg here. This is only for statistical information.");
+ def->sidetext = _L("money/kg");
def->cli = "filament-cost=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 0. };
@@ -480,12 +489,12 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionStrings { "" };
def = this->add("fill_angle", coFloat);
- def->label = "Fill angle";
- def->category = "Infill";
- def->tooltip = "Default base angle for infill orientation. Cross-hatching will be applied to this. "
+ def->label = _L("Fill angle");
+ def->category = _L("Infill");
+ def->tooltip = _L("Default base angle for infill orientation. Cross-hatching will be applied to this. "
"Bridges will be infilled using the best direction Slic3r can detect, so this setting "
- "does not affect them.";
- def->sidetext = "°";
+ "does not affect them.");
+ def->sidetext = _L("\u00B0");
def->cli = "fill-angle=f";
def->min = 0;
def->max = 360;
@@ -494,10 +503,10 @@ PrintConfigDef::PrintConfigDef()
def = this->add("fill_density", coPercent);
def->gui_type = "f_enum_open";
def->gui_flags = "show_value";
- def->label = "Fill density";
- def->category = "Infill";
- def->tooltip = "Density of internal infill, expressed in the range 0% - 100%.";
- def->sidetext = "%";
+ def->label = _L("Fill density");
+ def->category = _L("Infill");
+ def->tooltip = _L("Density of internal infill, expressed in the range 0% - 100%.");
+ def->sidetext = _L("%");
def->cli = "fill-density=s";
def->min = 0;
def->max = 100;
@@ -532,9 +541,9 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionPercent(20);
def = this->add("fill_pattern", coEnum);
- def->label = "Fill pattern";
- def->category = "Infill";
- def->tooltip = "Fill pattern for general low-density infill.";
+ def->label = _L("Fill pattern");
+ def->category = _L("Infill");
+ def->tooltip = _L("Fill pattern for general low-density infill.");
def->cli = "fill-pattern=s";
def->enum_keys_map = &ConfigOptionEnum<InfillPattern>::get_enum_values();
def->enum_values.push_back("rectilinear");
@@ -564,89 +573,89 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionEnum<InfillPattern>(ipStars);
def = this->add("first_layer_acceleration", coFloat);
- def->label = "First layer";
- def->tooltip = "This is the acceleration your printer will use for first layer. Set zero "
- "to disable acceleration control for first layer.";
- def->sidetext = "mm/s²";
+ def->label = _L("First layer");
+ def->tooltip = _L("This is the acceleration your printer will use for first layer. Set zero "
+ "to disable acceleration control for first layer.");
+ def->sidetext = _L("mm/s\u00B2");
def->cli = "first-layer-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("first_layer_bed_temperature", coInts);
- def->label = "First layer";
- def->tooltip = "Heated build plate temperature for the first layer. Set this to zero to disable "
- "bed temperature control commands in the output.";
+ def->label = _L("First layer");
+ def->tooltip = _L("Heated build plate temperature for the first layer. Set this to zero to disable "
+ "bed temperature control commands in the output.");
def->cli = "first-layer-bed-temperature=i@";
def->max = 0;
def->max = 300;
def->default_value = new ConfigOptionInts { 0 };
def = this->add("first_layer_extrusion_width", coFloatOrPercent);
- def->label = "First layer";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for first layer. "
+ def->label = _L("First layer");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for first layer. "
"You can use this to force fatter extrudates for better adhesion. If expressed "
"as percentage (for example 120%) it will be computed over first layer height. "
- "If set to zero, it will use the default extrusion width.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If set to zero, it will use the default extrusion width.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "first-layer-extrusion-width=s";
def->ratio_over = "first_layer_height";
def->default_value = new ConfigOptionFloatOrPercent(200, true);
def = this->add("first_layer_height", coFloatOrPercent);
- def->label = "First layer height";
- def->category = "Layers and Perimeters";
- def->tooltip = "When printing with very low layer heights, you might still want to print a thicker "
+ def->label = _L("First layer height");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("When printing with very low layer heights, you might still want to print a thicker "
"bottom layer to improve adhesion and tolerance for non perfect build plates. "
"This can be expressed as an absolute value or as a percentage (for example: 150%) "
- "over the default layer height.";
- def->sidetext = "mm or %";
+ "over the default layer height.");
+ def->sidetext = _L("mm or %");
def->cli = "first-layer-height=s";
def->ratio_over = "layer_height";
def->default_value = new ConfigOptionFloatOrPercent(0.35, false);
def = this->add("first_layer_speed", coFloatOrPercent);
- def->label = "First layer speed";
- def->tooltip = "If expressed as absolute value in mm/s, this speed will be applied to all the print moves "
+ def->label = _L("First layer speed");
+ def->tooltip = _L("If expressed as absolute value in mm/s, this speed will be applied to all the print moves "
"of the first layer, regardless of their type. If expressed as a percentage "
- "(for example: 40%) it will scale the default speeds.";
- def->sidetext = "mm/s or %";
+ "(for example: 40%) it will scale the default speeds.");
+ def->sidetext = _L("mm/s or %");
def->cli = "first-layer-speed=s";
def->min = 0;
def->default_value = new ConfigOptionFloatOrPercent(30, false);
def = this->add("first_layer_temperature", coInts);
- def->label = "First layer";
- def->tooltip = "Extruder temperature for first layer. If you want to control temperature manually "
- "during print, set this to zero to disable temperature control commands in the output file.";
+ def->label = _L("First layer");
+ def->tooltip = _L("Extruder temperature for first layer. If you want to control temperature manually "
+ "during print, set this to zero to disable temperature control commands in the output file.");
def->cli = "first-layer-temperature=i@";
def->min = 0;
def->max = max_temp;
def->default_value = new ConfigOptionInts { 200 };
def = this->add("gap_fill_speed", coFloat);
- def->label = "Gap fill";
- def->category = "Speed";
- def->tooltip = "Speed for filling small gaps using short zigzag moves. Keep this reasonably low "
- "to avoid too much shaking and resonance issues. Set zero to disable gaps filling.";
- def->sidetext = "mm/s";
+ def->label = _L("Gap fill");
+ def->category = _L("Speed");
+ def->tooltip = _L("Speed for filling small gaps using short zigzag moves. Keep this reasonably low "
+ "to avoid too much shaking and resonance issues. Set zero to disable gaps filling.");
+ def->sidetext = _L("mm/s");
def->cli = "gap-fill-speed=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(20);
def = this->add("gcode_comments", coBool);
- def->label = "Verbose G-code";
- def->tooltip = "Enable this to get a commented G-code file, with each line explained by a descriptive text. "
+ def->label = _L("Verbose G-code");
+ def->tooltip = _L("Enable this to get a commented G-code file, with each line explained by a descriptive text. "
"If you print from SD card, the additional weight of the file could make your firmware "
- "slow down.";
+ "slow down.");
def->cli = "gcode-comments!";
def->default_value = new ConfigOptionBool(0);
def = this->add("gcode_flavor", coEnum);
- def->label = "G-code flavor";
- def->tooltip = "Some G/M-code commands, including temperature control and others, are not universal. "
+ def->label = _L("G-code flavor");
+ def->tooltip = _L("Some G/M-code commands, including temperature control and others, are not universal. "
"Set this option to your printer's firmware to get a compatible output. "
- "The \"No extrusion\" flavor prevents Slic3r from exporting any extrusion value at all.";
+ "The \"No extrusion\" flavor prevents Slic3r from exporting any extrusion value at all.");
def->cli = "gcode-flavor=s";
def->enum_keys_map = &ConfigOptionEnum<GCodeFlavor>::get_enum_values();
def->enum_values.push_back("reprap");
@@ -672,75 +681,75 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionEnum<GCodeFlavor>(gcfMarlin);
def = this->add("infill_acceleration", coFloat);
- def->label = "Infill";
- def->tooltip = "This is the acceleration your printer will use for infill. Set zero to disable "
- "acceleration control for infill.";
- def->sidetext = "mm/s²";
+ def->label = _L("Infill");
+ def->tooltip = _L("This is the acceleration your printer will use for infill. Set zero to disable "
+ "acceleration control for infill.");
+ def->sidetext = _L("mm/s\u00B2");
def->cli = "infill-acceleration=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("infill_every_layers", coInt);
- def->label = "Combine infill every";
- def->category = "Infill";
- def->tooltip = "This feature allows to combine infill and speed up your print by extruding thicker "
- "infill layers while preserving thin perimeters, thus accuracy.";
- def->sidetext = "layers";
+ def->label = _L("Combine infill every");
+ def->category = _L("Infill");
+ def->tooltip = _L("This feature allows to combine infill and speed up your print by extruding thicker "
+ "infill layers while preserving thin perimeters, thus accuracy.");
+ def->sidetext = _L("layers");
def->cli = "infill-every-layers=i";
- def->full_label = "Combine infill every n layers";
+ def->full_label = _L("Combine infill every n layers");
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("infill_extruder", coInt);
- def->label = "Infill extruder";
- def->category = "Extruders";
- def->tooltip = "The extruder to use when printing infill.";
+ def->label = _L("Infill extruder");
+ def->category = _L("Extruders");
+ def->tooltip = _L("The extruder to use when printing infill.");
def->cli = "infill-extruder=i";
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("infill_extrusion_width", coFloatOrPercent);
- def->label = "Infill";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for infill. "
+ def->label = _L("Infill");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for infill. "
"If left zero, default extrusion width will be used if set, otherwise 1.125 x nozzle diameter will be used. "
"You may want to use fatter extrudates to speed up the infill and make your parts stronger. "
- "If expressed as percentage (for example 90%) it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If expressed as percentage (for example 90%) it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "infill-extrusion-width=s";
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("infill_first", coBool);
- def->label = "Infill before perimeters";
- def->tooltip = "This option will switch the print order of perimeters and infill, making the latter first.";
+ def->label = _L("Infill before perimeters");
+ def->tooltip = _L("This option will switch the print order of perimeters and infill, making the latter first.");
def->cli = "infill-first!";
def->default_value = new ConfigOptionBool(false);
def = this->add("infill_only_where_needed", coBool);
- def->label = "Only infill where needed";
- def->category = "Infill";
- def->tooltip = "This option will limit infill to the areas actually needed for supporting ceilings "
+ def->label = _L("Only infill where needed");
+ def->category = _L("Infill");
+ def->tooltip = _L("This option will limit infill to the areas actually needed for supporting ceilings "
"(it will act as internal support material). If enabled, slows down the G-code generation "
- "due to the multiple checks involved.";
+ "due to the multiple checks involved.");
def->cli = "infill-only-where-needed!";
def->default_value = new ConfigOptionBool(false);
def = this->add("infill_overlap", coFloatOrPercent);
- def->label = "Infill/perimeters overlap";
- def->category = "Advanced";
- def->tooltip = "This setting applies an additional overlap between infill and perimeters for better bonding. "
+ def->label = _L("Infill/perimeters overlap");
+ def->category = _L("Advanced");
+ def->tooltip = _L("This setting applies an additional overlap between infill and perimeters for better bonding. "
"Theoretically this shouldn't be needed, but backlash might cause gaps. If expressed "
- "as percentage (example: 15%) it is calculated over perimeter extrusion width.";
- def->sidetext = "mm or %";
+ "as percentage (example: 15%) it is calculated over perimeter extrusion width.");
+ def->sidetext = _L("mm or %");
def->cli = "infill-overlap=s";
def->ratio_over = "perimeter_extrusion_width";
def->default_value = new ConfigOptionFloatOrPercent(25, true);
def = this->add("infill_speed", coFloat);
- def->label = "Infill";
- def->category = "Speed";
- def->tooltip = "Speed for printing the internal fill. Set to zero for auto.";
- def->sidetext = "mm/s";
+ def->label = _L("Infill");
+ def->category = _L("Speed");
+ def->tooltip = _L("Speed for printing the internal fill. Set to zero for auto.");
+ def->sidetext = _L("mm/s");
def->cli = "infill-speed=f";
def->aliases.push_back("print_feed_rate");
def->aliases.push_back("infill_feed_rate");
@@ -748,19 +757,19 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionFloat(80);
def = this->add("interface_shells", coBool);
- def->label = "Interface shells";
- def->tooltip = "Force the generation of solid shells between adjacent materials/volumes. "
+ def->label = _L("Interface shells");
+ def->tooltip = _L("Force the generation of solid shells between adjacent materials/volumes. "
"Useful for multi-extruder prints with translucent materials or manual soluble "
- "support material.";
+ "support material.");
def->cli = "interface-shells!";
- def->category = "Layers and Perimeters";
+ def->category = _L("Layers and Perimeters");
def->default_value = new ConfigOptionBool(false);
def = this->add("layer_gcode", coString);
- def->label = "After layer change G-code";
- def->tooltip = "This custom code is inserted at every layer change, right after the Z move "
+ def->label = _L("After layer change G-code");
+ def->tooltip = _L("This custom code is inserted at every layer change, right after the Z move "
"and before the extruder moves to the first layer point. Note that you can use "
- "placeholder variables for all Slic3r settings as well as [layer_num] and [layer_z].";
+ "placeholder variables for all Slic3r settings as well as [layer_num] and [layer_z].");
def->cli = "after-layer-gcode|layer-gcode=s";
def->multiline = true;
def->full_width = true;
@@ -768,116 +777,116 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("");
def = this->add("layer_height", coFloat);
- def->label = "Layer height";
- def->category = "Layers and Perimeters";
- def->tooltip = "This setting controls the height (and thus the total number) of the slices/layers. "
- "Thinner layers give better accuracy but take more time to print.";
- def->sidetext = "mm";
+ def->label = _L("Layer height");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("This setting controls the height (and thus the total number) of the slices/layers. "
+ "Thinner layers give better accuracy but take more time to print.");
+ def->sidetext = _L("mm");
def->cli = "layer-height=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0.3);
def = this->add("max_fan_speed", coInts);
- def->label = "Max";
- def->tooltip = "This setting represents the maximum speed of your fan.";
- def->sidetext = "%";
+ def->label = _L("Max");
+ def->tooltip = _L("This setting represents the maximum speed of your fan.");
+ def->sidetext = _L("%");
def->cli = "max-fan-speed=i@";
def->min = 0;
def->max = 100;
def->default_value = new ConfigOptionInts { 100 };
def = this->add("max_layer_height", coFloats);
- def->label = "Max";
- def->tooltip = "This is the highest printable layer height for this extruder, used to cap "
+ def->label = _L("Max");
+ def->tooltip = _L("This is the highest printable layer height for this extruder, used to cap "
"the variable layer height and support layer height. Maximum recommended layer height "
"is 75% of the extrusion width to achieve reasonable inter-layer adhesion. "
- "If set to 0, layer height is limited to 75% of the nozzle diameter.";
- def->sidetext = "mm";
+ "If set to 0, layer height is limited to 75% of the nozzle diameter.");
+ def->sidetext = _L("mm");
def->cli = "max-layer-height=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("max_print_speed", coFloat);
- def->label = "Max print speed";
- def->tooltip = "When setting other speed settings to 0 Slic3r will autocalculate the optimal speed "
+ def->label = _L("Max print speed");
+ def->tooltip = _L("When setting other speed settings to 0 Slic3r will autocalculate the optimal speed "
"in order to keep constant extruder pressure. This experimental setting is used "
- "to set the highest print speed you want to allow.";
- def->sidetext = "mm/s";
+ "to set the highest print speed you want to allow.");
+ def->sidetext = _L("mm/s");
def->cli = "max-print-speed=f";
def->min = 1;
def->default_value = new ConfigOptionFloat(80);
def = this->add("max_volumetric_speed", coFloat);
- def->label = "Max volumetric speed";
- def->tooltip = "This experimental setting is used to set the maximum volumetric speed your "
- "extruder supports.";
- def->sidetext = "mm³/s";
+ def->label = _L("Max volumetric speed");
+ def->tooltip = _L("This experimental setting is used to set the maximum volumetric speed your "
+ "extruder supports.");
+ def->sidetext = _L("mm\u00B3/s");
def->cli = "max-volumetric-speed=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("max_volumetric_extrusion_rate_slope_positive", coFloat);
- def->label = "Max volumetric slope positive";
- def->tooltip = "This experimental setting is used to limit the speed of change in extrusion rate. "
- "A value of 1.8 mm³/s² ensures, that a change from the extrusion rate "
- "of 1.8 mm³/s (0.45mm extrusion width, 0.2mm extrusion height, feedrate 20 mm/s) "
- "to 5.4 mm³/s (feedrate 60 mm/s) will take at least 2 seconds.";
- def->sidetext = "mm³/s²";
+ def->label = _L("Max volumetric slope positive");
+ def->tooltip = _L("This experimental setting is used to limit the speed of change in extrusion rate. "
+ "A value of 1.8 mm\u00B3/s\u00B2 ensures, that a change from the extrusion rate "
+ "of 1.8 mm\u00B3/s (0.45mm extrusion width, 0.2mm extrusion height, feedrate 20 mm/s) "
+ "to 5.4 mm\u00B3/s (feedrate 60 mm/s) will take at least 2 seconds.");
+ def->sidetext = _L("mm\u00B3/s\u00B2");
def->cli = "max-volumetric-extrusion-rate-slope-positive=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("max_volumetric_extrusion_rate_slope_negative", coFloat);
- def->label = "Max volumetric slope negative";
- def->tooltip = "This experimental setting is used to limit the speed of change in extrusion rate. "
- "A value of 1.8 mm³/s² ensures, that a change from the extrusion rate "
- "of 1.8 mm³/s (0.45mm extrusion width, 0.2mm extrusion height, feedrate 20 mm/s) "
- "to 5.4 mm³/s (feedrate 60 mm/s) will take at least 2 seconds.";
- def->sidetext = "mm³/s²";
+ def->label = _L("Max volumetric slope negative");
+ def->tooltip = _L("This experimental setting is used to limit the speed of change in extrusion rate. "
+ "A value of 1.8 mm\u00B3/s\u00B2 ensures, that a change from the extrusion rate "
+ "of 1.8 mm\u00B3/s (0.45mm extrusion width, 0.2mm extrusion height, feedrate 20 mm/s) "
+ "to 5.4 mm\u00B3/s (feedrate 60 mm/s) will take at least 2 seconds.");
+ def->sidetext = _L("mm\u00B3/s\u00B2");
def->cli = "max-volumetric-extrusion-rate-slope-negative=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("min_fan_speed", coInts);
- def->label = "Min";
- def->tooltip = "This setting represents the minimum PWM your fan needs to work.";
- def->sidetext = "%";
+ def->label = _L("Min");
+ def->tooltip = _L("This setting represents the minimum PWM your fan needs to work.");
+ def->sidetext = _L("%");
def->cli = "min-fan-speed=i@";
def->min = 0;
def->max = 100;
def->default_value = new ConfigOptionInts { 35 };
def = this->add("min_layer_height", coFloats);
- def->label = "Min";
- def->tooltip = "This is the lowest printable layer height for this extruder and limits "
- "the resolution for variable layer height. Typical values are between 0.05 mm and 0.1 mm.";
- def->sidetext = "mm";
+ def->label = _L("Min");
+ def->tooltip = _L("This is the lowest printable layer height for this extruder and limits "
+ "the resolution for variable layer height. Typical values are between 0.05 mm and 0.1 mm.");
+ def->sidetext = _L("mm");
def->cli = "min-layer-height=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 0.07 };
def = this->add("min_print_speed", coFloats);
- def->label = "Min print speed";
- def->tooltip = "Slic3r will not scale speed down below this speed.";
- def->sidetext = "mm/s";
+ def->label = _L("Min print speed");
+ def->tooltip = _L("Slic3r will not scale speed down below this speed.");
+ def->sidetext = _L("mm/s");
def->cli = "min-print-speed=f@";
def->min = 0;
def->default_value = new ConfigOptionFloats { 10. };
def = this->add("min_skirt_length", coFloat);
- def->label = "Minimum extrusion length";
- def->tooltip = "Generate no less than the number of skirt loops required to consume "
+ def->label = _L("Minimum extrusion length");
+ def->tooltip = _L("Generate no less than the number of skirt loops required to consume "
"the specified amount of filament on the bottom layer. For multi-extruder machines, "
- "this minimum applies to each extruder.";
- def->sidetext = "mm";
+ "this minimum applies to each extruder.");
+ def->sidetext = _L("mm");
def->cli = "min-skirt-length=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("notes", coString);
- def->label = "Configuration notes";
- def->tooltip = "You can put here your personal notes. This text will be added to the G-code "
- "header comments.";
+ def->label = _L("Configuration notes");
+ def->tooltip = _L("You can put here your personal notes. This text will be added to the G-code "
+ "header comments.");
def->cli = "notes=s";
def->multiline = true;
def->full_width = true;
@@ -885,118 +894,118 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("");
def = this->add("nozzle_diameter", coFloats);
- def->label = "Nozzle diameter";
- def->tooltip = "This is the diameter of your extruder nozzle (for example: 0.5, 0.35 etc.)";
- def->sidetext = "mm";
+ def->label = _L("Nozzle diameter");
+ def->tooltip = _L("This is the diameter of your extruder nozzle (for example: 0.5, 0.35 etc.)");
+ def->sidetext = _L("mm");
def->cli = "nozzle-diameter=f@";
def->default_value = new ConfigOptionFloats { 0.5 };
def = this->add("octoprint_apikey", coString);
- def->label = "API Key";
- def->tooltip = "Slic3r can upload G-code files to OctoPrint. This field should contain "
- "the API Key required for authentication.";
+ def->label = _L("API Key");
+ def->tooltip = _L("Slic3r can upload G-code files to OctoPrint. This field should contain "
+ "the API Key required for authentication.");
def->cli = "octoprint-apikey=s";
def->default_value = new ConfigOptionString("");
def = this->add("octoprint_host", coString);
- def->label = "Host or IP";
- def->tooltip = "Slic3r can upload G-code files to OctoPrint. This field should contain "
- "the hostname or IP address of the OctoPrint instance.";
+ def->label = _L("Host or IP");
+ def->tooltip = _L("Slic3r can upload G-code files to OctoPrint. This field should contain "
+ "the hostname or IP address of the OctoPrint instance.");
def->cli = "octoprint-host=s";
def->default_value = new ConfigOptionString("");
def = this->add("only_retract_when_crossing_perimeters", coBool);
- def->label = "Only retract when crossing perimeters";
- def->tooltip = "Disables retraction when the travel path does not exceed the upper layer's perimeters "
- "(and thus any ooze will be probably invisible).";
+ def->label = _L("Only retract when crossing perimeters");
+ def->tooltip = _L("Disables retraction when the travel path does not exceed the upper layer's perimeters "
+ "(and thus any ooze will be probably invisible).");
def->cli = "only-retract-when-crossing-perimeters!";
def->default_value = new ConfigOptionBool(true);
def = this->add("ooze_prevention", coBool);
- def->label = "Enable";
- def->tooltip = "This option will drop the temperature of the inactive extruders to prevent oozing. "
+ def->label = _L("Enable");
+ def->tooltip = _L("This option will drop the temperature of the inactive extruders to prevent oozing. "
"It will enable a tall skirt automatically and move extruders outside such "
- "skirt when changing temperatures.";
+ "skirt when changing temperatures.");
def->cli = "ooze-prevention!";
def->default_value = new ConfigOptionBool(false);
def = this->add("output_filename_format", coString);
- def->label = "Output filename format";
- def->tooltip = "You can use all configuration options as variables inside this template. "
+ def->label = _L("Output filename format");
+ def->tooltip = _L("You can use all configuration options as variables inside this template. "
"For example: [layer_height], [fill_density] etc. You can also use [timestamp], "
"[year], [month], [day], [hour], [minute], [second], [version], [input_filename], "
- "[input_filename_base].";
+ "[input_filename_base].");
def->cli = "output-filename-format=s";
def->full_width = true;
def->default_value = new ConfigOptionString("[input_filename_base].gcode");
def = this->add("overhangs", coBool);
- def->label = "Detect bridging perimeters";
- def->category = "Layers and Perimeters";
- def->tooltip = "Experimental option to adjust flow for overhangs (bridge flow will be used), "
- "to apply bridge speed to them and enable fan.";
+ def->label = _L("Detect bridging perimeters");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Experimental option to adjust flow for overhangs (bridge flow will be used), "
+ "to apply bridge speed to them and enable fan.");
def->cli = "overhangs!";
def->default_value = new ConfigOptionBool(true);
def = this->add("perimeter_acceleration", coFloat);
- def->label = "Perimeters";
- def->tooltip = "This is the acceleration your printer will use for perimeters. "
+ def->label = _L("Perimeters");
+ def->tooltip = _L("This is the acceleration your printer will use for perimeters. "
"A high value like 9000 usually gives good results if your hardware is up to the job. "
- "Set zero to disable acceleration control for perimeters.";
- def->sidetext = "mm/s²";
+ "Set zero to disable acceleration control for perimeters.");
+ def->sidetext = _L("mm/s\u00B2");
def->cli = "perimeter-acceleration=f";
def->default_value = new ConfigOptionFloat(0);
def = this->add("perimeter_extruder", coInt);
- def->label = "Perimeter extruder";
- def->category = "Extruders";
- def->tooltip = "The extruder to use when printing perimeters and brim. First extruder is 1.";
+ def->label = _L("Perimeter extruder");
+ def->category = _L("Extruders");
+ def->tooltip = _L("The extruder to use when printing perimeters and brim. First extruder is 1.");
def->cli = "perimeter-extruder=i";
def->aliases.push_back("perimeters_extruder");
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("perimeter_extrusion_width", coFloatOrPercent);
- def->label = "Perimeters";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for perimeters. "
+ def->label = _L("Perimeters");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for perimeters. "
"You may want to use thinner extrudates to get more accurate surfaces. "
"If left zero, default extrusion width will be used if set, otherwise 1.125 x nozzle diameter will be used. "
- "If expressed as percentage (for example 200%) it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If expressed as percentage (for example 200%) it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "perimeter-extrusion-width=s";
def->aliases.push_back("perimeters_extrusion_width");
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("perimeter_speed", coFloat);
- def->label = "Perimeters";
- def->category = "Speed";
- def->tooltip = "Speed for perimeters (contours, aka vertical shells). Set to zero for auto.";
- def->sidetext = "mm/s";
+ def->label = _L("Perimeters");
+ def->category = _L("Speed");
+ def->tooltip = _L("Speed for perimeters (contours, aka vertical shells). Set to zero for auto.");
+ def->sidetext = _L("mm/s");
def->cli = "perimeter-speed=f";
def->aliases.push_back("perimeter_feed_rate");
def->min = 0;
def->default_value = new ConfigOptionFloat(60);
def = this->add("perimeters", coInt);
- def->label = "Perimeters";
- def->category = "Layers and Perimeters";
- def->tooltip = "This option sets the number of perimeters to generate for each layer. "
+ def->label = _L("Perimeters");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("This option sets the number of perimeters to generate for each layer. "
"Note that Slic3r may increase this number automatically when it detects "
"sloping surfaces which benefit from a higher number of perimeters "
- "if the Extra Perimeters option is enabled.";
- def->sidetext = "(minimum)";
+ "if the Extra Perimeters option is enabled.");
+ def->sidetext = _L("(minimum)");
def->cli = "perimeters=i";
def->aliases.push_back("perimeter_offsets");
def->min = 0;
def->default_value = new ConfigOptionInt(3);
def = this->add("post_process", coStrings);
- def->label = "Post-processing scripts";
- def->tooltip = "If you want to process the output G-code through custom scripts, "
+ def->label = _L("Post-processing scripts");
+ def->tooltip = _L("If you want to process the output G-code through custom scripts, "
"just list their absolute paths here. Separate multiple scripts with a semicolon. "
"Scripts will be passed the absolute path to the G-code file as the first argument, "
- "and they can access the Slic3r config settings by reading environment variables.";
+ "and they can access the Slic3r config settings by reading environment variables.");
def->cli = "post-process=s@";
def->gui_flags = "serialized";
def->multiline = true;
@@ -1005,8 +1014,8 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionStrings{ "" };
def = this->add("printer_notes", coString);
- def->label = "Printer notes";
- def->tooltip = "You can put your notes regarding the printer here.";
+ def->label = _L("Printer notes");
+ def->tooltip = _L("You can put your notes regarding the printer here.");
def->cli = "printer-notes=s";
def->multiline = true;
def->full_width = true;
@@ -1020,131 +1029,131 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("");
def = this->add("raft_layers", coInt);
- def->label = "Raft layers";
- def->category = "Support material";
- def->tooltip = "The object will be raised by this number of layers, and support material "
- "will be generated under it.";
- def->sidetext = "layers";
+ def->label = _L("Raft layers");
+ def->category = _L("Support material");
+ def->tooltip = _L("The object will be raised by this number of layers, and support material "
+ "will be generated under it.");
+ def->sidetext = _L("layers");
def->cli = "raft-layers=i";
def->min = 0;
def->default_value = new ConfigOptionInt(0);
def = this->add("resolution", coFloat);
- def->label = "Resolution";
- def->tooltip = "Minimum detail resolution, used to simplify the input file for speeding up "
+ def->label = _L("Resolution");
+ def->tooltip = _L("Minimum detail resolution, used to simplify the input file for speeding up "
"the slicing job and reducing memory usage. High-resolution models often carry "
"more detail than printers can render. Set to zero to disable any simplification "
- "and use full resolution from input.";
- def->sidetext = "mm";
+ "and use full resolution from input.");
+ def->sidetext = _L("mm");
def->cli = "resolution=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("retract_before_travel", coFloats);
- def->label = "Minimum travel after retraction";
- def->tooltip = "Retraction is not triggered when travel moves are shorter than this length.";
- def->sidetext = "mm";
+ def->label = _L("Minimum travel after retraction");
+ def->tooltip = _L("Retraction is not triggered when travel moves are shorter than this length.");
+ def->sidetext = _L("mm");
def->cli = "retract-before-travel=f@";
def->default_value = new ConfigOptionFloats { 2. };
def = this->add("retract_before_wipe", coPercents);
- def->label = "Retract amount before wipe";
- def->tooltip = "With bowden extruders, it may be wise to do some amount of quick retract "
- "before doing the wipe movement.";
- def->sidetext = "%";
+ def->label = _L("Retract amount before wipe");
+ def->tooltip = _L("With bowden extruders, it may be wise to do some amount of quick retract "
+ "before doing the wipe movement.");
+ def->sidetext = _L("%");
def->cli = "retract-before-wipe=s@";
def->default_value = new ConfigOptionPercents { 0. };
def = this->add("retract_layer_change", coBools);
- def->label = "Retract on layer change";
- def->tooltip = "This flag enforces a retraction whenever a Z move is done.";
+ def->label = _L("Retract on layer change");
+ def->tooltip = _L("This flag enforces a retraction whenever a Z move is done.");
def->cli = "retract-layer-change!";
def->default_value = new ConfigOptionBools { false };
def = this->add("retract_length", coFloats);
- def->label = "Length";
- def->full_label = "Retraction Length";
- def->tooltip = "When retraction is triggered, filament is pulled back by the specified amount "
- "(the length is measured on raw filament, before it enters the extruder).";
- def->sidetext = "mm (zero to disable)";
+ def->label = _L("Length");
+ def->full_label = _L("Retraction Length");
+ def->tooltip = _L("When retraction is triggered, filament is pulled back by the specified amount "
+ "(the length is measured on raw filament, before it enters the extruder).");
+ def->sidetext = _L("mm (zero to disable)");
def->cli = "retract-length=f@";
def->default_value = new ConfigOptionFloats { 2. };
def = this->add("retract_length_toolchange", coFloats);
- def->label = "Length";
- def->full_label = "Retraction Length (Toolchange)";
- def->tooltip = "When retraction is triggered before changing tool, filament is pulled back "
+ def->label = _L("Length");
+ def->full_label = _L("Retraction Length (Toolchange)");
+ def->tooltip = _L("When retraction is triggered before changing tool, filament is pulled back "
"by the specified amount (the length is measured on raw filament, before it enters "
- "the extruder).";
- def->sidetext = "mm (zero to disable)";
+ "the extruder).");
+ def->sidetext = _L("mm (zero to disable)");
def->cli = "retract-length-toolchange=f@";
def->default_value = new ConfigOptionFloats { 10. };
def = this->add("retract_lift", coFloats);
- def->label = "Lift Z";
- def->tooltip = "If you set this to a positive value, Z is quickly raised every time a retraction "
+ def->label = _L("Lift Z");
+ def->tooltip = _L("If you set this to a positive value, Z is quickly raised every time a retraction "
"is triggered. When using multiple extruders, only the setting for the first extruder "
- "will be considered.";
- def->sidetext = "mm";
+ "will be considered.");
+ def->sidetext = _L("mm");
def->cli = "retract-lift=f@";
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("retract_lift_above", coFloats);
- def->label = "Above Z";
- def->full_label = "Only lift Z above";
- def->tooltip = "If you set this to a positive value, Z lift will only take place above the specified "
- "absolute Z. You can tune this setting for skipping lift on the first layers.";
- def->sidetext = "mm";
+ def->label = _L("Above Z");
+ def->full_label = _L("Only lift Z above");
+ def->tooltip = _L("If you set this to a positive value, Z lift will only take place above the specified "
+ "absolute Z. You can tune this setting for skipping lift on the first layers.");
+ def->sidetext = _L("mm");
def->cli = "retract-lift-above=f@";
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("retract_lift_below", coFloats);
- def->label = "Below Z";
- def->full_label = "Only lift Z below";
- def->tooltip = "If you set this to a positive value, Z lift will only take place below "
+ def->label = _L("Below Z");
+ def->full_label = _L("Only lift Z below");
+ def->tooltip = _L("If you set this to a positive value, Z lift will only take place below "
"the specified absolute Z. You can tune this setting for limiting lift "
- "to the first layers.";
- def->sidetext = "mm";
+ "to the first layers.");
+ def->sidetext = _L("mm");
def->cli = "retract-lift-below=f@";
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("retract_restart_extra", coFloats);
- def->label = "Extra length on restart";
- def->tooltip = "When the retraction is compensated after the travel move, the extruder will push "
- "this additional amount of filament. This setting is rarely needed.";
- def->sidetext = "mm";
+ def->label = _L("Extra length on restart");
+ def->tooltip = _L("When the retraction is compensated after the travel move, the extruder will push "
+ "this additional amount of filament. This setting is rarely needed.");
+ def->sidetext = _L("mm");
def->cli = "retract-restart-extra=f@";
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("retract_restart_extra_toolchange", coFloats);
- def->label = "Extra length on restart";
- def->tooltip = "When the retraction is compensated after changing tool, the extruder will push "
- "this additional amount of filament.";
- def->sidetext = "mm";
+ def->label = _L("Extra length on restart");
+ def->tooltip = _L("When the retraction is compensated after changing tool, the extruder will push "
+ "this additional amount of filament.");
+ def->sidetext = _L("mm");
def->cli = "retract-restart-extra-toolchange=f@";
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("retract_speed", coFloats);
- def->label = "Retraction Speed";
- def->full_label = "Retraction Speed";
- def->tooltip = "The speed for retractions (it only applies to the extruder motor).";
- def->sidetext = "mm/s";
+ def->label = _L("Retraction Speed");
+ def->full_label = _L("Retraction Speed");
+ def->tooltip = _L("The speed for retractions (it only applies to the extruder motor).");
+ def->sidetext = _L("mm/s");
def->cli = "retract-speed=f@";
def->default_value = new ConfigOptionFloats { 40. };
def = this->add("deretract_speed", coFloats);
- def->label = "Deretraction Speed";
- def->full_label = "Deretraction Speed";
- def->tooltip = "The speed for loading of a filament into extruder after retraction "
- "(it only applies to the extruder motor). If left to zero, the retraction speed is used.";
- def->sidetext = "mm/s";
+ def->label = _L("Deretraction Speed");
+ def->full_label = _L("Deretraction Speed");
+ def->tooltip = _L("The speed for loading of a filament into extruder after retraction "
+ "(it only applies to the extruder motor). If left to zero, the retraction speed is used.");
+ def->sidetext = _L("mm/s");
def->cli = "retract-speed=f@";
def->default_value = new ConfigOptionFloats { 0. };
def = this->add("seam_position", coEnum);
- def->label = "Seam position";
- def->category = "Layers and Perimeters";
- def->tooltip = "Position of perimeters starting points.";
+ def->label = _L("Seam position");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Position of perimeters starting points.");
def->cli = "seam-position=s";
def->enum_keys_map = &ConfigOptionEnum<SeamPosition>::get_enum_values();
def->enum_values.push_back("random");
@@ -1160,10 +1169,10 @@ PrintConfigDef::PrintConfigDef()
#if 0
def = this->add("seam_preferred_direction", coFloat);
// def->gui_type = "slider";
- def->label = "Direction";
- def->sidetext = "°";
- def->full_label = "Preferred direction of the seam";
- def->tooltip = "Seam preferred direction";
+ def->label = _L("Direction");
+ def->sidetext = _L("\u00B0");
+ def->full_label = _L("Preferred direction of the seam");
+ def->tooltip = _L("Seam preferred direction");
def->cli = "seam-preferred-direction=f";
def->min = 0;
def->max = 360;
@@ -1171,10 +1180,10 @@ PrintConfigDef::PrintConfigDef()
def = this->add("seam_preferred_direction_jitter", coFloat);
// def->gui_type = "slider";
- def->label = "Jitter";
- def->sidetext = "°";
- def->full_label = "Seam preferred direction jitter";
- def->tooltip = "Preferred direction of the seam - jitter";
+ def->label = _L("Jitter");
+ def->sidetext = _L("\u00B0");
+ def->full_label = _L("Seam preferred direction jitter");
+ def->tooltip = _L("Preferred direction of the seam - jitter");
def->cli = "seam-preferred-direction-jitter=f";
def->min = 0;
def->max = 360;
@@ -1184,17 +1193,17 @@ PrintConfigDef::PrintConfigDef()
def = this->add("serial_port", coString);
def->gui_type = "select_open";
def->label = "";
- def->full_label = "Serial port";
- def->tooltip = "USB/serial port for printer connection.";
+ def->full_label = _L("Serial port");
+ def->tooltip = _L("USB/serial port for printer connection.");
def->cli = "serial-port=s";
def->width = 200;
def->default_value = new ConfigOptionString("");
def = this->add("serial_speed", coInt);
def->gui_type = "i_enum_open";
- def->label = "Speed";
- def->full_label = "Serial port speed";
- def->tooltip = "Speed (baud) of USB/serial port for printer connection.";
+ def->label = _L("Speed");
+ def->full_label = _L("Serial port speed");
+ def->tooltip = _L("Speed (baud) of USB/serial port for printer connection.");
def->cli = "serial-speed=i";
def->min = 1;
def->max = 300000;
@@ -1203,37 +1212,37 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionInt(250000);
def = this->add("skirt_distance", coFloat);
- def->label = "Distance from object";
- def->tooltip = "Distance between skirt and object(s). Set this to zero to attach the skirt "
- "to the object(s) and get a brim for better adhesion.";
- def->sidetext = "mm";
+ def->label = _L("Distance from object");
+ def->tooltip = _L("Distance between skirt and object(s). Set this to zero to attach the skirt "
+ "to the object(s) and get a brim for better adhesion.");
+ def->sidetext = _L("mm");
def->cli = "skirt-distance=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(6);
def = this->add("skirt_height", coInt);
- def->label = "Skirt height";
- def->tooltip = "Height of skirt expressed in layers. Set this to a tall value to use skirt "
- "as a shield against drafts.";
- def->sidetext = "layers";
+ def->label = _L("Skirt height");
+ def->tooltip = _L("Height of skirt expressed in layers. Set this to a tall value to use skirt "
+ "as a shield against drafts.");
+ def->sidetext = _L("layers");
def->cli = "skirt-height=i";
def->default_value = new ConfigOptionInt(1);
def = this->add("skirts", coInt);
- def->label = "Loops (minimum)";
- def->full_label = "Skirt Loops";
- def->tooltip = "Number of loops for the skirt. If the Minimum Extrusion Length option is set, "
+ def->label = _L("Loops (minimum)");
+ def->full_label = _L("Skirt Loops");
+ def->tooltip = _L("Number of loops for the skirt. If the Minimum Extrusion Length option is set, "
"the number of loops might be greater than the one configured here. Set this to zero "
- "to disable skirt completely.";
+ "to disable skirt completely.");
def->cli = "skirts=i";
def->min = 0;
def->default_value = new ConfigOptionInt(1);
def = this->add("slowdown_below_layer_time", coInts);
- def->label = "Slow down if layer print time is below";
- def->tooltip = "If layer print time is estimated below this number of seconds, print moves "
- "speed will be scaled down to extend duration to this value.";
- def->sidetext = "approximate seconds";
+ def->label = _L("Slow down if layer print time is below");
+ def->tooltip = _L("If layer print time is estimated below this number of seconds, print moves "
+ "speed will be scaled down to extend duration to this value.");
+ def->sidetext = _L("approximate seconds");
def->cli = "slowdown-below-layer-time=i@";
def->width = 60;
def->min = 0;
@@ -1241,63 +1250,63 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionInts { 5 };
def = this->add("small_perimeter_speed", coFloatOrPercent);
- def->label = "Small perimeters";
- def->category = "Speed";
- def->tooltip = "This separate setting will affect the speed of perimeters having radius <= 6.5mm "
+ def->label = _L("Small perimeters");
+ def->category = _L("Speed");
+ def->tooltip = _L("This separate setting will affect the speed of perimeters having radius <= 6.5mm "
"(usually holes). If expressed as percentage (for example: 80%) it will be calculated "
- "on the perimeters speed setting above. Set to zero for auto.";
- def->sidetext = "mm/s or %";
+ "on the perimeters speed setting above. Set to zero for auto.");
+ def->sidetext = _L("mm/s or %");
def->cli = "small-perimeter-speed=s";
def->ratio_over = "perimeter_speed";
def->min = 0;
def->default_value = new ConfigOptionFloatOrPercent(15, false);
def = this->add("solid_infill_below_area", coFloat);
- def->label = "Solid infill threshold area";
- def->category = "Infill";
- def->tooltip = "Force solid infill for regions having a smaller area than the specified threshold.";
- def->sidetext = "mm²";
+ def->label = _L("Solid infill threshold area");
+ def->category = _L("Infill");
+ def->tooltip = _L("Force solid infill for regions having a smaller area than the specified threshold.");
+ def->sidetext = _L("mm\u00B2");
def->cli = "solid-infill-below-area=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(70);
def = this->add("solid_infill_extruder", coInt);
- def->label = "Solid infill extruder";
- def->category = "Extruders";
- def->tooltip = "The extruder to use when printing solid infill.";
+ def->label = _L("Solid infill extruder");
+ def->category = _L("Extruders");
+ def->tooltip = _L("The extruder to use when printing solid infill.");
def->cli = "solid-infill-extruder=i";
def->min = 1;
def->default_value = new ConfigOptionInt(1);
def = this->add("solid_infill_every_layers", coInt);
- def->label = "Solid infill every";
- def->category = "Infill";
- def->tooltip = "This feature allows to force a solid layer every given number of layers. "
+ def->label = _L("Solid infill every");
+ def->category = _L("Infill");
+ def->tooltip = _L("This feature allows to force a solid layer every given number of layers. "
"Zero to disable. You can set this to any value (for example 9999); "
"Slic3r will automatically choose the maximum possible number of layers "
- "to combine according to nozzle diameter and layer height.";
- def->sidetext = "layers";
+ "to combine according to nozzle diameter and layer height.");
+ def->sidetext = _L("layers");
def->cli = "solid-infill-every-layers=i";
def->min = 0;
def->default_value = new ConfigOptionInt(0);
def = this->add("solid_infill_extrusion_width", coFloatOrPercent);
- def->label = "Solid infill";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for infill for solid surfaces. "
+ def->label = _L("Solid infill");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for infill for solid surfaces. "
"If left zero, default extrusion width will be used if set, otherwise 1.125 x nozzle diameter will be used. "
- "If expressed as percentage (for example 90%) it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If expressed as percentage (for example 90%) it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "solid-infill-extrusion-width=s";
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("solid_infill_speed", coFloatOrPercent);
- def->label = "Solid infill";
- def->category = "Speed";
- def->tooltip = "Speed for printing solid regions (top/bottom/internal horizontal shells). "
+ def->label = _L("Solid infill");
+ def->category = _L("Speed");
+ def->tooltip = _L("Speed for printing solid regions (top/bottom/internal horizontal shells). "
"This can be expressed as a percentage (for example: 80%) over the default "
- "infill speed above. Set to zero for auto.";
- def->sidetext = "mm/s or %";
+ "infill speed above. Set to zero for auto.");
+ def->sidetext = _L("mm/s or %");
def->cli = "solid-infill-speed=s";
def->ratio_over = "infill_speed";
def->aliases.push_back("solid_infill_feed_rate");
@@ -1305,42 +1314,42 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionFloatOrPercent(20, false);
def = this->add("solid_layers", coInt);
- def->label = "Solid layers";
- def->tooltip = "Number of solid layers to generate on top and bottom surfaces.";
+ def->label = _L("Solid layers");
+ def->tooltip = _L("Number of solid layers to generate on top and bottom surfaces.");
def->cli = "solid-layers=i";
def->shortcut.push_back("top_solid_layers");
def->shortcut.push_back("bottom_solid_layers");
def->min = 0;
def = this->add("spiral_vase", coBool);
- def->label = "Spiral vase";
- def->tooltip = "This feature will raise Z gradually while printing a single-walled object "
+ def->label = _L("Spiral vase");
+ def->tooltip = _L("This feature will raise Z gradually while printing a single-walled object "
"in order to remove any visible seam. This option requires a single perimeter, "
"no infill, no top solid layers and no support material. You can still set "
"any number of bottom solid layers as well as skirt/brim loops. "
- "It won't work when printing more than an object.";
+ "It won't work when printing more than an object.");
def->cli = "spiral-vase!";
def->default_value = new ConfigOptionBool(false);
def = this->add("standby_temperature_delta", coInt);
- def->label = "Temperature variation";
- def->tooltip = "Temperature difference to be applied when an extruder is not active. "
- "Enables a full-height \"sacrificial\" skirt on which the nozzles are periodically wiped.";
- def->sidetext = "∆°C";
+ def->label = _L("Temperature variation");
+ def->tooltip = _L("Temperature difference to be applied when an extruder is not active. "
+ "Enables a full-height \"sacrificial\" skirt on which the nozzles are periodically wiped.");
+ def->sidetext = "∆°C";
def->cli = "standby-temperature-delta=i";
def->min = -max_temp;
def->max = max_temp;
def->default_value = new ConfigOptionInt(-5);
def = this->add("start_gcode", coString);
- def->label = "Start G-code";
- def->tooltip = "This start procedure is inserted at the beginning, after bed has reached "
+ def->label = _L("Start G-code");
+ def->tooltip = _L("This start procedure is inserted at the beginning, after bed has reached "
"the target temperature and extruder just started heating, and before extruder "
"has finished heating. If Slic3r detects M104 or M190 in your custom codes, "
"such commands will not be prepended automatically so you're free to customize "
"the order of heating commands and other custom actions. Note that you can use "
"placeholder variables for all Slic3r settings, so you can put "
- "a \"M109 S[first_layer_temperature]\" command wherever you want.";
+ "a \"M109 S[first_layer_temperature]\" command wherever you want.");
def->cli = "start-gcode=s";
def->multiline = true;
def->full_width = true;
@@ -1348,15 +1357,15 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("G28 ; home all axes\nG1 Z5 F5000 ; lift nozzle\n");
def = this->add("start_filament_gcode", coStrings);
- def->label = "Start G-code";
- def->tooltip = "This start procedure is inserted at the beginning, after any printer start gcode. "
+ def->label = _L("Start G-code");
+ def->tooltip = _L("This start procedure is inserted at the beginning, after any printer start gcode. "
"This is used to override settings for a specific filament. If Slic3r detects "
"M104, M109, M140 or M190 in your custom codes, such commands will "
"not be prepended automatically so you're free to customize the order "
"of heating commands and other custom actions. Note that you can use placeholder variables "
"for all Slic3r settings, so you can put a \"M109 S[first_layer_temperature]\" command "
"wherever you want. If you have multiple extruders, the gcode is processed "
- "in extruder order.";
+ "in extruder order.");
def->cli = "start-filament-gcode=s@";
def->multiline = true;
def->full_width = true;
@@ -1364,24 +1373,24 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionStrings { "; Filament gcode\n" };
def = this->add("single_extruder_multi_material", coBool);
- def->label = "Single Extruder Multi Material";
- def->tooltip = "The printer multiplexes filaments into a single hot end.";
+ def->label = _L("Single Extruder Multi Material");
+ def->tooltip = _L("The printer multiplexes filaments into a single hot end.");
def->cli = "single-extruder-multi-material!";
def->default_value = new ConfigOptionBool(false);
def = this->add("support_material", coBool);
- def->label = "Generate support material";
- def->category = "Support material";
- def->tooltip = "Enable support material generation.";
+ def->label = _L("Generate support material");
+ def->category = _L("Support material");
+ def->tooltip = _L("Enable support material generation.");
def->cli = "support-material!";
def->default_value = new ConfigOptionBool(false);
def = this->add("support_material_xy_spacing", coFloatOrPercent);
- def->label = "XY separation between an object and its support";
- def->category = "Support material";
- def->tooltip = "XY separation between an object and its support. If expressed as percentage "
- "(for example 50%), it will be calculated over external perimeter width.";
- def->sidetext = "mm or %";
+ def->label = _L("XY separation between an object and its support");
+ def->category = _L("Support material");
+ def->tooltip = _L("XY separation between an object and its support. If expressed as percentage "
+ "(for example 50%), it will be calculated over external perimeter width.");
+ def->sidetext = _L("mm or %");
def->cli = "support-material-xy-spacing=s";
def->ratio_over = "external_perimeter_extrusion_width";
def->min = 0;
@@ -1389,30 +1398,30 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionFloatOrPercent(50, true);
def = this->add("support_material_angle", coFloat);
- def->label = "Pattern angle";
- def->category = "Support material";
- def->tooltip = "Use this setting to rotate the support material pattern on the horizontal plane.";
- def->sidetext = "°";
+ def->label = _L("Pattern angle");
+ def->category = _L("Support material");
+ def->tooltip = _L("Use this setting to rotate the support material pattern on the horizontal plane.");
+ def->sidetext = _L("\u00B0");
def->cli = "support-material-angle=f";
def->min = 0;
def->max = 359;
def->default_value = new ConfigOptionFloat(0);
def = this->add("support_material_buildplate_only", coBool);
- def->label = "Support on build plate only";
- def->category = "Support material";
- def->tooltip = "Only create support if it lies on a build plate. Don't create support on a print.";
+ def->label = _L("Support on build plate only");
+ def->category = _L("Support material");
+ def->tooltip = _L("Only create support if it lies on a build plate. Don't create support on a print.");
def->cli = "support-material-buildplate-only!";
def->default_value = new ConfigOptionBool(false);
def = this->add("support_material_contact_distance", coFloat);
def->gui_type = "f_enum_open";
- def->label = "Contact Z distance";
- def->category = "Support material";
- def->tooltip = "The vertical distance between object and support material interface. "
+ def->label = _L("Contact Z distance");
+ def->category = _L("Support material");
+ def->tooltip = _L("The vertical distance between object and support material interface. "
"Setting this to 0 will also prevent Slic3r from using bridge flow and speed "
- "for the first object layer.";
- def->sidetext = "mm";
+ "for the first object layer.");
+ def->sidetext = _L("mm");
def->cli = "support-material-contact-distance=f";
def->min = 0;
def->enum_values.push_back("0");
@@ -1422,86 +1431,86 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionFloat(0.2);
def = this->add("support_material_enforce_layers", coInt);
- def->label = "Enforce support for the first";
- def->category = "Support material";
- def->tooltip = "Generate support material for the specified number of layers counting from bottom, "
+ def->label = _L("Enforce support for the first");
+ def->category = _L("Support material");
+ def->tooltip = _L("Generate support material for the specified number of layers counting from bottom, "
"regardless of whether normal support material is enabled or not and regardless "
"of any angle threshold. This is useful for getting more adhesion of objects "
- "having a very thin or poor footprint on the build plate.";
- def->sidetext = "layers";
+ "having a very thin or poor footprint on the build plate.");
+ def->sidetext = _L("layers");
def->cli = "support-material-enforce-layers=f";
- def->full_label = "Enforce support for the first n layers";
+ def->full_label = _L("Enforce support for the first n layers");
def->min = 0;
def->default_value = new ConfigOptionInt(0);
def = this->add("support_material_extruder", coInt);
- def->label = "Support material/raft/skirt extruder";
- def->category = "Extruders";
- def->tooltip = "The extruder to use when printing support material, raft and skirt "
- "(1+, 0 to use the current extruder to minimize tool changes).";
+ def->label = _L("Support material/raft/skirt extruder");
+ def->category = _L("Extruders");
+ def->tooltip = _L("The extruder to use when printing support material, raft and skirt "
+ "(1+, 0 to use the current extruder to minimize tool changes).");
def->cli = "support-material-extruder=i";
def->min = 0;
def->default_value = new ConfigOptionInt(1);
def = this->add("support_material_extrusion_width", coFloatOrPercent);
- def->label = "Support material";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for support material. "
+ def->label = _L("Support material");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for support material. "
"If left zero, default extrusion width will be used if set, otherwise nozzle diameter will be used. "
- "If expressed as percentage (for example 90%) it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If expressed as percentage (for example 90%) it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "support-material-extrusion-width=s";
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("support_material_interface_contact_loops", coBool);
- def->label = "Interface loops";
- def->category = "Support material";
- def->tooltip = "Cover the top contact layer of the supports with loops. Disabled by default.";
+ def->label = _L("Interface loops");
+ def->category = _L("Support material");
+ def->tooltip = _L("Cover the top contact layer of the supports with loops. Disabled by default.");
def->cli = "support-material-interface-contact-loops!";
def->default_value = new ConfigOptionBool(false);
def = this->add("support_material_interface_extruder", coInt);
- def->label = "Support material/raft interface extruder";
- def->category = "Extruders";
- def->tooltip = "The extruder to use when printing support material interface "
- "(1+, 0 to use the current extruder to minimize tool changes). This affects raft too.";
+ def->label = _L("Support material/raft interface extruder");
+ def->category = _L("Extruders");
+ def->tooltip = _L("The extruder to use when printing support material interface "
+ "(1+, 0 to use the current extruder to minimize tool changes). This affects raft too.");
def->cli = "support-material-interface-extruder=i";
def->min = 0;
def->default_value = new ConfigOptionInt(1);
def = this->add("support_material_interface_layers", coInt);
- def->label = "Interface layers";
- def->category = "Support material";
- def->tooltip = "Number of interface layers to insert between the object(s) and support material.";
- def->sidetext = "layers";
+ def->label = _L("Interface layers");
+ def->category = _L("Support material");
+ def->tooltip = _L("Number of interface layers to insert between the object(s) and support material.");
+ def->sidetext = _L("layers");
def->cli = "support-material-interface-layers=i";
def->min = 0;
def->default_value = new ConfigOptionInt(3);
def = this->add("support_material_interface_spacing", coFloat);
- def->label = "Interface pattern spacing";
- def->category = "Support material";
- def->tooltip = "Spacing between interface lines. Set zero to get a solid interface.";
- def->sidetext = "mm";
+ def->label = _L("Interface pattern spacing");
+ def->category = _L("Support material");
+ def->tooltip = _L("Spacing between interface lines. Set zero to get a solid interface.");
+ def->sidetext = _L("mm");
def->cli = "support-material-interface-spacing=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(0);
def = this->add("support_material_interface_speed", coFloatOrPercent);
- def->label = "Support material interface";
- def->category = "Support material";
- def->tooltip = "Speed for printing support material interface layers. If expressed as percentage "
- "(for example 50%) it will be calculated over support material speed.";
- def->sidetext = "mm/s or %";
+ def->label = _L("Support material interface");
+ def->category = _L("Support material");
+ def->tooltip = _L("Speed for printing support material interface layers. If expressed as percentage "
+ "(for example 50%) it will be calculated over support material speed.");
+ def->sidetext = _L("mm/s or %");
def->cli = "support-material-interface-speed=s";
def->ratio_over = "support_material_speed";
def->min = 0;
def->default_value = new ConfigOptionFloatOrPercent(100, true);
def = this->add("support_material_pattern", coEnum);
- def->label = "Pattern";
- def->category = "Support material";
- def->tooltip = "Pattern used to generate support material.";
+ def->label = _L("Pattern");
+ def->category = _L("Support material");
+ def->tooltip = _L("Pattern used to generate support material.");
def->cli = "support-material-pattern=s";
def->enum_keys_map = &ConfigOptionEnum<SupportMaterialPattern>::get_enum_values();
def->enum_values.push_back("rectilinear");
@@ -1515,75 +1524,75 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionEnum<SupportMaterialPattern>(smpPillars);
def = this->add("support_material_spacing", coFloat);
- def->label = "Pattern spacing";
- def->category = "Support material";
- def->tooltip = "Spacing between support material lines.";
- def->sidetext = "mm";
+ def->label = _L("Pattern spacing");
+ def->category = _L("Support material");
+ def->tooltip = _L("Spacing between support material lines.");
+ def->sidetext = _L("mm");
def->cli = "support-material-spacing=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(2.5);
def = this->add("support_material_speed", coFloat);
- def->label = "Support material";
- def->category = "Support material";
- def->tooltip = "Speed for printing support material.";
- def->sidetext = "mm/s";
+ def->label = _L("Support material");
+ def->category = _L("Support material");
+ def->tooltip = _L("Speed for printing support material.");
+ def->sidetext = _L("mm/s");
def->cli = "support-material-speed=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(60);
def = this->add("support_material_synchronize_layers", coBool);
- def->label = "Synchronize with object layers";
- def->category = "Support material";
- def->tooltip = "Synchronize support layers with the object print layers. This is useful "
- "with multi-material printers, where the extruder switch is expensive.";
+ def->label = _L("Synchronize with object layers");
+ def->category = _L("Support material");
+ def->tooltip = _L("Synchronize support layers with the object print layers. This is useful "
+ "with multi-material printers, where the extruder switch is expensive.");
def->cli = "support-material-synchronize-layers!";
def->default_value = new ConfigOptionBool(false);
def = this->add("support_material_threshold", coInt);
- def->label = "Overhang threshold";
- def->category = "Support material";
- def->tooltip = "Support material will not be generated for overhangs whose slope angle "
- "(90° = vertical) is above the given threshold. In other words, this value "
+ def->label = _L("Overhang threshold");
+ def->category = _L("Support material");
+ def->tooltip = _L("Support material will not be generated for overhangs whose slope angle "
+ "(90\u00B0 = vertical) is above the given threshold. In other words, this value "
"represent the most horizontal slope (measured from the horizontal plane) "
"that you can print without support material. Set to zero for automatic detection "
- "(recommended).";
- def->sidetext = "°";
+ "(recommended).");
+ def->sidetext = _L("\u00B0");
def->cli = "support-material-threshold=i";
def->min = 0;
def->max = 90;
def->default_value = new ConfigOptionInt(0);
def = this->add("support_material_with_sheath", coBool);
- def->label = "With sheath around the support";
- def->category = "Support material";
- def->tooltip = "Add a sheath (a single perimeter line) around the base support. This makes "
- "the support more reliable, but also more difficult to remove.";
+ def->label = _L("With sheath around the support");
+ def->category = _L("Support material");
+ def->tooltip = _L("Add a sheath (a single perimeter line) around the base support. This makes "
+ "the support more reliable, but also more difficult to remove.");
def->cli = "support-material-with-sheath!";
def->default_value = new ConfigOptionBool(true);
def = this->add("temperature", coInts);
- def->label = "Other layers";
- def->tooltip = "Extruder temperature for layers after the first one. Set this to zero to disable "
- "temperature control commands in the output.";
+ def->label = _L("Other layers");
+ def->tooltip = _L("Extruder temperature for layers after the first one. Set this to zero to disable "
+ "temperature control commands in the output.");
def->cli = "temperature=i@";
- def->full_label = "Temperature";
+ def->full_label = _L("Temperature");
def->max = 0;
def->max = max_temp;
def->default_value = new ConfigOptionInts { 200 };
def = this->add("thin_walls", coBool);
- def->label = "Detect thin walls";
- def->category = "Layers and Perimeters";
- def->tooltip = "Detect single-width walls (parts where two extrusions don't fit and we need "
- "to collapse them into a single trace).";
+ def->label = _L("Detect thin walls");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Detect single-width walls (parts where two extrusions don't fit and we need "
+ "to collapse them into a single trace).");
def->cli = "thin-walls!";
def->default_value = new ConfigOptionBool(true);
def = this->add("threads", coInt);
- def->label = "Threads";
- def->tooltip = "Threads are used to parallelize long-running tasks. Optimal threads number "
- "is slightly above the number of available cores/processors.";
+ def->label = _L("Threads");
+ def->tooltip = _L("Threads are used to parallelize long-running tasks. Optimal threads number "
+ "is slightly above the number of available cores/processors.");
def->cli = "threads|j=i";
def->readonly = true;
def->min = 1;
@@ -1593,10 +1602,10 @@ PrintConfigDef::PrintConfigDef()
}
def = this->add("toolchange_gcode", coString);
- def->label = "Tool change G-code";
- def->tooltip = "This custom code is inserted right before every extruder change. "
+ def->label = _L("Tool change G-code");
+ def->tooltip = _L("This custom code is inserted right before every extruder change. "
"Note that you can use placeholder variables for all Slic3r settings as well "
- "as [previous_extruder] and [next_extruder].";
+ "as [previous_extruder] and [next_extruder].");
def->cli = "toolchange-gcode=s";
def->multiline = true;
def->full_width = true;
@@ -1604,141 +1613,141 @@ PrintConfigDef::PrintConfigDef()
def->default_value = new ConfigOptionString("");
def = this->add("top_infill_extrusion_width", coFloatOrPercent);
- def->label = "Top solid infill";
- def->category = "Extrusion Width";
- def->tooltip = "Set this to a non-zero value to set a manual extrusion width for infill for top surfaces. "
+ def->label = _L("Top solid infill");
+ def->category = _L("Extrusion Width");
+ def->tooltip = _L("Set this to a non-zero value to set a manual extrusion width for infill for top surfaces. "
"You may want to use thinner extrudates to fill all narrow regions and get a smoother finish. "
"If left zero, default extrusion width will be used if set, otherwise nozzle diameter will be used. "
- "If expressed as percentage (for example 90%) it will be computed over layer height.";
- def->sidetext = "mm or % (leave 0 for default)";
+ "If expressed as percentage (for example 90%) it will be computed over layer height.");
+ def->sidetext = _L("mm or % (leave 0 for default)");
def->cli = "top-infill-extrusion-width=s";
def->default_value = new ConfigOptionFloatOrPercent(0, false);
def = this->add("top_solid_infill_speed", coFloatOrPercent);
- def->label = "Top solid infill";
- def->category = "Speed";
- def->tooltip = "Speed for printing top solid layers (it only applies to the uppermost "
+ def->label = _L("Top solid infill");
+ def->category = _L("Speed");
+ def->tooltip = _L("Speed for printing top solid layers (it only applies to the uppermost "
"external layers and not to their internal solid layers). You may want "
"to slow down this to get a nicer surface finish. This can be expressed "
"as a percentage (for example: 80%) over the solid infill speed above. "
- "Set to zero for auto.";
- def->sidetext = "mm/s or %";
+ "Set to zero for auto.");
+ def->sidetext = _L("mm/s or %");
def->cli = "top-solid-infill-speed=s";
def->ratio_over = "solid_infill_speed";
def->min = 0;
def->default_value = new ConfigOptionFloatOrPercent(15, false);
def = this->add("top_solid_layers", coInt);
- def->label = "Top";
- def->category = "Layers and Perimeters";
- def->tooltip = "Number of solid layers to generate on top surfaces.";
+ def->label = _L("Top");
+ def->category = _L("Layers and Perimeters");
+ def->tooltip = _L("Number of solid layers to generate on top surfaces.");
def->cli = "top-solid-layers=i";
- def->full_label = "Top solid layers";
+ def->full_label = _L("Top solid layers");
def->min = 0;
def->default_value = new ConfigOptionInt(3);
def = this->add("travel_speed", coFloat);
- def->label = "Travel";
- def->tooltip = "Speed for travel moves (jumps between distant extrusion points).";
- def->sidetext = "mm/s";
+ def->label = _L("Travel");
+ def->tooltip = _L("Speed for travel moves (jumps between distant extrusion points).");
+ def->sidetext = _L("mm/s");
def->cli = "travel-speed=f";
def->aliases.push_back("travel_feed_rate");
def->min = 1;
def->default_value = new ConfigOptionFloat(130);
def = this->add("use_firmware_retraction", coBool);
- def->label = "Use firmware retraction";
- def->tooltip = "This experimental setting uses G10 and G11 commands to have the firmware "
- "handle the retraction. This is only supported in recent Marlin.";
+ def->label = _L("Use firmware retraction");
+ def->tooltip = _L("This experimental setting uses G10 and G11 commands to have the firmware "
+ "handle the retraction. This is only supported in recent Marlin.");
def->cli = "use-firmware-retraction!";
def->default_value = new ConfigOptionBool(false);
def = this->add("use_relative_e_distances", coBool);
- def->label = "Use relative E distances";
- def->tooltip = "If your firmware requires relative E values, check this, "
- "otherwise leave it unchecked. Most firmwares use absolute values.";
+ def->label = _L("Use relative E distances");
+ def->tooltip = _L("If your firmware requires relative E values, check this, "
+ "otherwise leave it unchecked. Most firmwares use absolute values.");
def->cli = "use-relative-e-distances!";
def->default_value = new ConfigOptionBool(false);
def = this->add("use_volumetric_e", coBool);
- def->label = "Use volumetric E";
- def->tooltip = "This experimental setting uses outputs the E values in cubic millimeters "
+ def->label = _L("Use volumetric E");
+ def->tooltip = _L("This experimental setting uses outputs the E values in cubic millimeters "
"instead of linear millimeters. If your firmware doesn't already know "
"filament diameter(s), you can put commands like 'M200 D[filament_diameter_0] T0' "
"in your start G-code in order to turn volumetric mode on and use the filament "
"diameter associated to the filament selected in Slic3r. This is only supported "
- "in recent Marlin.";
+ "in recent Marlin.");
def->cli = "use-volumetric-e!";
def->default_value = new ConfigOptionBool(false);
def = this->add("variable_layer_height", coBool);
- def->label = "Enable variable layer height feature";
- def->tooltip = "Some printers or printer setups may have difficulties printing "
- "with a variable layer height. Enabled by default.";
+ def->label = _L("Enable variable layer height feature");
+ def->tooltip = _L("Some printers or printer setups may have difficulties printing "
+ "with a variable layer height. Enabled by default.");
def->cli = "variable-layer-height!";
def->default_value = new ConfigOptionBool(true);
def = this->add("wipe", coBools);
- def->label = "Wipe while retracting";
- def->tooltip = "This flag will move the nozzle while retracting to minimize the possible blob "
- "on leaky extruders.";
+ def->label = _L("Wipe while retracting");
+ def->tooltip = _L("This flag will move the nozzle while retracting to minimize the possible blob "
+ "on leaky extruders.");
def->cli = "wipe!";
def->default_value = new ConfigOptionBools { false };
def = this->add("wipe_tower", coBool);
- def->label = "Enable";
- def->tooltip = "Multi material printers may need to prime or purge extruders on tool changes. "
- "Extrude the excess material into the wipe tower.";
+ def->label = _L("Enable");
+ def->tooltip = _L("Multi material printers may need to prime or purge extruders on tool changes. "
+ "Extrude the excess material into the wipe tower.");
def->cli = "wipe-tower!";
def->default_value = new ConfigOptionBool(false);
def = this->add("wipe_tower_x", coFloat);
- def->label = "Position X";
- def->tooltip = "X coordinate of the left front corner of a wipe tower";
- def->sidetext = "mm";
+ def->label = _L("Position X");
+ def->tooltip = _L("X coordinate of the left front corner of a wipe tower");
+ def->sidetext = _L("mm");
def->cli = "wipe-tower-x=f";
def->default_value = new ConfigOptionFloat(180.);
def = this->add("wipe_tower_y", coFloat);
- def->label = "Position Y";
- def->tooltip = "Y coordinate of the left front corner of a wipe tower";
- def->sidetext = "mm";
+ def->label = _L("Position Y");
+ def->tooltip = _L("Y coordinate of the left front corner of a wipe tower");
+ def->sidetext = _L("mm");
def->cli = "wipe-tower-y=f";
def->default_value = new ConfigOptionFloat(140.);
def = this->add("wipe_tower_width", coFloat);
- def->label = "Width";
- def->tooltip = "Width of a wipe tower";
- def->sidetext = "mm";
+ def->label = _L("Width");
+ def->tooltip = _L("Width of a wipe tower");
+ def->sidetext = _L("mm");
def->cli = "wipe-tower-width=f";
def->default_value = new ConfigOptionFloat(60.);
def = this->add("wipe_tower_per_color_wipe", coFloat);
- def->label = "Per color change depth";
- def->tooltip = "Depth of a wipe color per color change. For N colors, there will be "
+ def->label = _L("Per color change depth");
+ def->tooltip = _L("Depth of a wipe color per color change. For N colors, there will be "
"maximum (N-1) tool switches performed, therefore the total depth "
- "of the wipe tower will be (N-1) times this value.";
- def->sidetext = "mm";
+ "of the wipe tower will be (N-1) times this value.");
+ def->sidetext = _L("mm");
def->cli = "wipe-tower-per-color-wipe=f";
def->default_value = new ConfigOptionFloat(15.);
def = this->add("xy_size_compensation", coFloat);
- def->label = "XY Size Compensation";
- def->category = "Advanced";
- def->tooltip = "The object will be grown/shrunk in the XY plane by the configured value "
+ def->label = _L("XY Size Compensation");
+ def->category = _L("Advanced");
+ def->tooltip = _L("The object will be grown/shrunk in the XY plane by the configured value "
"(negative = inwards, positive = outwards). This might be useful "
- "for fine-tuning hole sizes.";
- def->sidetext = "mm";
+ "for fine-tuning hole sizes.");
+ def->sidetext = _L("mm");
def->cli = "xy-size-compensation=f";
def->default_value = new ConfigOptionFloat(0);
def = this->add("z_offset", coFloat);
- def->label = "Z offset";
- def->tooltip = "This value will be added (or subtracted) from all the Z coordinates "
+ def->label = _L("Z offset");
+ def->tooltip = _L("This value will be added (or subtracted) from all the Z coordinates "
"in the output G-code. It is used to compensate for bad Z endstop position: "
"for example, if your endstop zero actually leaves the nozzle 0.3mm far "
- "from the print bed, set this to -0.3 (or fix your endstop).";
- def->sidetext = "mm";
+ "from the print bed, set this to -0.3 (or fix your endstop).");
+ def->sidetext = _L("mm");
def->cli = "z-offset=f";
def->default_value = new ConfigOptionFloat(0);
}