Add API for setting/getting current locale
This API is used to set the current locale for libobs, which it will set for all modules when a module is loaded or specifically when the locale is manually changed.
This commit is contained in:
@@ -468,7 +468,7 @@ void OBSBasic::OBSInit()
|
||||
show();
|
||||
App()->processEvents();
|
||||
|
||||
if (!obs_startup())
|
||||
if (!obs_startup(App()->GetLocale()))
|
||||
throw "Failed to initialize libobs";
|
||||
if (!InitBasicConfig())
|
||||
throw "Failed to load basic.ini";
|
||||
|
Reference in New Issue
Block a user