From ad6d40df4c46ac2e9868ecd3e80b930ea8bc287c Mon Sep 17 00:00:00 2001 From: Brendan Hagan Date: Mon, 12 Feb 2024 23:21:40 -0500 Subject: [PATCH] fix: correct localization of strings on Print window --- CHANGES.md | 1 + data/en.mse-locale/locale | 4 ++++ src/gui/print_window.cpp | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 076832d4..0c33b29b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,7 @@ Bug fixes: * Fixed scrolled widgets not scrolling fully (or at all) on Linux (@llemoi, haganbmj#54) * Fixed crash when 0 keywords match filter string in keyword panel (@llemoi, haganbmj#57) * Correct "all images" filter when selecting files. (haganbmj#70) + * Correct localization of strings on Print window. Internal: * Add Mac OS build resources (@halian, haganbmj#67, haganbmj#68) diff --git a/data/en.mse-locale/locale b/data/en.mse-locale/locale index b2f5f0e0..dbe12600 100644 --- a/data/en.mse-locale/locale +++ b/data/en.mse-locale/locale @@ -591,6 +591,9 @@ label: installer status: Status: no version: - + # Print Window + put space between cards: Put space between cards + ############################################################## Buttons/checkboxes/choices in the GUI button: # Editor @@ -714,6 +717,7 @@ title: custom pack: Custom Pack Type # print print preview: Print Preview + settings: Settings # export export images: Export Images export cancelled: Export Cancelled diff --git a/src/gui/print_window.cpp b/src/gui/print_window.cpp index d08cc854..3ebf7ef5 100644 --- a/src/gui/print_window.cpp +++ b/src/gui/print_window.cpp @@ -166,14 +166,14 @@ PrintJobP make_print_job(Window* parent, const SetP& set, const ExportCardSelect // Let the user choose cards // controls ExportWindowBase wnd(parent, _TITLE_("select cards print"), set, choices); - wxCheckBox* space = new wxCheckBox(&wnd, wxID_ANY, L"Put space between cards"); + wxCheckBox* space = new wxCheckBox(&wnd, wxID_ANY, _LABEL_("put space between cards")); space->SetValue(settings.print_layout); // layout wxSizer* s = new wxBoxSizer(wxVERTICAL); wxSizer* s2 = new wxBoxSizer(wxHORIZONTAL); wxSizer* s3 = wnd.Create(); s2->Add(s3, 1, wxEXPAND | wxALL, 8); - wxSizer* s4 = new wxStaticBoxSizer(wxVERTICAL, &wnd, L"Settings"); + wxSizer* s4 = new wxStaticBoxSizer(wxVERTICAL, &wnd, _TITLE_("settings")); s4->Add(space, 1, wxALL | wxALIGN_TOP, 8); s2->Add(s4, 1, wxEXPAND | (wxALL & ~wxLEFT), 8); s->Add(s2, 1, wxEXPAND);