libcamera: improve the front/back camera descriptions

This commit is contained in:
George Kiagiadakis 2022-05-31 10:41:20 +03:00
parent 6931050b7f
commit b44759ec3f

View file

@ -85,9 +85,9 @@ function createNode(parent, id, type, factory, properties)
-- set the node description
local desc = dev_props["device.description"] or "libcamera-device"
if location == "front" then
desc = I18n.gettext("Internal front camera")
desc = I18n.gettext("Built-in Front Camera")
elseif location == "back" then
desc = I18n.gettext("Internal back camera")
desc = I18n.gettext("Built-in Back Camera")
end
-- sanitize description, replace ':' with ' '
properties["node.description"] = desc:gsub("(:)", " ")