diff --git a/docs/config.md b/docs/config.md index ed43a9d4..864e540d 100644 --- a/docs/config.md +++ b/docs/config.md @@ -14,8 +14,9 @@ The two things you can modify are: * `devices`: The device definitions which are reported by SANE which include scanner dimensions and geometry, modes, resolutions and sources. -TL;DR; copy `./config/config.default.js` to `config/config.local.js` and -override the sections you want. +TL;DR; copy `./config/config.default.js` to `config/config.local.js`, override +the sections you want and then restart the app +`sudo systemctl restart scanservjs.service` If you are using docker, then you will want to map the configuration directory e.g. `-v /my/local/path:/app/config`. @@ -29,6 +30,8 @@ two functions at different stages in the processing: * `afterDevices(devices)`: whenever the devices are read, the result is passed to this function before being used. * See [example source](../server/config/config.default.js) for more options. +* Please note that the config file only gets read at start-up - so if you make + changes, you will need to restart. ## Example file diff --git a/docs/screen0.jpg b/docs/screen0.jpg index 6c0529f3..1841e785 100644 Binary files a/docs/screen0.jpg and b/docs/screen0.jpg differ diff --git a/docs/screen0.png b/docs/screen0.png deleted file mode 100644 index 1c044a28..00000000 Binary files a/docs/screen0.png and /dev/null differ diff --git a/docs/screen1.png b/docs/screen1.png deleted file mode 100644 index fb56ca62..00000000 Binary files a/docs/screen1.png and /dev/null differ diff --git a/server/package-lock.json b/server/package-lock.json index 740eb19d..76c43e44 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -1,12 +1,12 @@ { "name": "scanservjs-server", - "version": "2.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "scanservjs-server", - "version": "2.12.1", + "version": "2.12.2", "license": "GPL-2.0", "dependencies": { "adm-zip": "^0.5.5", diff --git a/server/package.json b/server/package.json index 48af765f..ac4cc428 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "scanservjs-server", - "version": "2.12.1", + "version": "2.12.2", "description": "scanservjs is a simple web-based UI for SANE which allows you to share a scanner on a network without the need for drivers or complicated installation. scanserv does not do image conversion or manipulation (beyond the bare minimum necessary for the purposes of browser preview) or OCR.", "scripts": { "serve": "nodemon --exec 'vue-cli-service serve'", diff --git a/webui/src/locales/zh.json b/webui/src/locales/zh.json index a79cfdba..d6106dd9 100644 --- a/webui/src/locales/zh.json +++ b/webui/src/locales/zh.json @@ -4,31 +4,31 @@ }, "about": { - "main": "scanservjs 是一个基于网页的扫描仪UI。 它可以实现在局域网内共享一个或多个扫描仪(用SANE实现)而免去繁复的驱动安装。 扫描的文件可保存为 TIF, JPG, PNG, PDF 和 TXT (使用Tesseract OCR) 等格式,并可配置多种压缩率。 它亦支持多页扫描以及所有与SANE兼容的设备", - "issue": "反馈问题或查看源码" + "main": "scanservjs 是一个基于网页的扫描仪 UI 。 它(使用 SANE )实现了在局域网内共享一个或多个扫描仪而无需繁复的驱动安装。 可以配置多种压缩率将扫描的文件保存为 TIF, JPG, PNG, PDF 和 TXT (使用 Tesseract OCR )等格式。 它亦提供多页扫描功能并支持所有与 SANE 兼容的设备。", + "issue": "反馈问题或查看源码:" }, "colors": { - "accent-4": "Default", - "red": "Red", - "pink": "Pink", - "purple": "Purple", - "deep-purple": "Deep purple", - "indigo": "Indigo", - "blue": "Blue", - "light-blue": "Light blue", - "cyan": "Cyan", - "teal": "Teal", - "green": "Green", - "light-green": "Light green", - "lime": "Lime", - "yellow": "Yellow", - "amber": "Amber", - "orange": "Orange", - "deep-orange": "Deep orange", - "brown": "Brown", - "blue-grey": "Blue grey", - "grey": "Grey" + "accent-4": "默认", + "red": "红", + "pink": "桃红", + "purple": "紫", + "deep-purple": "绛紫", + "indigo": "靛", + "blue": "蓝", + "light-blue": "湖蓝", + "cyan": "青", + "teal": "苍", + "green": "绿", + "light-green": "草绿", + "lime": "绿黄", + "yellow": "黄", + "amber": "琥珀", + "orange": "橙", + "deep-orange": "橘", + "brown": "棕", + "blue-grey": "蓝灰", + "grey": "灰" }, "batch-dialog": { @@ -68,10 +68,10 @@ }, "mode": { - "color": "Colour", - "halftone": "Halftone", - "gray": "Grey", - "lineart": "Lineart", + "color": "彩色", + "halftone": "半调", + "gray": "灰度", + "lineart": "线性", "24bitcolor":"@:mode.color", "black & white": "@:mode.lineart", @@ -81,12 +81,12 @@ }, "source": { - "flatbed": "Flatbed", - "adf": "Automatic Document Feeder", - "auto": "Auto", - "left-aligned": "Left Aligned", - "centrally-aligned": "Centrally Aligned", - "duplex": "Duplex", + "flatbed": "稿台", + "adf": "自动进纸器", + "auto": "自动", + "left-aligned": "左对齐", + "centrally-aligned": "中间对齐", + "duplex": "双面", "automatic document feeder": "@:source.adf", "automatic document feeder(left aligned)": "@:source.adf (@:source.left-aligned)", @@ -101,7 +101,7 @@ "low-quality": "低画质", "uncompressed": "无压缩", "lzw-compressed": "LZW 压缩", - "ocr": "OCR", + "ocr": "OCR文字识别", "text-file": "文本文件" }, @@ -124,7 +124,7 @@ "left": "左边距", "width": "宽度", "height": "高度", - "paperSize": "Paper size", + "paperSize": "纸张尺寸", "brightness": "亮度", "contrast": "对比度", "message:loading-devices": "加载设备 ...", @@ -144,7 +144,7 @@ "theme:system": "系统默认", "theme:light": "浅色", "theme:dark": "深色", - "color": "Colour", - "color:description": "Colour. This will change the colour of the top app bar." + "color": "颜色", + "color:description": "切换顶部应用栏的颜色。" } -} \ No newline at end of file +}