mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Merge branch 'reload_l10n' into 'master'
Console command `reloadlua` also reloads l10n used by Lua scripts See merge request OpenMW/openmw!1984
This commit is contained in:
commit
ee89eccb06
@ -503,6 +503,7 @@ namespace MWLua
|
||||
MWBase::Environment::get().getWindowManager()->setConsoleMode("");
|
||||
mUiResourceManager.clear();
|
||||
mLua.dropScriptCache();
|
||||
mL10n.clear();
|
||||
initConfiguration();
|
||||
|
||||
{ // Reload global scripts
|
||||
|
@ -13,6 +13,7 @@ namespace LuaUtil
|
||||
public:
|
||||
L10nManager(const VFS::Manager* vfs, LuaState* lua) : mVFS(vfs), mLua(lua) {}
|
||||
void init();
|
||||
void clear() { mContexts.clear(); }
|
||||
|
||||
void setPreferredLocales(const std::vector<std::string>& locales);
|
||||
const std::vector<icu::Locale>& getPreferredLocales() const { return mPreferredLocales; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user