Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-08-27 18:14:03 +0300
committerbubnikv <bubnikv@gmail.com>2019-08-27 18:14:03 +0300
commitcd35fd9b34a2b624e0a385121c6bd560911cb6bd (patch)
treeadcd1a2e3ab1272e23fa0d643dc3869ce0883cf9 /src/slic3r/GUI/OptionsGroup.cpp
parentb8bd362553c370c220e593fd49da1128180dcd98 (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.cpp2
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);