Merge pull request #3037 from khng300/oss-audio-locale
oss-audio: Add en-US translation data file
This commit is contained in:
commit
d072798fbd
@ -34,4 +34,4 @@ target_link_libraries(oss-audio
|
||||
)
|
||||
set_target_properties(oss-audio PROPERTIES FOLDER "plugins")
|
||||
|
||||
install_obs_plugin(oss-audio)
|
||||
install_obs_plugin_with_data(oss-audio data)
|
||||
|
8
plugins/oss-audio/data/locale/en-US.ini
Normal file
8
plugins/oss-audio/data/locale/en-US.ini
Normal file
@ -0,0 +1,8 @@
|
||||
OSSInput="Audio Input Capture (OSS)"
|
||||
DSP="DSP"
|
||||
CustomDSPPath="Custom DSP Path"
|
||||
SampleRate="Sample rate"
|
||||
Channels="Channels"
|
||||
SampleFormat="Sample format"
|
||||
Default="Default"
|
||||
Custom="Custom"
|
@ -322,7 +322,7 @@ static void oss_stop_reader(struct oss_input_data *handle)
|
||||
static const char *oss_getname(void *unused)
|
||||
{
|
||||
UNUSED_PARAMETER(unused);
|
||||
return obs_module_text("OSS Input");
|
||||
return obs_module_text("OSSInput");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -630,16 +630,18 @@ static obs_properties_t *oss_properties(void *unused)
|
||||
OBS_COMBO_TYPE_LIST,
|
||||
OBS_COMBO_FORMAT_STRING);
|
||||
|
||||
obs_property_list_add_string(devices, "Default", OSS_DSP_DEFAULT);
|
||||
obs_property_list_add_string(devices, "Custom", OBS_PATH_DSP_CUSTOM);
|
||||
obs_property_list_add_string(devices, obs_module_text("Default"),
|
||||
OSS_DSP_DEFAULT);
|
||||
obs_property_list_add_string(devices, obs_module_text("Custom"),
|
||||
OBS_PATH_DSP_CUSTOM);
|
||||
obs_property_set_modified_callback(devices, oss_on_devices_changed);
|
||||
|
||||
obs_properties_add_text(props, OBS_PROPS_CUSTOM_DSP,
|
||||
obs_module_text("Custom DSP Path"),
|
||||
obs_module_text("CustomDSPPath"),
|
||||
OBS_TEXT_DEFAULT);
|
||||
|
||||
rate = obs_properties_add_list(props, OBS_PROPS_RATE,
|
||||
obs_module_text("Sample rate"),
|
||||
obs_module_text("SampleRate"),
|
||||
OBS_COMBO_TYPE_LIST,
|
||||
OBS_COMBO_FORMAT_INT);
|
||||
channels = obs_properties_add_list(props, OBS_PROPS_CHANNELS,
|
||||
@ -649,7 +651,7 @@ static obs_properties_t *oss_properties(void *unused)
|
||||
oss_fill_device_info(rate, channels, OSS_DSP_DEFAULT);
|
||||
|
||||
sample_fmt = obs_properties_add_list(props, OBS_PROPS_SAMPLE_FMT,
|
||||
obs_module_text("Sample format"),
|
||||
obs_module_text("SampleFormat"),
|
||||
OBS_COMBO_TYPE_LIST,
|
||||
OBS_COMBO_FORMAT_INT);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user