Skip to content

Commit 9d0c0af

Browse files
authoredOct 31, 2021
Merge pull request #371 from sbs20/staging
Locales (PT & TR), Alpine builder; doc
2 parents 89192b9 + 6e22649 commit 9d0c0af

15 files changed

+463
-62
lines changed
 

‎Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Builder image. Alpine doesn't have python which is required by node-sass
2-
FROM node:14-buster AS builder
1+
# Builder image.
2+
FROM node:14-alpine AS builder
33
ENV APP_DIR=/app
44
WORKDIR "$APP_DIR"
55

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ complicated installation.
4848
* Configurable overrides for all defaults as well as filters and formats
4949
* Multipage scanning (with collation for double sided scans)
5050
* International translations: Czech, Dutch, French, German, Italian, Mandarin,
51-
Polish, Portuguese (BR), Russian, Spanish;
51+
Polish, Portuguese (PT & BR), Russian, Spanish, Turkish;
5252
[Help requested](https://github.com/sbs20/scanservjs/issues/154)
5353
* Light and dark mode
5454
* Responsive design

‎docs/integration.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
It's not uncommon to want to integrate scanservjs with other software - you may
44
wish to upload scans to Dropbox, paperless-ng or some other location. The
5-
possibilities are endless and deep integration into the UI would add cruft for
5+
possibilities are endless but deep integration into the UI would add cruft for
66
the vast majority of users.
77

88
Thankfully, the files just end up in a location on your filesystem so you are
@@ -22,6 +22,39 @@ about paperless-ng resulted in
2222
You could integrate with Dropbox using
2323
[Dropbox-Uploader](https://github.com/andreafabrizi/Dropbox-Uploader)
2424

25+
## Recipe for Scan2Cloud
26+
27+
This recipe covers all major cloud providers such as Amazon, Dropbox, Google
28+
(Drive/Photos), Microsoft (Azure Blob Storage, OneDrive), Nextcloud (via
29+
WebDav), a network share of your choice (S/FTP) and many
30+
[more](https://rclone.org/overview/) by using [Rclone](https://rclone.org/).
31+
32+
1. Install [Rclone](https://rclone.org/) as described
33+
[here](https://rclone.org/install/)
34+
2. Configure your [Cloud Provider or Remote](https://rclone.org/overview/)
35+
accordingly, for example [Nextcloud via Webdav](https://rclone.org/webdav/)
36+
or [Google Drive](https://rclone.org/drive/)
37+
38+
Now you have a choice. If you want the update to occur on the scan itself then
39+
you need to integrate into the pipeline. Alternatively, sync the output
40+
directory itself and use either inotify or cron. If you want to embed into the
41+
pipeline then something like the following may help:
42+
43+
```javascript
44+
config.pipelines.push({
45+
extension: 'pdf',
46+
description: 'PDF | Scan2Cloud ⇒ Your_Configured_Provider_or_Remote ',
47+
get commands() {
48+
return [
49+
'convert @- -quality 92 tmp-%04d.jpg && ls tmp-*.jpg',
50+
'convert @- pdf:-',
51+
`rclone copy *.pdf YOUR_PROVIDER:/path/to/folder`,
52+
'ls scan_*.*'
53+
];
54+
}
55+
});
56+
```
57+
2558
## Scan2Mail
2659

2760
1. Setup and configure [msmtp](https://wiki.debian.org/msmtp) and msmtp-mta as

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scanservjs",
3-
"version": "2.18.0",
3+
"version": "2.18.1",
44
"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.",
55
"scripts": {
66
"clean": "rm -rf ./dist",

‎packages/client/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scanservjs",
3-
"version": "2.18.0",
3+
"version": "2.18.1",
44
"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.",
55
"author": "Sam Strachan",
66
"scripts": {

‎packages/client/src/classes/constants.js

+2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ const Constants = {
2727
'it',
2828
'nl',
2929
'pl',
30+
'pt',
3031
'pt-BR',
3132
'ru',
33+
'tr',
3234
'zh',
3335
'test'
3436
],

‎packages/client/src/locales/cs.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@
149149
"contrast": "Kontrast",
150150
"message:loading-devices": "Načítání zařízení...",
151151
"message:no-devices": "Nebyla nalezena žádná zařízení",
152-
"message:deleted-preview": "Odstranit náhled",
153-
"message:turn-documents": "Obrátit dokumenty",
154-
"message:preview-of-page": "Náhled strany"
152+
"message:deleted-preview": "Náhled byl odstraněn",
153+
"message:turn-documents": "Obraťte skenované dokumenty",
154+
"message:preview-of-page": "Náhled strany č."
155155
},
156156

157157
"settings": {

‎packages/client/src/locales/en.json

+2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@
182182
"it": "Italiano",
183183
"nl": "Nederlands",
184184
"pl": "Polski",
185+
"pt": "Portuguese (Portugal)",
185186
"pt-BR": "Portuguese (Brazilian)",
186187
"ru": "Russian",
188+
"tr": "Türkçe",
187189
"zh": "简体中文",
188190
"test": "Test"
189191
}

‎packages/client/src/locales/pt-BR.json

+44-46
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@
44
},
55

66
"about": {
7-
"main": "scanservjs é uma interface via web simplea. Permite compartilhar via rede um ou mais scanners (pelo SANE) sem precisar instalação local. Permite gravar nos formatos TIF, JPG, PNG, PDF, y TXT (com Tesseract OCR) com diversas configurações de compressão, configuráveis. Suporta digitalizar multipágina e todos dispositivos SANE compatíveis.",
7+
"main": "scanservjs é uma interface via web simples. Permite compartilhar via rede um ou mais scanners (via SANE) sem precisar instalação local. Permite gravar nos formatos TIF, JPG, PNG, PDF e TXT (com Tesseract OCR) com diversas configurações de compressão. Suporta digitalização multipágina e todos dispositivos SANE compatíveis.",
88
"issue": "Relatar uma questão ou ver código fonte:",
9-
"system-info": "System information"
9+
"system-info": "Informação de sistema"
1010
},
1111

1212
"colors": {
1313
"accent-4": "Default",
14-
"red": "Red",
15-
"pink": "Pink",
16-
"purple": "Purple",
17-
"deep-purple": "Deep purple",
18-
"indigo": "Indigo",
19-
"blue": "Blue",
20-
"light-blue": "Light blue",
21-
"cyan": "Cyan",
22-
"teal": "Teal",
23-
"green": "Green",
24-
"light-green": "Light green",
25-
"lime": "Lime",
26-
"yellow": "Yellow",
27-
"amber": "Amber",
28-
"orange": "Orange",
29-
"deep-orange": "Deep orange",
30-
"brown": "Brown",
31-
"blue-grey": "Blue grey",
32-
"grey": "Grey"
14+
"red": "Vermelho",
15+
"pink": "Rosa",
16+
"purple": "Roxo",
17+
"deep-purple": "Roxo escuro",
18+
"indigo": "Índigo",
19+
"blue": "Azul",
20+
"light-blue": "Azul claro",
21+
"cyan": "Ciano",
22+
"teal": "Azul petróleo",
23+
"green": "Verde",
24+
"light-green": "Verde claro",
25+
"lime": "Lima",
26+
"yellow": "Amarelo",
27+
"amber": "Âmbar",
28+
"orange": "Laranja",
29+
"deep-orange": "Laranja escuro",
30+
"brown": "Castanho",
31+
"blue-grey": "Azul acinzentado",
32+
"grey": "Cinza"
3333
},
3434

3535
"batch-dialog": {
@@ -43,15 +43,15 @@
4343
"filename": "Nome do arquivo",
4444
"date": "Data",
4545
"size": "Tamanho",
46-
"items-per-page": "Files per page",
47-
"items-per-page-all": "All",
46+
"items-per-page": "Itens por página",
47+
"items-per-page-all": "Todos",
4848
"message:deleted": "Excluído {0}",
49-
"message:renamed": "File renamed",
50-
"button:delete-selected": "Delete Selected",
51-
"dialog:rename": "Change file name",
52-
"dialog:rename-cancel": "Cancel",
53-
"dialog:rename-save": "Save",
54-
"actions": "Actions"
49+
"message:renamed": "Arquivo renomeado",
50+
"button:delete-selected": "Deletar seleccionado",
51+
"dialog:rename": "Mudar nome arquivo",
52+
"dialog:rename-cancel": "Cancelar",
53+
"dialog:rename-save": "Guardar",
54+
"actions": "Ações"
5555
},
5656

5757
"navigation": {
@@ -78,10 +78,9 @@
7878

7979
"mode": {
8080
"color": "Cor",
81-
"halftone": "Meioton",
81+
"halftone": "Meio-tom",
8282
"gray": "Cinza",
83-
"lineart": "Artedelinha",
84-
83+
"lineart": "Arte linear",
8584
"24bitcolor":"@:mode.color",
8685
"black & white": "@:mode.lineart",
8786
"gray(error diffusion)": "@:mode.halftone",
@@ -91,13 +90,12 @@
9190

9291
"source": {
9392
"flatbed": "Flatbed",
94-
"adf": "Automatic Document Feeder",
93+
"adf": "Alimentador Automático de Documento",
9594
"auto": "Auto",
96-
"left-aligned": "Left Aligned",
97-
"centrally-aligned": "Centrally Aligned",
95+
"left-aligned": "Alinhamento à Esquerda",
96+
"centrally-aligned": "Alinhamento ao Centro",
9897
"duplex": "Duplex",
9998
"transparency unit": "Transparency Unit",
100-
10199
"automatic document feeder": "@:source.adf",
102100
"automatic document feeder(left aligned)": "@:source.adf (@:source.left-aligned)",
103101
"automatic document feeder(left aligned,duplex)": "@:source.adf (@:source.left-aligned, @:source.duplex)",
@@ -122,8 +120,8 @@
122120
"ledger": "Ledger",
123121
"junior-legal": "Junior legal",
124122
"half-letter": "Half letter",
125-
"portrait": "Portrait",
126-
"landscape": "Landscape"
123+
"portrait": "Retrato",
124+
"landscape": "Paisagem"
127125
},
128126

129127
"scan": {
@@ -162,14 +160,14 @@
162160
"theme": "Visual",
163161
"theme:description": "Visual. Se usa o tema System e muda, precisa recarregar a página.",
164162
"theme:system": "System",
165-
"theme:light": "Light",
166-
"theme:dark": "Dark",
167-
"color": "Colour",
168-
"color:description": "Colour. This will change the colour of the top app bar.",
169-
"devices": "Devices and storage",
170-
"reset:description": "Clears stored scanner devices and forces a reload",
163+
"theme:light": "Claro",
164+
"theme:dark": "Escuro",
165+
"color": "Cor",
166+
"color:description": "Cor. Irá mudar a cor da barra de navegação.",
167+
"devices": "Dispositivos e armazenamento",
168+
"reset:description": "Limpa scanner e força um refresh",
171169
"reset": "Reestablecer",
172-
"clear-storage:description": "Clears local storage of any cached parameters",
173-
"clear-storage": "Clear"
170+
"clear-storage:description": "Limpa o armazenamento local de qualquer parâmetro cacheado",
171+
"clear-storage": "Limpar"
174172
}
175173
}

0 commit comments

Comments
 (0)