Frontend: Add translation keys

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-16 13:09:40 +02:00
parent f063b0ba1b
commit e73fafcac0
10 changed files with 48 additions and 48 deletions

View file

@ -3,7 +3,7 @@
<v-card raised elevation="24">
<v-card-title primary-title>
<div>
<h3 class="headline mb-0"><translate>Add Account</translate></h3>
<h3 class="headline mb-0"><translate key="Add Account">Add Account</translate></h3>
</div>
</v-card-title>
<v-container fluid class="pt-0 pb-2 pr-2 pl-2">

View file

@ -7,14 +7,14 @@
<v-icon size="54" color="grey lighten-1">delete_outline</v-icon>
</v-flex>
<v-flex xs9 text-xs-left align-self-center>
<div class="subheading pr-1"><translate>Are you sure you want to delete this account?</translate></div>
<div class="subheading pr-1"><translate key="Are you sure you want to delete this account?">Are you sure you want to delete this account?</translate></div>
</v-flex>
<v-flex xs12 text-xs-right class="pt-3">
<v-btn @click.stop="cancel" depressed color="secondary-light" class="action-cancel">
<translate>Cancel</translate>
<translate key="Cancel">Cancel</translate>
</v-btn>
<v-btn depressed dark color="secondary-dark" @click.stop="confirm"
class="action-confirm"><translate>Delete</translate>
class="action-confirm"><translate key="Delete">Delete</translate>
</v-btn>
</v-flex>
</v-layout>

View file

@ -7,14 +7,14 @@
<v-icon size="54" color="grey lighten-1">delete_outline</v-icon>
</v-flex>
<v-flex xs9 text-xs-left align-self-center>
<div class="subheading pr-1"><translate>Are you sure you want to delete these albums?</translate></div>
<div class="subheading pr-1"><translate key="Are you sure you want to delete these albums?">Are you sure you want to delete these albums?</translate></div>
</v-flex>
<v-flex xs12 text-xs-right class="pt-3">
<v-btn @click.stop="cancel" depressed color="grey lighten-3" class="p-photo-dialog-cancel">
<translate>Cancel</translate>
<translate key="Cancel">Cancel</translate>
</v-btn>
<v-btn color="blue-grey lighten-2" depressed dark @click.stop="confirm"
class="p-photo-dialog-confirm"><translate>Delete</translate>
class="p-photo-dialog-confirm"><translate key="Delete">Delete</translate>
</v-btn>
</v-flex>
</v-layout>

View file

@ -7,14 +7,14 @@
<v-icon size="54" color="grey lighten-1">delete_outline</v-icon>
</v-flex>
<v-flex xs9 text-xs-left align-self-center>
<div class="subheading pr-1"><translate>Are you sure you want to delete these labels?</translate></div>
<div class="subheading pr-1"><translate key="Are you sure you want to delete these labels?">Are you sure you want to delete these labels?</translate></div>
</v-flex>
<v-flex xs12 text-xs-right class="pt-3">
<v-btn @click.stop="cancel" depressed color="grey lighten-3" class="p-photo-dialog-cancel">
<translate>Cancel</translate>
<translate key="Cancel">Cancel</translate>
</v-btn>
<v-btn color="blue-grey lighten-2" depressed dark @click.stop="confirm"
class="p-photo-dialog-confirm"><translate>Delete</translate>
class="p-photo-dialog-confirm"><translate key="Delete">Delete</translate>
</v-btn>
</v-flex>
</v-layout>

View file

@ -28,7 +28,7 @@
</v-flex>
<v-flex xs12 text-xs-right class="pt-3">
<v-btn @click.stop="cancel" depressed color="grey lighten-3" class="p-photo-dialog-cancel">
<translate>Cancel</translate>
<translate key="Cancel">Cancel</translate>
</v-btn>
<v-btn color="blue-grey lighten-2" depressed dark @click.stop="confirm"
class="p-photo-dialog-confirm">

View file

@ -7,14 +7,14 @@
<v-icon size="54" color="grey lighten-1">archive</v-icon>
</v-flex>
<v-flex xs9 text-xs-left align-self-center>
<div class="subheading pr-1"><translate>Are you sure you want to archive these photos?</translate></div>
<div class="subheading pr-1"><translate key="Are you sure">Are you sure you want to archive these photos?</translate></div>
</v-flex>
<v-flex xs12 text-xs-right class="pt-3">
<v-btn @click.stop="cancel" depressed color="grey lighten-3" class="p-photo-dialog-cancel">
<translate>Cancel</translate>
<translate key="Cancel">Cancel</translate>
</v-btn>
<v-btn color="blue-grey lighten-2" depressed dark @click.stop="confirm"
class="p-photo-dialog-confirm"><translate>Archive</translate>
class="p-photo-dialog-confirm"><translate key="Archive">Archive</translate>
</v-btn>
</v-flex>
</v-layout>

View file

@ -40,7 +40,7 @@
</v-flex>
<v-flex xs12 text-xs-right class="pt-3">
<v-btn @click.stop="cancel" depressed color="grey lighten-3" class="action-cancel">
<translate>Cancel</translate>
<translate key="Cancel">Cancel</translate>
</v-btn>
<v-btn color="blue-grey lighten-2" depressed dark @click.stop="setup"
class="action-setup" v-if="noAccounts">

View file

@ -7,7 +7,7 @@
<v-icon>close</v-icon>
</v-btn>
<v-toolbar-title>
<translate>Upload</translate>
<translate key="Upload">Upload</translate>
</v-toolbar-title>
</v-toolbar>
<v-container grid-list-xs text-xs-left fluid>
@ -30,7 +30,7 @@
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>
<translate>Press</translate> <kbd>enter</kbd> <translate>to create a new album.</translate>
<translate key="Press enter to create a new album.">Press enter to create a new album.</translate>
</v-list-tile-title>
</v-list-tile-content>
</v-list-tile>
@ -48,12 +48,12 @@
</v-chip>
</template>
</v-combobox>
<span v-else-if="failed"><translate>Upload failed</translate></span>
<span v-else-if="failed"><translate key="Upload failed">Upload failed</translate></span>
<span v-else-if="total > 0 && completed < 100">
<translate>Uploading</translate> {{current}} <translate>of</translate> {{total}}...
<translate key="Uploading">Uploading</translate> {{current}} <translate key="of">of</translate> {{total}}...
</span>
<span v-else-if="indexing"><translate>Upload complete. Indexing...</translate></span>
<span v-else-if="completed === 100"><translate>Done.</translate></span>
<span v-else-if="indexing"><translate key="Upload complete">Upload complete. Indexing...</translate></span>
<span v-else-if="completed === 100"><translate key="Done">Done.</translate></span>
</p>
@ -62,12 +62,12 @@
<p class="body-1" v-if="safe">
<translate>Please don't upload photos containing offensive content. Uploads
<translate key="nsfw-info">Please don't upload photos containing offensive content. Uploads
that may contain such images will be rejected automatically.</translate>
</p>
<p class="body-1" v-if="review">
<translate>Low-quality photos require a review before they appear in search results.</translate>
<translate key="review-info">Low-quality photos require a review before they appear in search results.</translate>
</p>
<v-btn
@ -77,7 +77,7 @@
depressed
@click.stop="uploadDialog()"
>
<translate>Upload</translate>
<translate key="Upload">Upload</translate>
<v-icon right dark>cloud_upload</v-icon>
</v-btn>
</v-container>

View file

@ -378,16 +378,16 @@
<v-flex xs12 text-xs-right class="pt-3" v-if="!disabled">
<v-btn @click.stop="close" depressed color="secondary-light"
class="p-photo-dialog-close">
<translate>Close</translate>
<translate key="Close">Close</translate>
</v-btn>
<v-btn color="secondary-dark" depressed dark @click.stop="save(false)"
class="p-photo-dialog-confirm action-approve">
<span v-if="$config.feature('review') && model.Quality < 3">Approve</span>
<span v-else><translate>Apply</translate></span>
<span v-if="$config.feature('review') && model.Quality < 3"><translate key="Approve">Approve</translate></span>
<span v-else><translate key="Apply">Apply</translate></span>
</v-btn>
<v-btn color="secondary-dark" depressed dark @click.stop="save(true)"
class="p-photo-dialog-confirm hidden-xs-only action-ok">
<span><translate>OK</translate></span>
<span><translate key="OK">OK</translate></span>
<v-icon right dark>done</v-icon>
</v-btn>
</v-flex>

View file

@ -4,27 +4,27 @@
<table class="v-datatable v-table theme--light">
<tbody>
<tr>
<td><translate>UID</translate></td>
<td>UID</td>
<td>{{ model.UID | uppercase }}</td>
</tr>
<tr v-if="model.DocumentID">
<td><translate>Document ID</translate></td>
<td>Document ID</td>
<td>{{ model.DocumentID | uppercase }}</td>
</tr>
<tr>
<td><translate>Type</translate></td>
<td><translate key="Type">Type</translate></td>
<td>{{ model.Type | capitalize }}</td>
</tr>
<tr v-if="model.Path">
<td><translate>Path</translate></td>
<td><translate key="Path">Path</translate></td>
<td>{{ model.Path }}</td>
</tr>
<tr>
<td><translate>Name</translate></td>
<td><translate key="Name">Name</translate></td>
<td>{{ model.Name }}</td>
</tr>
<tr v-if="model.OriginalName">
<td><translate>Original Name</translate></td>
<td><translate key="Original Name">Original Name</translate></td>
<td>
<v-text-field
@change="save"
@ -35,15 +35,15 @@
</td>
</tr>
<tr>
<td><translate>Title</translate></td>
<td><translate key="Title">Title</translate></td>
<td>{{ model.Title }}</td>
</tr>
<tr v-if="model.TitleSrc">
<td><translate>Title Source</translate></td>
<td><translate key="Title Source">Title Source</translate></td>
<td>{{ model.TitleSrc | capitalize }}</td>
</tr>
<tr v-if="model.TakenAcc">
<td><translate>Year</translate></td>
<td><translate key="Year">Year</translate></td>
<td>
<v-text-field
flat solo dense hide-details v-model="model.Year"
@ -53,7 +53,7 @@
</td>
</tr>
<tr v-if="model.TakenAcc">
<td><translate>Month</translate></td>
<td><translate key="Month">Month</translate></td>
<td>
<v-select
label="Month"
@ -68,22 +68,22 @@
</td>
</tr>
<tr>
<td><translate>Quality Score</translate></td>
<td><translate key="Quality Score">Quality Score</translate></td>
<td>
<v-rating v-model="model.Quality" :length="7" readonly small></v-rating>
</td>
</tr>
<tr>
<td><translate>Resolution</translate></td>
<td><translate key="Resolution">Resolution</translate></td>
<td>{{ model.Resolution }} MP</td>
</tr>
<tr v-if="model.CameraSerial">
<td><translate>Camera Serial</translate></td>
<td><translate key="Camera Serial">Camera Serial</translate></td>
<td>{{ model.CameraSerial }}
</td>
</tr>
<tr>
<td><translate>Favorite</translate></td>
<td><translate key="Favorite">Favorite</translate></td>
<td>
<v-switch
@change="save"
@ -94,7 +94,7 @@
</td>
</tr>
<tr>
<td><translate>Private</translate></td>
<td><translate key="Private">Private</translate></td>
<td>
<v-switch
@change="save"
@ -105,31 +105,31 @@
</td>
</tr>
<tr>
<td><translate>Created</translate></td>
<td><translate key="Created">Created</translate></td>
<td>
{{ model.CreatedAt | luxon:format('http') }}
</td>
</tr>
<tr>
<td><translate>Updated</translate></td>
<td><translate key="Updated">Updated</translate></td>
<td>
{{ model.UpdatedAt | luxon:format('http') }}
</td>
</tr>
<tr v-if="model.EditedAt">
<td><translate>Edited</translate></td>
<td><translate key="Edited">Edited</translate></td>
<td>
{{ model.EditedAt | luxon:format('http') }}
</td>
</tr>
<tr v-if="model.MaintainedAt">
<td><translate>Maintained</translate></td>
<td><translate key="Maintained">Maintained</translate></td>
<td>
{{ model.MaintainedAt | luxon:format('http') }}
</td>
</tr>
<tr v-if="model.DeletedAt">
<td><translate>Archived</translate></td>
<td><translate key="Archived">Archived</translate></td>
<td>
{{ model.DeletedAt | luxon:format('http') }}
</td>