Frontend: Add new translation tags to settings

This commit is contained in:
Theresa Gresch 2020-04-30 15:34:40 +02:00
parent 139e8acd64
commit 6a01d58e52

View file

@ -5,7 +5,7 @@
@submit.prevent="onChange">
<v-card flat tile class="mt-0 px-1 application">
<v-card-title primary-title class="pb-0">
<h3 class="body-2 mb-0">Library</h3>
<h3 class="body-2 mb-0"><translate>Library</translate></h3>
</v-card-title>
<v-card-actions>
@ -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 @@
<v-card flat tile class="mt-0 px-1 application">
<v-card-title primary-title class="pb-0">
<h3 class="body-2 mb-0">Features</h3>
<h3 class="body-2 mb-0"><translate>Features</translate></h3>
</v-card-title>
<v-card-actions>
@ -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 @@
<v-card flat tile class="px-1 application">
<v-card-title primary-title class="pb-2">
<h3 class="body-2 mb-0">User Interface</h3>
<h3 class="body-2 mb-0"><translate>User Interface</translate></h3>
</v-card-title>
<v-card-actions>
@ -242,7 +241,7 @@
<v-card flat tile class="mt-0 px-1 application" v-if="settings.features.places">
<v-card-title primary-title class="pb-2">
<h3 class="body-2 mb-0">Places</h3>
<h3 class="body-2 mb-0"><translate>Places</translate></h3>
</v-card-title>
<v-card-actions>
@ -286,7 +285,7 @@
<v-flex xs12 sm6 class="px-2 pb-2 body-1 text-xs-left text-sm-right">
A big <a href="https://docs.photoprism.org/en/latest/credits/" class="secondary-dark--text"
target="_blank">thank you</a> to everyone who made this possible!
target="_blank">thank you</a>to everyone who made this possible!
<br>
<a href="https://app.fossa.com/attribution/d068c7e2-586d-421a-86a4-f23104a408f9"
class="secondary-dark--text" target="_blank">
@ -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,
};