mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-21 11:51:53 +03:00
change terminology to off/on instead of disabled/enabled
This commit is contained in:
parent
daadbfe913
commit
ca8aa4a651
@ -12,7 +12,7 @@
|
|||||||
"title": "Stream Offline",
|
"title": "Stream Offline",
|
||||||
"desc": "No frames have been received on the {{cameraName}} <code>detect</code> stream, check error logs"
|
"desc": "No frames have been received on the {{cameraName}} <code>detect</code> stream, check error logs"
|
||||||
},
|
},
|
||||||
"cameraDisabled": "Camera is disabled",
|
"cameraOff": "Camera is off",
|
||||||
"stats": {
|
"stats": {
|
||||||
"streamType": {
|
"streamType": {
|
||||||
"title": "Stream Type:",
|
"title": "Stream Type:",
|
||||||
|
|||||||
@ -57,8 +57,8 @@
|
|||||||
"presets": "PTZ camera presets"
|
"presets": "PTZ camera presets"
|
||||||
},
|
},
|
||||||
"camera": {
|
"camera": {
|
||||||
"enable": "Enable Camera",
|
"turnOn": "Turn Camera On",
|
||||||
"disable": "Disable Camera"
|
"turnOff": "Turn Camera Off"
|
||||||
},
|
},
|
||||||
"muteCameras": {
|
"muteCameras": {
|
||||||
"enable": "Mute All Cameras",
|
"enable": "Mute All Cameras",
|
||||||
@ -153,7 +153,7 @@
|
|||||||
},
|
},
|
||||||
"cameraSettings": {
|
"cameraSettings": {
|
||||||
"title": "{{camera}} Settings",
|
"title": "{{camera}} Settings",
|
||||||
"cameraEnabled": "Camera Enabled",
|
"camera": "Camera",
|
||||||
"objectDetection": "Object Detection",
|
"objectDetection": "Object Detection",
|
||||||
"recording": "Recording",
|
"recording": "Recording",
|
||||||
"snapshots": "Snapshots",
|
"snapshots": "Snapshots",
|
||||||
|
|||||||
@ -320,7 +320,7 @@ export default function LiveContextMenu({
|
|||||||
onClick={() => sendEnabled(isEnabled ? "OFF" : "ON")}
|
onClick={() => sendEnabled(isEnabled ? "OFF" : "ON")}
|
||||||
>
|
>
|
||||||
<div className="text-primary">
|
<div className="text-primary">
|
||||||
{isEnabled ? t("camera.disable") : t("camera.enable")}
|
{isEnabled ? t("camera.turnOff") : t("camera.turnOn")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
|
|||||||
@ -488,7 +488,7 @@ export default function LivePlayer({
|
|||||||
<div className="flex h-32 flex-col items-center justify-center rounded-lg p-4 md:h-48 md:w-48">
|
<div className="flex h-32 flex-col items-center justify-center rounded-lg p-4 md:h-48 md:w-48">
|
||||||
<LuVideoOff className="mb-2 size-8 md:size-10" />
|
<LuVideoOff className="mb-2 size-8 md:size-10" />
|
||||||
<p className="max-w-32 text-center text-sm md:max-w-40 md:text-base">
|
<p className="max-w-32 text-center text-sm md:max-w-40 md:text-base">
|
||||||
{t("cameraDisabled")}
|
{t("cameraOff")}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1048,7 +1048,7 @@ function FrigateCameraFeatures({
|
|||||||
Icon={enabledState == "ON" ? LuPower : LuPowerOff}
|
Icon={enabledState == "ON" ? LuPower : LuPowerOff}
|
||||||
isActive={enabledState == "ON"}
|
isActive={enabledState == "ON"}
|
||||||
title={
|
title={
|
||||||
enabledState == "ON" ? t("camera.disable") : t("camera.enable")
|
enabledState == "ON" ? t("camera.turnOff") : t("camera.turnOn")
|
||||||
}
|
}
|
||||||
onClick={() => sendEnabled(enabledState == "ON" ? "OFF" : "ON")}
|
onClick={() => sendEnabled(enabledState == "ON" ? "OFF" : "ON")}
|
||||||
disabled={debug}
|
disabled={debug}
|
||||||
@ -1489,7 +1489,7 @@ function FrigateCameraFeatures({
|
|||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<>
|
<>
|
||||||
<FilterSwitch
|
<FilterSwitch
|
||||||
label={t("cameraSettings.cameraEnabled")}
|
label={t("cameraSettings.camera")}
|
||||||
isChecked={enabledState == "ON"}
|
isChecked={enabledState == "ON"}
|
||||||
onCheckedChange={() =>
|
onCheckedChange={() =>
|
||||||
sendEnabled(enabledState == "ON" ? "OFF" : "ON")
|
sendEnabled(enabledState == "ON" ? "OFF" : "ON")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user