diff options
author | bubnikv <bubnikv@gmail.com> | 2018-11-26 16:41:58 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-11-26 16:41:58 +0300 |
commit | a378bb7bed57f036441075928cd14f252c45ef7f (patch) | |
tree | db3ab427fbd49a67f1cb5638861758e0fc6a0a0e /src/slic3r/GUI/I18N.cpp | |
parent | 63faa917a99fd08239cab7ff920bfa9f0648bbbc (diff) |
Removed some obsolete Perl bindings.
Removed libslic3r from the default include paths for all modules but
libslic3r. Now headers from libslic3r need to be included with an
explicit path (libslic3r/libslic3r.h etc)
Split the localization macros into I18N.{cpp,h}
Diffstat (limited to 'src/slic3r/GUI/I18N.cpp')
-rw-r--r-- | src/slic3r/GUI/I18N.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/slic3r/GUI/I18N.cpp b/src/slic3r/GUI/I18N.cpp new file mode 100644 index 000000000..530a32143 --- /dev/null +++ b/src/slic3r/GUI/I18N.cpp @@ -0,0 +1,11 @@ +#include "I18N.hpp" + +namespace Slic3r { namespace GUI { + +wxString L_str(const std::string &str) +{ + //! Explicitly specify that the source string is already in UTF-8 encoding + return wxGetTranslation(wxString(str.c_str(), wxConvUTF8)); +} + +} } |