mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 08:55:57 +08:00
Fixed loading translation of hint notification text and reloading this texts in other langs.
This commit is contained in:
parent
e0b96e5535
commit
f03f8f52d7
@ -294,6 +294,10 @@ void HintDatabase::uninit()
|
|||||||
write_used_binary(m_used_ids);
|
write_used_binary(m_used_ids);
|
||||||
}
|
}
|
||||||
m_initialized = false;
|
m_initialized = false;
|
||||||
|
m_loaded_hints.clear();
|
||||||
|
m_sorted_hints = false;
|
||||||
|
m_used_ids.clear();
|
||||||
|
m_used_ids_loaded = false;
|
||||||
}
|
}
|
||||||
void HintDatabase::init()
|
void HintDatabase::init()
|
||||||
{
|
{
|
||||||
@ -336,7 +340,8 @@ void HintDatabase::load_hints_from_file(const boost::filesystem::path& path)
|
|||||||
size_t weight = 1;
|
size_t weight = 1;
|
||||||
bool was_displayed = is_used(id_string);
|
bool was_displayed = is_used(id_string);
|
||||||
//unescape text1
|
//unescape text1
|
||||||
unescape_string_cstyle(_utf8(dict["text"]), fulltext);
|
unescape_string_cstyle(dict["text"], fulltext);
|
||||||
|
fulltext = _utf8(fulltext);
|
||||||
// replace <b> and </b> for imgui markers
|
// replace <b> and </b> for imgui markers
|
||||||
std::string marker_s(1, ImGui::ColorMarkerStart);
|
std::string marker_s(1, ImGui::ColorMarkerStart);
|
||||||
std::string marker_e(1, ImGui::ColorMarkerEnd);
|
std::string marker_e(1, ImGui::ColorMarkerEnd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user