Skip to content

Commit

Permalink
Merge pull request #242 from sbs20/staging
Browse files Browse the repository at this point in the history
Mandarin + docs
  • Loading branch information
sbs20 authored May 8, 2021
2 parents 274732d + b4365b4 commit c8bf502
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 42 deletions.
7 changes: 5 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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

Expand Down
Binary file modified docs/screen0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/screen0.png
Binary file not shown.
Binary file removed docs/screen1.png
Binary file not shown.
4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -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'",
Expand Down
74 changes: 37 additions & 37 deletions webui/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -68,10 +68,10 @@
},

"mode": {
"color": "Colour",
"halftone": "Halftone",
"gray": "Grey",
"lineart": "Lineart",
"color": "彩色",
"halftone": "半调",
"gray": "灰度",
"lineart": "线性",

"24bitcolor":"@:mode.color",
"black & white": "@:mode.lineart",
Expand All @@ -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)",
Expand All @@ -101,7 +101,7 @@
"low-quality": "低画质",
"uncompressed": "无压缩",
"lzw-compressed": "LZW 压缩",
"ocr": "OCR",
"ocr": "OCR文字识别",
"text-file": "文本文件"
},

Expand All @@ -124,7 +124,7 @@
"left": "左边距",
"width": "宽度",
"height": "高度",
"paperSize": "Paper size",
"paperSize": "纸张尺寸",
"brightness": "亮度",
"contrast": "对比度",
"message:loading-devices": "加载设备 ...",
Expand All @@ -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": "切换顶部应用栏的颜色。"
}
}
}

0 comments on commit c8bf502

Please sign in to comment.