mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 07:40:03 +01:00
scripts: translate user-visible strings in alsa.lua
This commit is contained in:
parent
bbe9ac00f3
commit
6feecab74e
2 changed files with 4 additions and 2 deletions
|
|
@ -8,6 +8,8 @@ function alsa_monitor.enable()
|
||||||
load_module("reserve-device")
|
load_module("reserve-device")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
load_module("i18n")
|
||||||
|
|
||||||
load_monitor("alsa", {
|
load_monitor("alsa", {
|
||||||
properties = alsa_monitor.properties,
|
properties = alsa_monitor.properties,
|
||||||
rules = alsa_monitor.rules,
|
rules = alsa_monitor.rules,
|
||||||
|
|
|
||||||
|
|
@ -219,9 +219,9 @@ function prepareDevice(parent, id, type, factory, properties)
|
||||||
local c = properties["device.class"]
|
local c = properties["device.class"]
|
||||||
|
|
||||||
if f == "internal" then
|
if f == "internal" then
|
||||||
d = "Built-in Audio"
|
d = I18n.gettext("Built-in Audio")
|
||||||
elseif c == "modem" then
|
elseif c == "modem" then
|
||||||
d = "Modem"
|
d = I18n.gettext("Modem")
|
||||||
end
|
end
|
||||||
|
|
||||||
d = d or properties["device.product.name"]
|
d = d or properties["device.product.name"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue