Skip to content

Commit

Permalink
Merge branch 'translations'
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanh7 committed Mar 5, 2024
2 parents 69926e7 + 0229294 commit 3c5d476
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions web/src/components/TimelineSummary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import DeliveryTruckIcon from '../icons/DeliveryTruck';
import ZoneIcon from '../icons/Zone';
import { useMemo, useState } from 'preact/hooks';
import Button from './Button';
import { FormattedMessage } from 'react-intl';

export default function TimelineSummary({ event, onFrameSelected }) {
const { data: eventTimeline } = useSWR([
Expand Down Expand Up @@ -107,12 +108,12 @@ export default function TimelineSummary({ event, onFrameSelected }) {
{timeIndex >= 0 ? (
<div className="m-2 max-w-md self-center">
<div className="flex justify-start">
<div className="text-lg flex justify-between py-4">Bounding boxes may not align</div>
<div className="text-lg flex justify-between py-4"><FormattedMessage id="Bounding boxes may not align" defaultMessage="Bounding boxes may not align" /></div>
<Button
className="rounded-full"
type="text"
color="gray"
aria-label=" Disclaimer: This data comes from the detect feed but is shown on the recordings, it is unlikely that the
aria-label="Disclaimer: This data comes from the detect feed but is shown on the recordings, it is unlikely that the
streams are perfectly in sync so the bounding box and the footage will not line up perfectly. The annotation_offset field can be used to adjust this."
>
<About className="w-4" />
Expand Down
6 changes: 4 additions & 2 deletions web/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"Before": "之前",
"Birdseye": "鸟瞰",
"Bounding box": "目标识别框",
"Bounding boxes may not align": "边界框可能不对齐",
"CPU %": "处理器(%)",
"Cameras": "摄像头",
"Cancel": "取消",
Expand Down Expand Up @@ -40,6 +41,7 @@
"Decoder %": "解码器(%)",
"Detect": "识别",
"Detectors": "识别器",
"Disclaimer: This data comes from the detect feed but is shown on the recordings, it is unlikely that the streams are perfectly in sync so the bounding box and the footage will not line up perfectly. The annotation_offset field can be used to adjust this.": "免责声明:这些数据来自检测源,但显示在录像中,流之间的同步可能不完美,因此边界框和录像不会完全对齐。可以使用 annotation_offset 字段进行调整。",
"Displaying at": "显示帧率",
"Documentation": "文档",
"Duration:": "持续时间:",
Expand Down Expand Up @@ -82,8 +84,6 @@
"MON": "星期一",
"March": "三月",
"Mask & Zone creator": "监控区和屏蔽区绘制器",
"This tool can help you create masks & zones for your {camera} camera.": "此工具可以帮助您为您的摄像机“{camera}”创建监控区和屏蔽区",
"When done, copy each mask configuration into your {file} file restart your Frigate instance to save your changes.": "完成编辑后,您必须把每个区域的配置复制到您的{file}文件中并重启frigate,方可使配置生效。",
"Masks": "屏蔽区",
"May": "五月",
"Memory": "内存",
Expand Down Expand Up @@ -148,6 +148,7 @@
"TUE": "星期二",
"This Month": "本月",
"This can take up to one minute, please wait before reloading the page.": "这可能需要最多一分钟,请等待页面重新加载。",
"This tool can help you create masks & zones for your {camera} camera.": "此工具可以帮助您为您的摄像机“{camera}”创建监控区和屏蔽区",
"Timelapse": "时移",
"Timestamp": "时间戳",
"Today": "今天",
Expand All @@ -166,6 +167,7 @@
"Video:": "视频:",
"WED": "星期三",
"Warning": "警告",
"When done, copy each mask configuration into your {file} file restart your Frigate instance to save your changes.": "完成编辑后,您必须把每个区域的配置复制到您的{file}文件中并重启frigate,方可使配置生效。",
"Yes": "是的",
"Yesterday": "昨天",
"Zones": "监控区",
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/Export.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default function Export() {
<option value="select"><FormattedMessage id="Select A Camera" defaultMessage="Select A Camera" /></option>
{Object.keys(config?.cameras || {}).map((item) => (
<option key={item} value={item}>
{item.replaceAll('_', ' ')}
<FormattedMessage id={item} defaultMessage={item.replaceAll('_', ' ')} />
</option>
))}
</select>
Expand Down

0 comments on commit 3c5d476

Please sign in to comment.