diff options
author | YuSanka <yusanka@gmail.com> | 2018-07-23 16:44:01 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2018-07-23 16:44:01 +0300 |
commit | dd088ba0cc84cb3cb80c4152e388ec16feb85c67 (patch) | |
tree | 55dc359bdb3d6f10016a6029150d80eeea2ffc42 /xs/src/slic3r/GUI/Tab.cpp | |
parent | 40b55a3818fa52158616944daaa1d0e04c786f40 (diff) |
Localized the (modified) profile indicator
Diffstat (limited to 'xs/src/slic3r/GUI/Tab.cpp')
-rw-r--r-- | xs/src/slic3r/GUI/Tab.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xs/src/slic3r/GUI/Tab.cpp b/xs/src/slic3r/GUI/Tab.cpp index 5d1c51eb3..187030f31 100644 --- a/xs/src/slic3r/GUI/Tab.cpp +++ b/xs/src/slic3r/GUI/Tab.cpp @@ -2728,7 +2728,7 @@ void SavePresetWindow::accept() const char* unusable_symbols = "<>:/\\|?*\""; bool is_unusable_symbol = false; bool is_unusable_postfix = false; - const std::string unusable_postfix = "(modified)"; + const std::string unusable_postfix = PresetCollection::get_suffix_modified();//"(modified)"; for (size_t i = 0; i < std::strlen(unusable_symbols); i++){ if (m_chosen_name.find_first_of(unusable_symbols[i]) != std::string::npos){ is_unusable_symbol = true; @@ -2743,8 +2743,9 @@ void SavePresetWindow::accept() _(L("the following characters are not allowed:")) + " <>:/\\|?*\""); } else if (is_unusable_postfix){ - show_error(this, _(L("The supplied name is not valid;")) + "\n" + - _(L("the following postfix are not allowed:")) + "\n\t" + unusable_postfix); + show_error(this,_(L("The supplied name is not valid;")) + "\n" + + _(L("the following postfix are not allowed:")) + "\n\t" + //unusable_postfix); + wxString::FromUTF8(unusable_postfix.c_str())); } else if (m_chosen_name.compare("- default -") == 0) { show_error(this, _(L("The supplied name is not available."))); |