Skip to content

Commit

Permalink
Merge pull request #159 from sbs20/development
Browse files Browse the repository at this point in the history
Localisation and minor fixes
  • Loading branch information
sbs20 authored Apr 1, 2021
2 parents e5c42cd + 36c0c6e commit f667f7e
Show file tree
Hide file tree
Showing 8 changed files with 197 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ complicated installation.
* Resolution
* Output formats (TIF, JPG, PNG, PDF and TXT with Tesseract OCR) with varying
compression settings
* Filters: Autolevels, Threshold, Blur
* Configurable overrides for all defaults as well as filters and formats
* Multipage scanning (with collation for double sided scans)
* Light and dark mode
* **NEW**: International translations (**help requested**)
* **NEW**: International translations: German; Spanish (**help requested**)

It supports any
[SANE compatible devices](http://www.sane-project.org/sane-supported-devices.html).

![screenshot](https://github.com/sbs20/scanservjs/raw/master/docs/screen0.png)

![screenshot](https://github.com/sbs20/scanservjs/raw/master/docs/screen1.png)

Copyright 2016-2021 [Sam Strachan](https://github.com/sbs20)

## Requirements
Expand Down
Binary file added docs/screen1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion 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.8.0",
"version": "2.8.1",
"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
2 changes: 2 additions & 0 deletions webui/src/classes/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const Constants = {
Version: process.env.VUE_APP_VERSION,

Locales: [
'de',
'en',
'es',
'test'
],

Expand Down
17 changes: 11 additions & 6 deletions webui/src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ $t('settings.theme:description') }}
</template>
<template v-slot:action>
<div style="max-width: 9rem;">
<div style="max-width: 10rem;">
<v-select :label="$t('settings.theme')" :items="themes" v-model="settings.theme" @change="reload"></v-select>
</div>
</template>
Expand All @@ -19,7 +19,7 @@
{{ $t('settings.locale:description') }}
</template>
<template v-slot:action>
<div style="max-width: 9rem;">
<div style="max-width: 10rem;">
<v-select :label="$t('settings.locale')" :items="locales" v-model="settings.locale" @change="reload"></v-select>
</div>
</template>
Expand Down Expand Up @@ -49,8 +49,13 @@ export default {
data() {
return {
settings: storage.settings,
locales: Constants.Locales,
themes: [
locales: Constants.Locales
};
},
computed: {
themes() {
return [
{
text: this.$t('settings.theme:system'),
value: Constants.Themes.System
Expand All @@ -63,8 +68,8 @@ export default {
text: this.$t('settings.theme:dark'),
value: Constants.Themes.Dark
}
]
};
];
}
},
watch: {
Expand Down
89 changes: 89 additions & 0 deletions webui/src/locales/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"global": {
"application-name": "scanservjs"
},

"about": {
"main": "scanservjs ist ein einfaches, web-basiertes UI für Scanner. Es erlaubt es, einen oder mehrere Scanner (mittels SANE) über das Netzwerk ohne Treiber oder komplizierte Installation freizugeben. Eingescannte Dokumente können als TIF, JPG, PNG, PDF und TXT (mit Tesseract OCR) in verschiedenen, konfigurierbaren Kompressionseinstellungen gespeichert werden. Neben allen SANE-kompatiblen Geräten, wird außerdem mehrseitiges Scannen unterstützt.",
"issue": "Melde Fehler oder wirf einen Blick auf den Quelltext:"
},

"batch-dialog": {
"btn-finish": "Fertig",
"btn-rescan": "Seite erneut scannen",
"btn-next": "Nächste Seite scannen"
},

"files": {
"filename": "Dateiname",
"date": "Datum",
"size": "Größe",
"message:deleted": "Gelöscht"
},

"navigation": {
"scan": "Scannen",
"files": "Dateien",
"settings": "Einstellungen",
"about": "Über",
"version": "Version"
},

"pipeline": {
"high-quality": "Hohe Qualität",
"medium-quality": "Mittlere Qualität",
"low-quality": "Geringe Qualität",
"uncompressed": "Unkomprimiert",
"lzw-compressed": "LZW komprimiert",
"ocr": "OCR (Texterkennung)",
"text-file": "Text-Datei"
},

"scan": {
"device": "Gerät",
"source": "Quelle",
"resolution": "Auflösung",
"mode": "Modus",
"dynamic-lineart": "Dynamic Lineart",
"dynamic-lineart:enabled": "Aktiviert",
"dynamic-lineart:disabled": "Deaktiviert",
"batch": "Mehrseitiges Scannen",
"batch:none": "Aus",
"batch:manual": "Manuell (mit Nachfrage)",
"batch:auto": "Automatisch (Dokumenteneinzug)",
"batch:auto-collate-standard": "Automatisch (Sortiert 1, 3... 4, 2)",
"batch:auto-collate-reverse": "Automatisch (umgekehrte Reihenfolge 1, 3... 2, 4)",
"filters": "Filter",
"filters:auto-level": "Automatische Farbjustierung",
"filters:threshold": "Schwellwert",
"filters:blur": "Weichzeichner",
"format": "Format",
"btn-preview": "Vorschau",
"btn-clear": "Leeren",
"btn-scan": "Scannen",
"btn-reset": "Zurücksetzen",
"top": "Oben",
"left": "Links",
"width": "Breite",
"height": "Höhe",
"brightness": "Helligkeit",
"contrast": "Kontrast",
"message:loading-devices": "Suche nach Geräten...",
"message:no-devices": "Keine Geräte gefunden",
"message:deleted-preview": "Vorschau gelöscht",
"message:turn-documents": "Dokumente umdrehen",
"message:preview-of-page": "Vorschau der Seite"
},

"settings": {
"title": "@:navigation.settings",
"behaviour-ui": "Verhalten und Erscheinungsbild",
"locale": "Sprache",
"locale:description": "Sprache auswählen",
"theme": "Design",
"theme:description": "Design. Wenn das Systemdesign geändert wurde, so muss die App neu geladen werden, damit die Änderung wirksam wird.",
"theme:system": "Systemdesign",
"theme:light": "Helles Design",
"theme:dark": "Dunkles Design"
}
}
89 changes: 89 additions & 0 deletions webui/src/locales/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"global": {
"application-name": "scanservjs"
},

"about": {
"main": "scanservjs es una interfaz gráfica simple y basada en web. Permite compartir uno o mas escáneres (utilizando SANE) en una red sin la necesidad de controladores adicionales o una instalación complicada. Permite guardar en formato TIF, JPG, PNG, PDF, y TXT (con Tesseract OCR) con varias configuraciones de compresión, todas ellas configurables. Soporta el escaneo multipágina y todos los dispositivos SANE compatibles.",
"issue": "Indicar una incidencia o ver el código fuente:"
},

"batch-dialog": {
"btn-finish": "Terminar",
"btn-rescan": "Reescanear página",
"btn-next": "Siguiente"
},

"files": {
"filename": "Nombre de fichero",
"date": "Fecha",
"size": "Tamaño",
"message:deleted": "Borrado"
},

"navigation": {
"scan": "Escanear",
"files": "Ficheros",
"settings": "Configuración",
"about": "Acerca de",
"version": "Versión"
},

"pipeline": {
"high-quality": "Calidad alta",
"medium-quality": "Calidad media",
"low-quality": "Calidad baja",
"uncompressed": "Sin compresión",
"lzw-compressed": "Compresión LZW",
"ocr": "OCR",
"text-file": "Fichero de texto"
},

"scan": {
"device": "Dispositivo",
"source": "Origen",
"resolution": "Resolución",
"mode": "Modo",
"dynamic-lineart": "Arte lineal dinámico",
"dynamic-lineart:enabled": "Activado",
"dynamic-lineart:disabled": "Desactivado",
"batch": "Lote",
"batch:none": "Nada",
"batch:manual": "Manual (con aviso)",
"batch:auto": "Auto (alimentador automático)",
"batch:auto-collate-standard": "Auto (ordenación 1, 3... 4, 2)",
"batch:auto-collate-reverse": "Auto (inversa 1, 3... 2, 4)",
"filters": "Filtros",
"filters:auto-level": "Autonivelar",
"filters:threshold": "Umbral",
"filters:blur": "Difuminar",
"format": "Formato",
"btn-preview": "Vista previa",
"btn-clear": "Limpiar",
"btn-scan": "Escanear",
"btn-reset": "Reestablecer",
"top": "Arriba",
"left": "Izquierda",
"width": "Anchura",
"height": "Altura",
"brightness": "Brillo",
"contrast": "Contraste",
"message:loading-devices": "Cargando dispositivos...",
"message:no-devices": "No se encuentran dispositivos",
"message:deleted-preview": "Vista previa eliminada",
"message:turn-documents": "Girar documentos",
"message:preview-of-page": "Vista previa de página"
},

"settings": {
"title": "@:navigation.settings",
"behaviour-ui": "Comportamiento e interfaz gráfica",
"locale": "Idioma",
"locale:description": "Elige tu idioma",
"theme": "Aspecto",
"theme:description": "Aspecto. Si utilizas el tema System y lo cambias, será necesario que recargues la aplicación.",
"theme:system": "System",
"theme:light": "Light",
"theme:dark": "Dark"
}
}

0 comments on commit f667f7e

Please sign in to comment.