FIX: dailytips text translation
jira: STUDIO-2556 Change-Id: If44e503615b09ee1692f42ba1f998918ec5bd691
This commit is contained in:
parent
5f1c4f7803
commit
6ab1ee22eb
|
@ -99,6 +99,7 @@
|
|||
#include "ReleaseNote.hpp"
|
||||
#include "PrivacyUpdateDialog.hpp"
|
||||
#include "ModelMall.hpp"
|
||||
#include "HintNotification.hpp"
|
||||
|
||||
//#ifdef WIN32
|
||||
//#include "BaseException.h"
|
||||
|
@ -5135,6 +5136,7 @@ bool GUI_App::load_language(wxString language, bool initial)
|
|||
//FIXME This is a temporary workaround, the correct solution is to switch to "C" locale during file import / export only.
|
||||
//wxSetlocale(LC_NUMERIC, "C");
|
||||
Preset::update_suffix_modified((_L("*") + " ").ToUTF8().data());
|
||||
HintDatabase::get_instance().reinit();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -303,6 +303,12 @@ void HintDatabase::uninit()
|
|||
m_used_ids.clear();
|
||||
m_used_ids_loaded = false;
|
||||
}
|
||||
void HintDatabase::reinit()
|
||||
{
|
||||
if (m_initialized)
|
||||
uninit();
|
||||
init();
|
||||
}
|
||||
void HintDatabase::init()
|
||||
{
|
||||
load_hints_from_file(std::move(boost::filesystem::path(resources_dir()) / "data" / "hints.ini"));
|
||||
|
|
|
@ -58,6 +58,7 @@ public:
|
|||
// resets m_initiailized to false and writes used if was initialized
|
||||
// used when reloading in runtime - like change language
|
||||
void uninit();
|
||||
void reinit();
|
||||
private:
|
||||
void init();
|
||||
void init_random_hint_id();
|
||||
|
|
Loading…
Reference in New Issue