mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-29 16:46:24 -04:00
obs-frontend-api: Add function to get frontend translated string
Developers now can easily get a translated string from the frontend instead of using their own translations.
This commit is contained in:
@@ -620,6 +620,11 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
||||
return bstrdup(recordOutputPath);
|
||||
}
|
||||
|
||||
const char *obs_frontend_get_locale_string(const char *string) override
|
||||
{
|
||||
return Str(string);
|
||||
}
|
||||
|
||||
void on_load(obs_data_t *settings) override
|
||||
{
|
||||
for (size_t i = saveCallbacks.size(); i > 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user