mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
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:
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user