Add locale for modules
This commit is contained in:
parent
aed8f54f1a
commit
482791c5b6
60 changed files with 357 additions and 157 deletions
|
|
@ -54,11 +54,11 @@ void xcompcap_update(void *data, obs_data_t settings)
|
|||
}
|
||||
|
||||
OBS_DECLARE_MODULE()
|
||||
OBS_MODULE_USE_DEFAULT_LOCALE("linux-xcomposite", "en-US")
|
||||
|
||||
static const char* xcompcap_getname(void)
|
||||
{
|
||||
/* TODO: locale */
|
||||
return "Xcomposite capture";
|
||||
return obs_module_text("XCCapture");
|
||||
}
|
||||
|
||||
bool obs_module_load(uint32_t libobs_version)
|
||||
|
|
@ -96,5 +96,7 @@ void obs_module_unload()
|
|||
{
|
||||
XCompcapMain::deinit();
|
||||
|
||||
OBS_MODULE_FREE_DEFAULT_LOCALE();
|
||||
|
||||
blog(LOG_INFO, "Xcomposite capture plugin unloaded");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue