mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:35:59 +08:00
Add comments for translators
extend size of separator(on retina displays is larger)
This commit is contained in:
parent
69531b9e40
commit
35c5099469
@ -3611,8 +3611,14 @@ GuiCfg create_gui_configuration()
|
||||
cfg.input_width = letter_m_size.x * count_letter_M_in_input;
|
||||
GuiCfg::Translations &tr = cfg.translations;
|
||||
|
||||
// TRN - Input label. Be short as possible
|
||||
// Select look of letter shape
|
||||
tr.font = _u8L("Font");
|
||||
// TRN - Input label. Be short as possible
|
||||
// Height of one text line - Font Ascent
|
||||
tr.height = _u8L("Height");
|
||||
// TRN - Input label. Be short as possible
|
||||
// Size in emboss direction
|
||||
tr.depth = _u8L("Depth");
|
||||
|
||||
float max_text_width = std::max({
|
||||
@ -3622,16 +3628,44 @@ GuiCfg create_gui_configuration()
|
||||
cfg.indent = static_cast<float>(cfg.icon_width);
|
||||
cfg.input_offset = style.WindowPadding.x + cfg.indent + max_text_width + space;
|
||||
|
||||
// TRN - Input label. Be short as possible
|
||||
// Copy surface of model on surface of the embossed text
|
||||
tr.use_surface = _u8L("Use surface");
|
||||
// TRN - Input label. Be short as possible
|
||||
// Option to change projection on curved surface
|
||||
// for each character in text separately
|
||||
tr.per_glyph = _u8L("Per glyph orientation");
|
||||
// TRN - Input label. Be short as possible
|
||||
// Align Top|Middle|Bottom and Left|Center|Right
|
||||
tr.alignment = _u8L("Alignment");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.char_gap = _u8L("Char gap");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.line_gap = _u8L("Line gap");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.boldness = _u8L("Boldness");
|
||||
|
||||
// TRN - Input label. Be short as possible
|
||||
// Like Font italic
|
||||
tr.skew_ration = _u8L("Skew ratio");
|
||||
|
||||
// TRN - Input label. Be short as possible
|
||||
// Distance from model surface to be able
|
||||
// move text as part fully into not flat surface
|
||||
// move text as modifier fully out of not flat surface
|
||||
tr.from_surface = _u8L("From surface");
|
||||
|
||||
// TRN - Input label. Be short as possible
|
||||
// Angle between Y axis and text line direction.
|
||||
tr.rotation = _u8L("Rotation");
|
||||
|
||||
// TRN - Input label. Be short as possible
|
||||
// Keep vector from bottom to top of text aligned with printer Y axis
|
||||
tr.keep_up = _u8L("Keep Up");
|
||||
|
||||
// TRN - Input label. Be short as possible.
|
||||
// Some Font file contain multiple fonts inside and
|
||||
// this is numerical selector of font inside font collections
|
||||
tr.collection = _u8L("Collection");
|
||||
|
||||
float max_advanced_text_width = std::max({
|
||||
@ -3654,7 +3688,7 @@ GuiCfg create_gui_configuration()
|
||||
float window_title = line_height + 2*style.FramePadding.y + 2 * style.WindowTitleAlign.y;
|
||||
float input_height = line_height_with_spacing + 2*style.FramePadding.y;
|
||||
float tree_header = line_height_with_spacing;
|
||||
float separator_height = 1 + style.FramePadding.y;
|
||||
float separator_height = 2 + style.FramePadding.y;
|
||||
|
||||
// "Text is to object" + radio buttons
|
||||
cfg.height_of_volume_type_selector = separator_height + line_height_with_spacing + input_height;
|
||||
|
@ -1983,11 +1983,17 @@ GuiCfg create_gui_configuration() {
|
||||
GuiCfg::Translations &tr = cfg.translations;
|
||||
|
||||
float lock_width = cfg.icon_width + 3 * space;
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.depth = _u8L("Depth");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.size = _u8L("Size");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.use_surface = _u8L("Use surface");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.distance = _u8L("From surface");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.rotation = _u8L("Rotation");
|
||||
// TRN - Input label. Be short as possible
|
||||
tr.mirror = _u8L("Mirror");
|
||||
float max_tr_width = std::max({
|
||||
ImGui::CalcTextSize(tr.depth.c_str()).x,
|
||||
@ -2013,7 +2019,7 @@ GuiCfg create_gui_configuration() {
|
||||
|
||||
float window_title = line_height + 2 * style.FramePadding.y + 2 * style.WindowTitleAlign.y;
|
||||
float input_height = line_height_with_spacing + 2 * style.FramePadding.y;
|
||||
float separator_height = 1 + style.FramePadding.y;
|
||||
float separator_height = 2 + style.FramePadding.y;
|
||||
float window_height =
|
||||
window_title + // window title
|
||||
cfg.texture_max_size_px + // preview
|
||||
|
Loading…
x
Reference in New Issue
Block a user