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:
jp9000
2014-06-25 12:36:17 -07:00
parent 9f652e6416
commit 899f053034
6 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ using SceneContext = OBSUniqueHandle<obs_scene,
static void CreateOBS(NSView *view)
{
if (!obs_startup())
if (!obs_startup("en"))
throw "Couldn't create OBS";
struct obs_video_info ovi;
+1 -1
View File
@@ -71,7 +71,7 @@ static void CreateOBS(HWND hwnd)
RECT rc;
GetClientRect(hwnd, &rc);
if (!obs_startup())
if (!obs_startup("en"))
throw "Couldn't create OBS";
struct obs_video_info ovi;