Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
add translation for all image options
Nriverf6f5cc2ecb8f
diff --git a/src/public/app/widgets/type_widgets/options/images/images.js b/src/public/app/widgets/type_widgets/options/images/images.jsindex ca8f287101..8df6ecf20b 100644--- a/src/public/app/widgets/type_widgets/options/images/images.js+++ b/src/public/app/widgets/type_widgets/options/images/images.js@@ -1,4 +1,5 @@import OptionsWidget from "../options_widget.js";+import { t } from "../../../../services/i18n.js";const TPL = `<div class="options-section">@@ -9,28 +10,28 @@ const TPL = `}</style>- <h4>Images</h4>+ <h4>${t("images.images_section_title")}</h4><label><input class="download-images-automatically" type="checkbox" name="download-images-automatically">- Download images automatically for offline use.+ ${t("images.download_images_automatically")}</label>- <p>(pasted HTML can contain references to online images, Trilium will find those references and download the images so that they are available offline)</p>+ <p>${t("images.download_images_description")}</p><label><input class="image-compresion-enabled" type="checkbox" name="image-compression-enabled">- Enable image compression+ ${t("images.enable_image_compression")}</label><div class="image-compression-enabled-wraper"><div class="form-group">- <label>Max width / height of an image in pixels (image will be resized if it exceeds this setting).</label>+ <label>${t("images.max_image_dimensions")}</label><input class="image-max-width-height form-control options-number-input" type="number" min="1"></div><div class="form-group">- <label>JPEG quality (10 - worst quality, 100 best quality, 50 - 85 is recommended)</label>+ <label>${t("images.jpeg_quality_description")}</label><input class="image-jpeg-quality form-control options-number-input" min="10" max="100" type="number"></div></div>diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.jsonindex 287032340a..1a4ad0b56d 100644--- a/src/public/translations/cn/translation.json+++ b/src/public/translations/cn/translation.json@@ -1034,5 +1034,13 @@"wrap_lines": {"wrap_lines_in_code_notes": "代码笔记自动换行","enable_line_wrap": "启用自动换行(需要重新加载前端才会生效)"+ },+ "images": {+ "images_section_title": "图片",+ "download_images_automatically": "自动下载图片以供离线使用。",+ "download_images_description": "粘贴的 HTML 可能包含在线图片的引用,Trilium 会找到这些引用并下载图片,以便它们可以离线使用。",+ "enable_image_compression": "启用图片压缩",+ "max_image_dimensions": "图片的最大宽度/高度(超过此限制的图像将会被缩放)。",+ "jpeg_quality_description": "JPEG 质量(10 - 最差质量,100 最佳质量,建议为 50 - 85)"}}diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex f5c98b5789..6a9e6eb283 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1035,5 +1035,13 @@"wrap_lines": {"wrap_lines_in_code_notes": "Wrap lines in code notes","enable_line_wrap": "Enable Line Wrap (change might need a frontend reload to take effect)"+ },+ "images": {+ "images_section_title": "Images",+ "download_images_automatically": "Download images automatically for offline use.",+ "download_images_description": "Pasted HTML can contain references to online images, Trilium will find those references and download the images so that they are available offline.",+ "enable_image_compression": "Enable image compression",+ "max_image_dimensions": "Max width / height of an image in pixels (image will be resized if it exceeds this setting).",+ "jpeg_quality_description": "JPEG quality (10 - worst quality, 100 best quality, 50 - 85 is recommended)"}}