mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-01 09:32:50 +00:00
First steps for implementing localization
* Created mo-files for Ukrainian and English languages * For this moment it works only on BedShapeDialog.
This commit is contained in:
@@ -19,6 +19,8 @@ std::string var(const std::string &file_name);
|
||||
void set_resources_dir(const std::string &path);
|
||||
// Return a full path to the resources directory.
|
||||
const std::string& resources_dir();
|
||||
// Return a full path to the localization directory.
|
||||
std::string localization_dir();
|
||||
|
||||
// Set a path with preset files.
|
||||
void set_data_dir(const std::string &path);
|
||||
|
||||
@@ -103,6 +103,11 @@ const std::string& resources_dir()
|
||||
return g_resources_dir;
|
||||
}
|
||||
|
||||
std::string localization_dir()
|
||||
{
|
||||
return resources_dir() + "\\localization\\";
|
||||
}
|
||||
|
||||
static std::string g_data_dir;
|
||||
|
||||
void set_data_dir(const std::string &dir)
|
||||
|
||||
Reference in New Issue
Block a user