From 6a01d58e52fbf9200ed644c5a752e87ba66bd446 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Thu, 30 Apr 2020 15:34:40 +0200 Subject: [PATCH] Frontend: Add new translation tags to settings --- frontend/src/pages/settings/general.vue | 74 ++++++++++++++++--------- 1 file changed, 48 insertions(+), 26 deletions(-) diff --git a/frontend/src/pages/settings/general.vue b/frontend/src/pages/settings/general.vue index 465a8158a..5dc951a21 100644 --- a/frontend/src/pages/settings/general.vue +++ b/frontend/src/pages/settings/general.vue @@ -5,7 +5,7 @@ @submit.prevent="onChange"> -

Library

+

Library

@@ -18,7 +18,7 @@ v-model="settings.library.private" color="secondary-dark" :label="labels.private" - hint="Exclude photos marked as private from search results by default." + :hint="hints.private" prepend-icon="lock" persistent-hint > @@ -33,7 +33,7 @@ v-model="settings.library.review" color="secondary-dark" :label="labels.review" - hint="Low-quality photos require a review before they appear in search results." + :hint="hints.review" prepend-icon="remove_red_eye" persistent-hint > @@ -48,7 +48,7 @@ v-model="settings.library.group" color="secondary-dark" :label="labels.group" - hint="Files with sequential names like 'IMG_1234 (2)' or 'IMG_1234 copy 2' belong to the same photo." + :hint="hints.group" prepend-icon="photo_library" persistent-hint > @@ -63,8 +63,7 @@ v-model="settings.library.move" color="secondary-dark" :label="labels.move" - hint="Move files from import to originals to save storage. - Unsupported file types will never be deleted, they remain in their current location." + :hint="hints.move" prepend-icon="delete" persistent-hint > @@ -76,7 +75,7 @@ -

Features

+

Features

@@ -88,8 +87,8 @@ class="ma-0 pa-0" v-model="settings.features.places" color="secondary-dark" - label="Places" - hint="Search and display photos on a map." + :label="labels.places" + :hint="hints.places" prepend-icon="place" persistent-hint > @@ -103,8 +102,8 @@ class="ma-0 pa-0" v-model="settings.features.labels" color="secondary-dark" - label="Labels" - hint="Browse and edit image classification labels." + :label="labels.labels" + :hint="hints.labels" prepend-icon="label" persistent-hint > @@ -118,8 +117,8 @@ class="ma-0 pa-0" v-model="settings.features.import" color="secondary-dark" - label="Import" - hint="Imported files will be sorted by date and given a unique name." + :label="labels.import" + :hint="hints.import" prepend-icon="create_new_folder" persistent-hint > @@ -133,8 +132,8 @@ class="ma-0 pa-0" v-model="settings.features.archive" color="secondary-dark" - label="Archive" - hint="Hide photos that have been moved to archive." + :label="labels.archive" + :hint="hints.archive" prepend-icon="archive" persistent-hint > @@ -148,8 +147,8 @@ class="ma-0 pa-0" v-model="settings.features.upload" color="secondary-dark" - label="Upload" - hint="Add files to your library via Web Upload." + :label="labels.upload" + :hint="hints.upload" prepend-icon="cloud_upload" persistent-hint > @@ -163,8 +162,8 @@ class="ma-0 pa-0" v-model="settings.features.download" color="secondary-dark" - label="Download" - hint="Download single files and zip archives." + :label="labels.download" + :hint="hints.download" prepend-icon="cloud_download" persistent-hint > @@ -178,8 +177,8 @@ class="ma-0 pa-0" v-model="settings.features.edit" color="secondary-dark" - label="Edit" - hint="Change photo titles, locations and other metadata." + :label="labels.edit" + :hint="hints.edit" prepend-icon="edit" persistent-hint > @@ -193,8 +192,8 @@ class="ma-0 pa-0" v-model="settings.features.share" color="secondary-dark" - label="Share" - hint="Upload to WebDAV and other remote services." + :label="labels.share" + :hint="hints.share" prepend-icon="share" persistent-hint > @@ -206,7 +205,7 @@ -

User Interface

+

User Interface

@@ -242,7 +241,7 @@ -

Places

+

Places

@@ -286,7 +285,7 @@ A big thank you to everyone who made this possible! + target="_blank">thank youto everyone who made this possible!
@@ -322,6 +321,29 @@ group: this.$gettext("Group related files"), private: this.$gettext("Hide private content"), review: this.$gettext("Apply quality filter"), + places: this.$gettext("Places"), + labels: this.$gettext("Labels"), + import: this.$gettext("Import"), + archive: this.$gettext("Archive"), + upload: this.$gettext("Upload"), + download: this.$gettext("Download"), + edit: this.$gettext("Edit"), + share: this.$gettext("Share"), + }, + hints: { + private: this.$gettext("Exclude photos marked as private from search results by default."), + review: this.$gettext("Low-quality photos require a review before they appear in search results."), + group: this.$gettext("Files with sequential names like 'IMG_1234 (2)' or 'IMG_1234 copy 2' belong to the same photo."), + move: this.$gettext("Move files from import to originals to save storage. Unsupported file types will never be deleted, they remain in their current location."), + places: this.$gettext("Search and display photos on a map."), + labels: this.$gettext("Browse and edit image classification labels."), + import: this.$gettext("Imported files will be sorted by date and given a unique name."), + archive: this.$gettext("Hide photos that have been moved to archive."), + upload: this.$gettext("Add files to your library via Web Upload."), + download: this.$gettext("Download single files and zip archives."), + edit: this.$gettext("Change photo titles, locations and other metadata."), + share: this.$gettext("Upload to WebDAV and other remote services."), + }, busy: false, };