Add missing language strings for preference window

This commit is contained in:
Joshua Ogunyinka 2022-01-03 12:37:34 +04:00 committed by David Capello
parent de44545930
commit bbfae36d8f
2 changed files with 26 additions and 13 deletions

View File

@ -1389,6 +1389,13 @@ the Shift key is pressed.
END
discard_brush = Discard custom brush when eyedropper is used
right_click = Right-click:
right_click_paint_bgcolor = Paint with background color
right_click_pick_fgcolor = Pick foreground color
right_click_erase = Erase
right_click_scroll = Scroll
right_click_rectangular_marquee = Rectangular Marquee
right_click_lasso = Lasso
right_click_select_layer_and_move = Select Layer and Move
editor_selection = Selection
auto_opaque = Adjust opaque/transparent mode automatically
auto_opaque_tooltip = <<<END
@ -1469,8 +1476,13 @@ cursor_neg_bw = Negative Black and White
cursor_specific_color = Specific Color
bg_checkered = Checkered Background
bg_size = Size:
bg_custom_size = Custom
bg_apply_zoom = Apply Zoom
bg_colors = Colors:
bg_for_new_docs = Background for New Documents
bg_for_active_doc = Background for the Active Document
grid_for_active_doc = Grid for the Active Document
grid_for_new_docs = Grid for New Documents
grid_visible = Visible Grid
grid_x = X:
grid_y = Y:
@ -1530,6 +1542,7 @@ convert_cs = Convert to working RGB space
assign_cs = Assign working RGB space
ask_cs = Ask
available_themes = Available Themes
extension_themes = Extension Themes
select_theme = &Select
download_themes = Download Themes
open_theme_folder = Open &Folder

View File

@ -472,14 +472,14 @@ public:
discardBrush()->setSelected(true);
// Scope
bgScope()->addItem("Background for New Documents");
gridScope()->addItem("Grid for New Documents");
bgScope()->addItem(Strings::options_bg_for_new_docs());
gridScope()->addItem(Strings::options_grid_for_new_docs());
if (context->activeDocument()) {
bgScope()->addItem("Background for the Active Document");
bgScope()->addItem(Strings::options_bg_for_active_doc());
bgScope()->setSelectedItemIndex(1);
bgScope()->Change.connect([this]{ onChangeBgScope(); });
gridScope()->addItem("Grid for the Active Document");
gridScope()->addItem(Strings::options_grid_for_active_doc());
gridScope()->setSelectedItemIndex(1);
gridScope()->Change.connect([this]{ onChangeGridScope(); });
}
@ -526,13 +526,13 @@ public:
static_assert(int(app::gen::RightClickMode::LASSO) == 5, "");
static_assert(int(app::gen::RightClickMode::SELECT_LAYER_AND_MOVE) == 6, "");
rightClickBehavior()->addItem("Paint with background color");
rightClickBehavior()->addItem("Pick foreground color");
rightClickBehavior()->addItem("Erase");
rightClickBehavior()->addItem("Scroll");
rightClickBehavior()->addItem("Rectangular Marquee");
rightClickBehavior()->addItem("Lasso");
rightClickBehavior()->addItem("Select Layer & Move");
rightClickBehavior()->addItem(Strings::options_right_click_paint_bgcolor());
rightClickBehavior()->addItem(Strings::options_right_click_pick_fgcolor());
rightClickBehavior()->addItem(Strings::options_right_click_erase());
rightClickBehavior()->addItem(Strings::options_right_click_scroll());
rightClickBehavior()->addItem(Strings::options_right_click_rectangular_marquee());
rightClickBehavior()->addItem(Strings::options_right_click_lasso());
rightClickBehavior()->addItem(Strings::options_right_click_select_layer_and_move());
rightClickBehavior()->setSelectedItemIndex((int)m_pref.editor.rightClickMode());
#ifndef __APPLE__ // Zoom sliding two fingers option only on macOS
@ -548,7 +548,7 @@ public:
checkeredBgSize()->addItem("4x4");
checkeredBgSize()->addItem("2x2");
checkeredBgSize()->addItem("1x1");
checkeredBgSize()->addItem("Custom");
checkeredBgSize()->addItem(Strings::options_bg_custom_size());
checkeredBgSize()->Change.connect([this]{ onCheckeredBgSizeChange(); });
// Reset buttons
@ -1339,7 +1339,7 @@ private:
if (first) {
first = false;
themeList()->addChild(
new SeparatorInView("Extension Themes", HORIZONTAL));
new SeparatorInView(Strings::options_extension_themes(), HORIZONTAL));
}
for (auto it : ext->themes()) {