diff options
author | bubnikv <bubnikv@gmail.com> | 2019-08-27 18:14:03 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-08-27 18:14:03 +0300 |
commit | cd35fd9b34a2b624e0a385121c6bd560911cb6bd (patch) | |
tree | adcd1a2e3ab1272e23fa0d643dc3869ce0883cf9 /src/slic3r/GUI/OptionsGroup.cpp | |
parent | b8bd362553c370c220e593fd49da1128180dcd98 (diff) |
Refreshed the dictionaries.
Introduced a new localization macro L_CONTEXT(string, context)
to define context dependent translations.
The only strings - "Top" and "Bottom" were already using context, but
until now the context had to be added to the PrusaSlicer.pot file
manually, while the context is being generated automatically now.
Diffstat (limited to 'src/slic3r/GUI/OptionsGroup.cpp')
-rw-r--r-- | src/slic3r/GUI/OptionsGroup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/OptionsGroup.cpp b/src/slic3r/GUI/OptionsGroup.cpp index 656df86ff..f40138408 100644 --- a/src/slic3r/GUI/OptionsGroup.cpp +++ b/src/slic3r/GUI/OptionsGroup.cpp @@ -246,7 +246,7 @@ void OptionsGroup::append_line(const Line& line, wxStaticText** full_Label/* = n // add label if any if (option.label != "") { //! To correct translation by context have to use wxGETTEXT_IN_CONTEXT macro from wxWidget 3.1.1 - wxString str_label = (option.label == "Top" || option.label == "Bottom") ? + wxString str_label = (option.label == L_CONTEXT("Top", "Layers") || option.label == L_CONTEXT("Bottom", "Layers")) ? _CTX(option.label, "Layers") : _(option.label); label = new wxStaticText(this->ctrl_parent(), wxID_ANY, str_label + ": ", wxDefaultPosition, wxDefaultSize); |