mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add translation for all image options
This commit is contained in:
parent
38f19e21f0
commit
f6f5cc2ecb
@ -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>
|
||||
|
@ -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)"
|
||||
}
|
||||
}
|
||||
|
@ -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)"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user