mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
masks and zones i18n fixes
This commit is contained in:
parent
066fff81f7
commit
9dc1faadb9
@ -191,6 +191,8 @@
|
|||||||
"copyCoordinatesFailed": "Could not copy coordinates to clipboard."
|
"copyCoordinatesFailed": "Could not copy coordinates to clipboard."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"motionMaskLabel": "Motion Mask {{number}}",
|
||||||
|
"objectMaskLabel": "Object Mask {{number}} ({{label}})",
|
||||||
"form": {
|
"form": {
|
||||||
"zoneName": {
|
"zoneName": {
|
||||||
"error": {
|
"error": {
|
||||||
|
|||||||
@ -271,7 +271,9 @@ export default function MasksAndZonesView({
|
|||||||
type: "motion_mask" as PolygonType,
|
type: "motion_mask" as PolygonType,
|
||||||
typeIndex: index,
|
typeIndex: index,
|
||||||
camera: cameraConfig.name,
|
camera: cameraConfig.name,
|
||||||
name: `Motion Mask ${index + 1}`,
|
name: t("masksAndZones.motionMaskLabel", {
|
||||||
|
number: index + 1,
|
||||||
|
}),
|
||||||
objects: [],
|
objects: [],
|
||||||
points: interpolatePoints(
|
points: interpolatePoints(
|
||||||
parseCoordinates(maskData),
|
parseCoordinates(maskData),
|
||||||
@ -295,7 +297,10 @@ export default function MasksAndZonesView({
|
|||||||
type: "object_mask" as PolygonType,
|
type: "object_mask" as PolygonType,
|
||||||
typeIndex: index,
|
typeIndex: index,
|
||||||
camera: cameraConfig.name,
|
camera: cameraConfig.name,
|
||||||
name: `Object Mask ${index + 1} (all objects)`,
|
name: t("masksAndZones.objectMaskLabel", {
|
||||||
|
number: index + 1,
|
||||||
|
label: t("masksAndZones.zones.allObjects"),
|
||||||
|
}),
|
||||||
objects: [],
|
objects: [],
|
||||||
points: interpolatePoints(
|
points: interpolatePoints(
|
||||||
parseCoordinates(maskData),
|
parseCoordinates(maskData),
|
||||||
@ -322,7 +327,10 @@ export default function MasksAndZonesView({
|
|||||||
type: "object_mask" as PolygonType,
|
type: "object_mask" as PolygonType,
|
||||||
typeIndex: subIndex,
|
typeIndex: subIndex,
|
||||||
camera: cameraConfig.name,
|
camera: cameraConfig.name,
|
||||||
name: `Object Mask ${globalObjectMasksCount + index + 1} (${objectName})`,
|
name: t("masksAndZones.objectMaskLabel", {
|
||||||
|
number: globalObjectMasksCount + index + 1,
|
||||||
|
label: t(objectName, { ns: "objects" }),
|
||||||
|
}),
|
||||||
objects: [objectName],
|
objects: [objectName],
|
||||||
points: interpolatePoints(
|
points: interpolatePoints(
|
||||||
parseCoordinates(maskItem),
|
parseCoordinates(maskItem),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user