libobs: Add macro for default module locale
These macros are used as easy helper functions to load/unload module locale that's based upon the text_lookup system. You simple place the OBS_MODULE_USE_DEFAULT_LOCALE macro once in the module, call OBS_MODULE_FREE_DEFAULT LOCALE in obs_module_unload, and then call obs_module_text anywhere in your module where you need to look up text. By default, it will look for a locale directory in your module's data directory, and look for language files within it (INI locale format)
Showing
想要评论请 注册 或 登录