1
0

Translate error message before clearing translations

This commit is contained in:
luk3yx 2022-11-27 11:06:14 +13:00
parent da679d619e
commit c7bb8e5baf

View File

@ -189,6 +189,11 @@ GUIEngine::GUIEngine(JoystickController *joystick,
infostream << "GUIEngine: Initializing Lua" << std::endl;
// Translate the error message before clearing g_client_translations
if (!m_data->script_data.errormessage.empty())
m_data->script_data.errormessage = wide_to_utf8(translate_string(
utf8_to_wide(m_data->script_data.errormessage)));
g_client_translations->clear();
m_script = new MainMenuScripting(this);