Explain template content fields and actions in bilingual editor

This commit is contained in:
Pigway
2026-10-08 21:49:54 +08:00
parent b90c4a700d
commit 3643fae86a
3 changed files with 61 additions and 4 deletions
+56
View File
@@ -58,3 +58,59 @@ Object.assign(window.MESSAGES.en,{
templateContentHelp:'This template displays formatted information and does not automatically choose gallery photos. Weather and dates update when rendering; the displayed image stays static until rendered and displayed again.',
templateWeatherHelp:'Leave weather blank to use Settings → Weather source automatically. Enter JSON only to override it manually.'
});
Object.assign(window.MESSAGES.zh,{
templateData:'画面内容',formEditor:'填写要出现在图片上的内容',
templateEditHelp:'这里编辑的是生成图片上的文字和照片,不是设备设置,也不会修改原照片。输入框内现有文字是默认内容,可以直接替换。',
templateGuideTitle:'这个模板会显示什么?',
guidePhotoText:'标题显示在顶部,所选照片显示在中间的大图区,正文显示在照片下方。它与照片数据源任务的底部水印布局不同。',
guideDashboard:'显示标题、日期、星期、天气、今日事项、一句话和底部照片区域。事项由你填写;不会自动读取私人日历。',
guideWeather:'显示标题、日期、当前天气和三天预报。默认从设置中的天气来源自动获取,不需要手填气温。',
guideCalendar:'显示标题、日期对应月份的日历和你填写的事项。它不是已经连接的外部日历。',
guideQuote:'显示标题、一句话和署名。现有句子是默认示例,可换成你想展示的文字。',
guidePoetry:'显示标题、诗名、作者、诗词正文和日期。可在上方选择每日自动选诗,或选择一首诗;填写诗词正文后使用自定义内容。',
guideAlert:'显示告警标题和正文。这里手动填写消息,不会自动检测 NAS 故障;自动告警需外部服务调用。',
helpTitle:'图片顶部标题,例如「我们的周末」。不是文件名。',
helpMessage:'你想显示的说明文字,例如「第一次一起去海边」。可换行。',
helpQuote:'图片中要展示的一句话,例如「把平凡的日子过成喜欢的样子」。',
helpAuthor:'这句话的作者或署名,例如「爸爸」。',
helpEvents:'每行一件事,例如「09:00 看牙医」。这是手动内容,不会自动同步日历。',
helpDate:'留空自动使用生成时的上海日期;指定日期请填 YYYY-MM-DD,例如 2026-10-08。',
helpWeekday:'留空使用生成时的上海星期;只有需要自定义文字时才填写。',
helpWeather:'留空自动获取已配置的天气。一般无需编辑;JSON 仅供高级用户覆盖数据。',
helpPoemTitle:'自定义诗词的诗名;未填写正文时,会由所选诗词自动提供。',
helpPoemAuthor:'自定义诗词的作者;未填写正文时,会由所选诗词自动提供。',
helpPoemLines:'自定义诗词正文,每行一句。留空时自动读取上方所选诗词。',
poem_title:'诗名',poem_author:'诗人',poem_lines:'诗词正文',
templateActionHelp:'生成预览:仅生成本地图片。保存默认数据:下次打开沿用这些内容,不会更新画框或已有任务。显示到画框:上传已预览的图片并切换显示。',
templateAutomationHelp:'需要每天更新?去「自动化」新建任务,内容类型选「模板」,选择同一模板。任务有自己的内容配置;自动日期和天气会在每次运行时读取。',
templatePreviewHint:'填写左侧内容后点击「生成预览」。这里会展示最终图片,确认后再点击「显示到画框」。',
helpProfile:'彩色保留颜色;灰度生成黑白灰图片。不会改变设备硬件模式。'
});
Object.assign(window.MESSAGES.en,{
templateData:'Image content',formEditor:'Content that appears in the generated image',
templateEditHelp:'Edit the text and photo used to create the image, rather than device settings. The original photo stays intact. Existing text is a default you can replace.',
templateGuideTitle:'What does this template display?',
guidePhotoText:'A title at the top, a large photo in the middle, and your message below. This differs from the bottom watermark used by photo-source jobs.',
guideDashboard:'Title, date, weekday, weather, your events, a quote and a lower photo area. Events are entered manually; private calendars are not connected automatically.',
guideWeather:'Title, date, current weather and a three-day forecast. Weather comes from the source configured in Settings; no manual temperature entry is needed.',
guideCalendar:'Title, a month grid for the selected date, and your events. This is not an already-connected external calendar.',
guideQuote:'Title, a quote and its author. Replace the default example with your own text.',
guidePoetry:'Title, poem title, author, verses and date. Choose daily automatic selection or a poem above. Enter verses to use custom content.',
guideAlert:'An alert title and message you enter. This does not automatically monitor NAS faults; automated alerts require an external caller.',
helpTitle:'The heading at the top of the image, such as Our weekend. This is not a filename.',
helpMessage:'Your message, such as Our first trip to the seaside. Line breaks are supported.',
helpQuote:'The sentence you want to display.',helpAuthor:'The author or signature, such as Dad.',
helpEvents:'One event per line, such as 09:00 Dentist. These are manual entries, not synchronized calendar events.',
helpDate:'Leave blank for the Shanghai date at render time, or use YYYY-MM-DD, such as 2026-10-08.',
helpWeekday:'Leave blank for the Shanghai weekday at render time; enter text only for a custom label.',
helpWeather:'Leave blank for configured weather. Usually no editing is needed; JSON is an advanced override.',
helpPoemTitle:'Custom poem title. The selected poem supplies this when verses are blank.',
helpPoemAuthor:'Custom poem author. The selected poem supplies this when verses are blank.',
helpPoemLines:'Custom verses, one per line. Leave blank to use the poem selected above.',
poem_title:'Poem title',poem_author:'Poet',poem_lines:'Verses',
templateActionHelp:'Generate preview: create a local image only. Save defaults: reuse this content next time, without updating the frame or existing jobs. Display on frame: upload and activate the previewed image.',
templateAutomationHelp:'For daily updates, create an Automation job with content type Template and select this template. Jobs have their own content settings; automatic dates and weather resolve on each run.',
templatePreviewHint:'Enter content on the left and select Generate preview. Inspect the final image here before selecting Display on frame.',
helpProfile:'Color preserves colors; grayscale creates a grayscale image. This does not change device hardware settings.'
});