Added machine evelope configuration parameters

(the MachineEnvelopeConfig class).
Added localization support for libslic3r through a callback
(the callback is not registered yet, so the localization does nothing).
Localized the Print::validate() error messages.
This commit is contained in:
bubnikv 2018-06-20 13:57:37 +02:00
parent 86b02224ae
commit 6b2b970b9a
9 changed files with 189 additions and 38 deletions

View file

@ -1,4 +1,5 @@
#include "Utils.hpp"
#include "I18N.hpp"
#include <locale>
#include <ctime>
@ -123,6 +124,9 @@ const std::string& localization_dir()
return g_local_dir;
}
// Translate function callback, to call wxWidgets translate function to convert non-localized UTF8 string to a localized one.
translate_fn_type translate_fn = nullptr;
static std::string g_data_dir;
void set_data_dir(const std::string &dir)