From bf0d43e433ab91c19bc7db54397ed98657555a9b Mon Sep 17 00:00:00 2001 From: Freaxed Date: Sun, 15 Dec 2024 19:22:37 +0100 Subject: [PATCH] console settings translated --- src/GenioApp.cpp | 6 +++--- src/helpers/mterm/MTermView.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GenioApp.cpp b/src/GenioApp.cpp index 5acc49a5..823857da 100644 --- a/src/GenioApp.cpp +++ b/src/GenioApp.cpp @@ -442,8 +442,8 @@ GenioApp::_PrepareConfig(ConfigManager& cfg) cfg.AddConfig(editorVisual.String(), "editor_zoom", B_TRANSLATE("Editor zoom:"), 0, &zooms); GMessage console_styles = { {"mode", "options"} }; - console_styles["option_1"] = { {"value", 0}, {"label", "(follow system)" } }; - console_styles["option_2"] = { {"value", 1}, {"label", "(follow editor)" } }; + console_styles["option_1"] = { {"value", 0}, {"label", B_TRANSLATE("(follow system style)") } }; + console_styles["option_2"] = { {"value", 1}, {"label", B_TRANSLATE("(follow editor style)") } }; style_index = 3; for (auto style : allStyles) { BString opt("option_"); @@ -452,7 +452,7 @@ GenioApp::_PrepareConfig(ConfigManager& cfg) console_styles[opt.String()] = { {"value", style_index - 1}, {"label", style.c_str() } }; style_index++; } - cfg.AddConfig("Console", "console_style", B_TRANSLATE("Console style:"), "(follow system)", &console_styles); + cfg.AddConfig("Console", "console_style", B_TRANSLATE("Console style:"), B_TRANSLATE("(follow system style)"), &console_styles); BString build(B_TRANSLATE("Build")); diff --git a/src/helpers/mterm/MTermView.cpp b/src/helpers/mterm/MTermView.cpp index cfb26bce..2d496c27 100644 --- a/src/helpers/mterm/MTermView.cpp +++ b/src/helpers/mterm/MTermView.cpp @@ -66,10 +66,10 @@ MTermView::ApplyStyle() if (fontSize > 0) font.SetSize(fontSize); BString style = gCFG["console_style"]; - if (style.Compare("(follow system)") == 0) { + if (style.Compare(B_TRANSLATE("(follow system style)")) == 0) { Styler::ApplySystemStyle(fKeyTextView); } else { - if (style.Compare("(follow editor)") == 0) + if (style.Compare(B_TRANSLATE("(follow editor style)")) == 0) style = (BString)gCFG["editor_style"]; Styler::ApplyBasicStyle(fKeyTextView, style, &font);