Skip to content

Commit

Permalink
console settings translated
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaxed committed Dec 15, 2024
1 parent d88b3ea commit bf0d43e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/GenioApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_");
Expand All @@ -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"));
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/mterm/MTermView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf0d43e

Please sign in to comment.