Frontend: Refactor gettext usage
This commit is contained in:
parent
a191d8dbed
commit
eae1555b27
24 changed files with 98 additions and 303 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.share"
|
||||
:title="$gettext('Share')"
|
||||
color="share"
|
||||
@click.stop="shareDialog()"
|
||||
:disabled="selection.length !== 1"
|
||||
|
@ -32,7 +32,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.edit"
|
||||
:title="$gettext('Edit')"
|
||||
color="edit"
|
||||
:disabled="selection.length !== 1"
|
||||
@click.stop="editDialog()"
|
||||
|
@ -42,7 +42,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.download"
|
||||
:title="$gettext('Download')"
|
||||
color="download"
|
||||
@click.stop="download()"
|
||||
class="action-download"
|
||||
|
@ -53,7 +53,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.clone"
|
||||
:title="$gettext('Add to album')"
|
||||
color="album"
|
||||
:disabled="selection.length === 0"
|
||||
@click.stop="dialog.album = true"
|
||||
|
@ -64,7 +64,7 @@
|
|||
<v-btn
|
||||
fab dark small
|
||||
color="remove"
|
||||
:title="labels.delete"
|
||||
:title="$gettext('Delete')"
|
||||
@click.stop="dialog.delete = true"
|
||||
:disabled="selection.length === 0"
|
||||
class="action-delete"
|
||||
|
@ -109,14 +109,6 @@
|
|||
album: false,
|
||||
edit: false,
|
||||
},
|
||||
labels: {
|
||||
edit: this.$gettext("Edit"),
|
||||
share: this.$gettext("Share"),
|
||||
download: this.$gettext("Download"),
|
||||
clone: this.$gettext("Add to album"),
|
||||
delete: this.$gettext("Delete"),
|
||||
},
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -9,34 +9,34 @@
|
|||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn icon @click.stop="refresh" class="hidden-xs-only action-reload" :title="titles.reload">
|
||||
<v-btn icon @click.stop="refresh" class="hidden-xs-only action-reload" :title="$gettext('Reload')">
|
||||
<v-icon>refresh</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="dialog.edit = true" class="action-edit" :title="titles.edit">
|
||||
<v-btn icon @click.stop="dialog.edit = true" class="action-edit" :title="$gettext('Edit')">
|
||||
<v-icon>edit</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="dialog.share = true" v-if="$config.feature('share')" class="action-share" :title="titles.share">
|
||||
<v-btn icon @click.stop="dialog.share = true" v-if="$config.feature('share')" class="action-share" :title="$gettext('Share')">
|
||||
<v-icon>share</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="download" v-if="$config.feature('download')" class="hidden-xs-only action-download" :title="titles.download">
|
||||
<v-btn icon @click.stop="download" v-if="$config.feature('download')" class="hidden-xs-only action-download" :title="$gettext('Download')">
|
||||
<v-icon>get_app</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon v-if="settings.view === 'cards'" @click.stop="setView('list')" :title="titles.view">
|
||||
<v-btn icon v-if="settings.view === 'cards'" @click.stop="setView('list')" :title="$gettext('Toggle View')">
|
||||
<v-icon>view_list</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon v-else-if="settings.view === 'list'" @click.stop="setView('mosaic')" :title="titles.view">
|
||||
<v-btn icon v-else-if="settings.view === 'list'" @click.stop="setView('mosaic')" :title="$gettext('Toggle View')">
|
||||
<v-icon>view_comfy</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon v-else @click.stop="setView('cards')" :title="titles.view">
|
||||
<v-btn icon v-else @click.stop="setView('cards')" :title="$gettext('Toggle View')">
|
||||
<v-icon>view_column</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="showUpload()" v-if="!$config.values.readonly && $config.feature('upload')"
|
||||
class="hidden-sm-and-down action-upload" :title="titles.upload">
|
||||
class="hidden-sm-and-down action-upload" :title="$gettext('Upload')">
|
||||
<v-icon>cloud_upload</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
@ -116,25 +116,6 @@ export default {
|
|||
upload: false,
|
||||
edit: false,
|
||||
},
|
||||
labels: {
|
||||
title: this.$gettext("Album Name"),
|
||||
description: this.$gettext("Description"),
|
||||
search: this.$gettext("Search"),
|
||||
view: this.$gettext("View"),
|
||||
country: this.$gettext("Country"),
|
||||
camera: this.$gettext("Camera"),
|
||||
sort: this.$gettext("Sort Order"),
|
||||
category: this.$gettext("Category"),
|
||||
},
|
||||
titles: {
|
||||
reload: this.$gettext("Reload"),
|
||||
view: this.$gettext("Toggle View"),
|
||||
upload: this.$gettext("Upload"),
|
||||
edit: this.$gettext("Edit"),
|
||||
share: this.$gettext("Share"),
|
||||
download: this.$gettext("Download"),
|
||||
search: this.$gettext("Expand Search"),
|
||||
},
|
||||
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Name too long"),
|
||||
growDesc: false,
|
||||
};
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.download"
|
||||
:title="$gettext('Download')"
|
||||
color="download"
|
||||
@click.stop="download()"
|
||||
class="action-download"
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.addToAlbum"
|
||||
:title="$gettext('Add to album')"
|
||||
color="album"
|
||||
:disabled="selection.length === 0"
|
||||
@click.stop="dialog.album = true"
|
||||
|
@ -74,12 +74,6 @@
|
|||
album: false,
|
||||
edit: false,
|
||||
},
|
||||
labels: {
|
||||
download: this.$gettext("Download"),
|
||||
addToAlbum: this.$gettext("Add to album"),
|
||||
removeFromAlbum: this.$gettext("Remove"),
|
||||
},
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
fab
|
||||
dark
|
||||
small
|
||||
:title="labels.download"
|
||||
:title="$gettext('Download')"
|
||||
color="download"
|
||||
@click.stop="download()"
|
||||
class="p-label-clipboard-download"
|
||||
|
@ -33,7 +33,7 @@
|
|||
</v-btn -->
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.addToAlbum"
|
||||
:title="$gettext('Add to album')"
|
||||
color="album"
|
||||
:disabled="selection.length === 0"
|
||||
@click.stop="dialog.album = true"
|
||||
|
@ -44,7 +44,7 @@
|
|||
<v-btn
|
||||
fab dark small
|
||||
color="remove"
|
||||
:title="labels.delete"
|
||||
:title="$gettext('Delete')"
|
||||
@click.stop="dialog.delete = true"
|
||||
:disabled="selection.length === 0"
|
||||
class="action-delete"
|
||||
|
@ -87,13 +87,6 @@
|
|||
album: false,
|
||||
edit: false,
|
||||
},
|
||||
labels: {
|
||||
download: this.$gettext("Download"),
|
||||
delete: this.$gettext("Delete"),
|
||||
addToAlbum: this.$gettext("Add to album"),
|
||||
removeFromAlbum: this.$gettext("Remove"),
|
||||
},
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.share"
|
||||
:title="$gettext('Share')"
|
||||
color="share"
|
||||
@click.stop="dialog.share = true"
|
||||
:disabled="selection.length === 0"
|
||||
|
@ -32,7 +32,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.edit"
|
||||
:title="$gettext('Edit')"
|
||||
color="edit"
|
||||
:disabled="selection.length === 0"
|
||||
@click.stop="edit"
|
||||
|
@ -43,7 +43,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.private"
|
||||
:title="$gettext('Change private flag')"
|
||||
color="private"
|
||||
:disabled="selection.length === 0"
|
||||
@click.stop="batchPrivate"
|
||||
|
@ -54,7 +54,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.download"
|
||||
:title="$gettext('Download')"
|
||||
color="download"
|
||||
@click.stop="download()"
|
||||
v-if="context !== 'archive' && $config.feature('download')"
|
||||
|
@ -64,7 +64,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.addToAlbum"
|
||||
:title="$gettext('Add to album')"
|
||||
color="album"
|
||||
:disabled="selection.length === 0"
|
||||
@click.stop="dialog.album = true"
|
||||
|
@ -76,7 +76,7 @@
|
|||
<v-btn
|
||||
fab dark small
|
||||
color="remove"
|
||||
:title="labels.archive"
|
||||
:title="$gettext('Archive')"
|
||||
@click.stop="dialog.archive = true"
|
||||
:disabled="selection.length === 0"
|
||||
v-if="!album && context !== 'archive' && $config.feature('archive')"
|
||||
|
@ -87,7 +87,7 @@
|
|||
<v-btn
|
||||
fab dark small
|
||||
color="restore"
|
||||
:title="labels.restore"
|
||||
:title="$gettext('Restore')"
|
||||
@click.stop="batchRestorePhotos"
|
||||
:disabled="selection.length === 0"
|
||||
v-if="!album && context === 'archive'"
|
||||
|
@ -97,7 +97,7 @@
|
|||
</v-btn>
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.removeFromAlbum"
|
||||
:title="$gettext('Remove')"
|
||||
color="remove"
|
||||
@click.stop="removeFromAlbum"
|
||||
:disabled="selection.length === 0"
|
||||
|
@ -146,16 +146,6 @@
|
|||
album: false,
|
||||
share: false,
|
||||
},
|
||||
labels: {
|
||||
share: this.$gettext("Share"),
|
||||
private: this.$gettext("Change private flag"),
|
||||
edit: this.$gettext("Edit"),
|
||||
addToAlbum: this.$gettext("Add to album"),
|
||||
removeFromAlbum: this.$gettext("Remove"),
|
||||
archive: this.$gettext("Archive"),
|
||||
restore: this.$gettext("Restore"),
|
||||
download: this.$gettext("Download"),
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -17,26 +17,26 @@
|
|||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn icon @click.stop="refresh" class="hidden-xs-only action-reload" :title="titles.reload">
|
||||
<v-btn icon @click.stop="refresh" class="hidden-xs-only action-reload" :title="$gettext('Reload')">
|
||||
<v-icon>refresh</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon v-if="settings.view === 'cards'" @click.stop="setView('list')" :title="titles.view">
|
||||
<v-btn icon v-if="settings.view === 'cards'" @click.stop="setView('list')" :title="$gettext('Toggle View')">
|
||||
<v-icon>view_list</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon v-else-if="settings.view === 'list'" @click.stop="setView('mosaic')" :title="titles.view">
|
||||
<v-btn icon v-else-if="settings.view === 'list'" @click.stop="setView('mosaic')" :title="$gettext('Toggle View')">
|
||||
<v-icon>view_comfy</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon v-else @click.stop="setView('cards')" :title="titles.view">
|
||||
<v-btn icon v-else @click.stop="setView('cards')" :title="$gettext('Toggle View')">
|
||||
<v-icon>view_column</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="showUpload()" v-if="!$config.values.readonly && $config.feature('upload')"
|
||||
class="hidden-sm-and-down action-upload" :title="titles.upload">
|
||||
class="hidden-sm-and-down action-upload" :title="$gettext('Upload')">
|
||||
<v-icon>cloud_upload</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="searchExpanded = !searchExpanded" class="p-expand-search" :title="titles.search">
|
||||
<v-btn icon @click.stop="searchExpanded = !searchExpanded" class="p-expand-search" :title="$gettext('Expand Search')">
|
||||
<v-icon>{{ searchExpanded ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<v-layout row wrap>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-countries-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.country"
|
||||
:label="$gettext('Country')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
item-value="ID"
|
||||
|
@ -62,7 +62,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-camera-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.camera"
|
||||
:label="$gettext('Camera')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
item-value="ID"
|
||||
|
@ -73,7 +73,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-view-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.view"
|
||||
:label="$gettext('View')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
v-model="settings.view"
|
||||
|
@ -83,7 +83,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-time-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.sort"
|
||||
:label="$gettext('Sort Order')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
v-model="filter.order"
|
||||
|
@ -92,7 +92,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-year-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.year"
|
||||
:label="$gettext('Year')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
item-value="value"
|
||||
|
@ -103,7 +103,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-month-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.month"
|
||||
:label="$gettext('Month')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
item-value="value"
|
||||
|
@ -125,7 +125,7 @@
|
|||
</v-flex -->
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-color-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.color"
|
||||
:label="$gettext('Color')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
item-value="Slug"
|
||||
|
@ -136,7 +136,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 sm6 md3 pa-2 class="p-category-select">
|
||||
<v-select @change="dropdownChange"
|
||||
:label="labels.category"
|
||||
:label="$gettext('Category')"
|
||||
flat solo hide-details
|
||||
color="secondary-dark"
|
||||
item-value="Slug"
|
||||
|
@ -194,26 +194,6 @@
|
|||
{value: 'relevance', text: this.$gettext('Most relevant')},
|
||||
],
|
||||
},
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
view: this.$gettext("View"),
|
||||
country: this.$gettext("Country"),
|
||||
camera: this.$gettext("Camera"),
|
||||
lens: this.$gettext("Lens"),
|
||||
year: this.$gettext("Year"),
|
||||
month: this.$gettext("Month"),
|
||||
color: this.$gettext("Color"),
|
||||
category: this.$gettext("Category"),
|
||||
sort: this.$gettext("Sort Order"),
|
||||
before: this.$gettext("Taken before"),
|
||||
after: this.$gettext("Taken after"),
|
||||
},
|
||||
titles: {
|
||||
reload: this.$gettext("Reload"),
|
||||
view: this.$gettext("Toggle View"),
|
||||
upload: this.$gettext("Upload"),
|
||||
search: this.$gettext("Expand Search"),
|
||||
},
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -15,29 +15,29 @@
|
|||
|
||||
<div class="pswp__counter"></div>
|
||||
|
||||
<button class="pswp__button pswp__button--close action-close" :title="titles.close"></button>
|
||||
<button class="pswp__button pswp__button--close action-close" :title="$gettext('Close')"></button>
|
||||
|
||||
<button class="pswp__button action-download" style="background: none;" @click.exact="onDownload"
|
||||
:title="titles.download" v-if="config.settings.features.download">
|
||||
:title="$gettext('Download')" v-if="config.settings.features.download">
|
||||
<v-icon size="16" color="white">get_app</v-icon>
|
||||
</button>
|
||||
|
||||
<button class="pswp__button action-edit hidden-shared-only" style="background: none;" @click.exact="onEdit"
|
||||
:title="titles.edit">
|
||||
:title="$gettext('Edit')">
|
||||
<v-icon size="16" color="white">edit</v-icon>
|
||||
</button>
|
||||
|
||||
<button class="pswp__button action-like hidden-shared-only" style="background: none;"
|
||||
@click.exact="onLike" :title="titles.like">
|
||||
@click.exact="onLike" :title="$gettext('Like')">
|
||||
<v-icon v-if="item.favorite" size="16" color="white">favorite</v-icon>
|
||||
<v-icon v-else size="16" color="white">favorite_border</v-icon>
|
||||
</button>
|
||||
|
||||
<button class="pswp__button pswp__button--fs action-toogle-fullscreen" :title="titles.fullscreen"></button>
|
||||
<button class="pswp__button pswp__button--fs action-toogle-fullscreen" :title="$gettext('Fullscreen')"></button>
|
||||
|
||||
<button class="pswp__button pswp__button--zoom action-zoom" :title="titles.zoom"></button>
|
||||
<button class="pswp__button pswp__button--zoom action-zoom" :title="$gettext('Zoom in/out')"></button>
|
||||
|
||||
<button class="pswp__button" style="background: none;" @click.exact="onSlideshow" :title="titles.slideshow">
|
||||
<button class="pswp__button" style="background: none;" @click.exact="onSlideshow" :title="$gettext('Start/Stop Slideshow')">
|
||||
<v-icon v-show="!interval" size="18" color="white">play_arrow</v-icon>
|
||||
<v-icon v-show="interval" size="16" color="white">pause</v-icon>
|
||||
</button>
|
||||
|
@ -90,15 +90,6 @@
|
|||
active: false,
|
||||
next: 0,
|
||||
},
|
||||
titles: {
|
||||
slideshow: this.$gettext("Start/Stop Slideshow"),
|
||||
zoom: this.$gettext("Zoom in/out"),
|
||||
fullscreen: this.$gettext("Fullscreen"),
|
||||
like: this.$gettext("Like"),
|
||||
edit: this.$gettext("Edit"),
|
||||
download: this.$gettext("Download"),
|
||||
close: this.$gettext("Close"),
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<v-text-field
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="label.url"
|
||||
:label="$gettext('Service URL')"
|
||||
placeholder="https://www.example.com/"
|
||||
color="secondary-dark"
|
||||
v-model="model.AccURL"
|
||||
|
@ -22,7 +22,7 @@
|
|||
<v-text-field
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="label.user"
|
||||
:label="$gettext('Username')"
|
||||
placeholder="optional"
|
||||
color="secondary-dark"
|
||||
v-model="model.AccUser"
|
||||
|
@ -32,7 +32,7 @@
|
|||
<v-text-field
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="label.pass"
|
||||
:label="$gettext('Password')"
|
||||
placeholder="optional"
|
||||
color="secondary-dark"
|
||||
v-model="model.AccPass"
|
||||
|
@ -75,9 +75,6 @@
|
|||
search: null,
|
||||
model: new Account(),
|
||||
label: {
|
||||
url: this.$gettext("Service URL"),
|
||||
user: this.$gettext("Username"),
|
||||
pass: this.$gettext("Password"),
|
||||
cancel: this.$gettext("Cancel"),
|
||||
confirm: this.$gettext("Connect"),
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<v-text-field hide-details
|
||||
v-model="model.Title"
|
||||
:rules="[titleRule]"
|
||||
:label="labels.title"
|
||||
:label="$gettext('Name')"
|
||||
color="secondary-dark"
|
||||
class="input-title"
|
||||
></v-text-field>
|
||||
|
@ -38,7 +38,7 @@
|
|||
<v-flex xs12 pa-2>
|
||||
<v-textarea auto-grow hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.description"
|
||||
:label="$gettext('Description')"
|
||||
:rows="1"
|
||||
:key="growDesc"
|
||||
v-model="model.Description"
|
||||
|
@ -50,7 +50,7 @@
|
|||
<v-combobox hide-details :search-input.sync="model.Category"
|
||||
v-model="model.Category"
|
||||
:items="categories"
|
||||
:label="labels.category"
|
||||
:label="$gettext('Category')"
|
||||
:allow-overflow="false"
|
||||
return-masked-value
|
||||
color="secondary-dark"
|
||||
|
@ -60,7 +60,7 @@
|
|||
</v-flex>
|
||||
<v-flex xs12 md6 pa-2>
|
||||
<v-select
|
||||
:label="labels.sort"
|
||||
:label="$gettext('Sort Order')"
|
||||
hide-details
|
||||
v-model="model.Order"
|
||||
:items="sorting"
|
||||
|
@ -117,16 +117,6 @@
|
|||
],
|
||||
categories: this.$config.albumCategories(),
|
||||
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Name too long"),
|
||||
labels: {
|
||||
title: this.$gettext("Name"),
|
||||
description: this.$gettext("Description"),
|
||||
search: this.$gettext("Search"),
|
||||
view: this.$gettext("View"),
|
||||
country: this.$gettext("Country"),
|
||||
camera: this.$gettext("Camera"),
|
||||
sort: this.$gettext("Sort Order"),
|
||||
category: this.$gettext("Category"),
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
hide-no-data
|
||||
item-text="Title"
|
||||
item-value="UID"
|
||||
:label="labels.select"
|
||||
:label="$gettext('Album Name')"
|
||||
color="secondary-dark"
|
||||
flat solo
|
||||
class="input-album"
|
||||
|
@ -58,7 +58,6 @@
|
|||
albums: [],
|
||||
items: [],
|
||||
labels: {
|
||||
select: this.$gettext("Album Name"),
|
||||
addToAlbum: this.$gettext("Add to album"),
|
||||
createAlbum: this.$gettext("Create album"),
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
:disabled="disabled"
|
||||
:rules="[textRule]"
|
||||
hide-details
|
||||
:label="labels.title"
|
||||
:label="$gettext('Title')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
browser-autocomplete="off"
|
||||
|
@ -128,7 +128,7 @@
|
|||
<v-autocomplete
|
||||
@change="updateTime"
|
||||
:disabled="disabled"
|
||||
:label="labels.timezone"
|
||||
:label="$gettext('Time Zone')"
|
||||
browser-autocomplete="off"
|
||||
hide-details hide-no-data
|
||||
color="secondary-dark"
|
||||
|
@ -145,7 +145,7 @@
|
|||
:append-icon="model.PlaceSrc === 'manual' ? 'check' : ''"
|
||||
:disabled="disabled"
|
||||
:readonly="!!(model.Lat || model.Lng)"
|
||||
:label="labels.country"
|
||||
:label="$gettext('Country')"
|
||||
hide-details hide-no-data
|
||||
browser-autocomplete="off"
|
||||
color="secondary-dark"
|
||||
|
@ -162,7 +162,7 @@
|
|||
:disabled="disabled"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.altitude"
|
||||
:label="$gettext('Altitude (m)')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.Altitude"
|
||||
|
@ -176,7 +176,7 @@
|
|||
:disabled="disabled"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.latitude"
|
||||
:label="$gettext('Latitude')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.Lat"
|
||||
|
@ -190,7 +190,7 @@
|
|||
:disabled="disabled"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.longitude"
|
||||
:label="$gettext('Longitude')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.Lng"
|
||||
|
@ -202,7 +202,7 @@
|
|||
<v-select
|
||||
:append-icon="model.CameraSrc === 'manual' ? 'check' : ''"
|
||||
:disabled="disabled"
|
||||
:label="labels.camera"
|
||||
:label="$gettext('Camera')"
|
||||
browser-autocomplete="off"
|
||||
hide-details
|
||||
color="secondary-dark"
|
||||
|
@ -232,7 +232,7 @@
|
|||
:disabled="disabled"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.exposure"
|
||||
:label="$gettext('Exposure')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.Exposure"
|
||||
|
@ -244,7 +244,7 @@
|
|||
<v-select
|
||||
:append-icon="model.CameraSrc === 'manual' ? 'check' : ''"
|
||||
:disabled="disabled"
|
||||
:label="labels.lens"
|
||||
:label="$gettext('Lens')"
|
||||
browser-autocomplete="off"
|
||||
hide-details
|
||||
color="secondary-dark"
|
||||
|
@ -261,7 +261,7 @@
|
|||
:disabled="disabled"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.fnumber"
|
||||
:label="$gettext('F Number')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.FNumber"
|
||||
|
@ -274,7 +274,7 @@
|
|||
:disabled="disabled"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.focallength"
|
||||
:label="$gettext('Focal Length')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.FocalLength"
|
||||
|
@ -289,7 +289,7 @@
|
|||
hide-details
|
||||
browser-autocomplete="off"
|
||||
auto-grow
|
||||
:label="labels.subject"
|
||||
:label="$gettext('Subject')"
|
||||
placeholder=""
|
||||
:rows="1"
|
||||
color="secondary-dark"
|
||||
|
@ -304,7 +304,7 @@
|
|||
:rules="[textRule]"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.artist"
|
||||
:label="$gettext('Artist')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.Details.Artist"
|
||||
|
@ -318,7 +318,7 @@
|
|||
:rules="[textRule]"
|
||||
hide-details
|
||||
browser-autocomplete="off"
|
||||
:label="labels.copyright"
|
||||
:label="$gettext('Copyright')"
|
||||
placeholder=""
|
||||
color="secondary-dark"
|
||||
v-model="model.Details.Copyright"
|
||||
|
@ -333,7 +333,7 @@
|
|||
hide-details
|
||||
browser-autocomplete="off"
|
||||
auto-grow
|
||||
:label="labels.license"
|
||||
:label="$gettext('License')"
|
||||
placeholder=""
|
||||
:rows="1"
|
||||
color="secondary-dark"
|
||||
|
@ -349,7 +349,7 @@
|
|||
hide-details
|
||||
browser-autocomplete="off"
|
||||
auto-grow
|
||||
:label="labels.description"
|
||||
:label="$gettext('Description')"
|
||||
placeholder=""
|
||||
:rows="1"
|
||||
color="secondary-dark"
|
||||
|
@ -364,7 +364,7 @@
|
|||
hide-details
|
||||
browser-autocomplete="off"
|
||||
auto-grow
|
||||
:label="labels.keywords"
|
||||
:label="$gettext('Keywords')"
|
||||
placeholder=""
|
||||
:rows="1"
|
||||
color="secondary-dark"
|
||||
|
@ -379,7 +379,7 @@
|
|||
hide-details
|
||||
browser-autocomplete="off"
|
||||
auto-grow
|
||||
:label="labels.notes"
|
||||
:label="$gettext('Notes')"
|
||||
placeholder=""
|
||||
:rows="1"
|
||||
color="secondary-dark"
|
||||
|
@ -434,35 +434,6 @@
|
|||
readonly: this.$config.get("readonly"),
|
||||
options: options,
|
||||
countries: countries,
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
view: this.$gettext("View"),
|
||||
country: this.$gettext("Country"),
|
||||
camera: this.$gettext("Camera"),
|
||||
lens: this.$gettext("Lens"),
|
||||
year: this.$gettext("Year"),
|
||||
color: this.$gettext("Color"),
|
||||
category: this.$gettext("Category"),
|
||||
sort: this.$gettext("Sort Order"),
|
||||
before: this.$gettext("Taken before"),
|
||||
after: this.$gettext("Taken after"),
|
||||
language: this.$gettext("Language"),
|
||||
timezone: this.$gettext("Time Zone"),
|
||||
title: this.$gettext("Title"),
|
||||
latitude: this.$gettext("Latitude"),
|
||||
longitude: this.$gettext("Longitude"),
|
||||
altitude: this.$gettext("Altitude (m)"),
|
||||
exposure: this.$gettext("Exposure"),
|
||||
fnumber: this.$gettext("F Number"),
|
||||
focallength: this.$gettext("Focal Length"),
|
||||
subject: this.$gettext("Subject"),
|
||||
artist: this.$gettext("Artist"),
|
||||
copyright: this.$gettext("Copyright"),
|
||||
license: this.$gettext("License"),
|
||||
description: this.$gettext("Description"),
|
||||
keywords: this.$gettext("Keywords"),
|
||||
notes: this.$gettext("Notes"),
|
||||
},
|
||||
showDatePicker: false,
|
||||
showTimePicker: false,
|
||||
invalidDate: false,
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<v-text-field
|
||||
v-model="props.item.Label.Name"
|
||||
:rules="[nameRule]"
|
||||
:label="labels.name"
|
||||
:label="$gettext('Label Name')"
|
||||
color="secondary-dark"
|
||||
single-line
|
||||
autofocus
|
||||
|
@ -65,7 +65,7 @@
|
|||
:rules="[nameRule]"
|
||||
color="secondary-dark"
|
||||
browser-autocomplete="off"
|
||||
:label="labels.addLabel"
|
||||
:label="$gettext('')"
|
||||
single-line
|
||||
flat solo hide-details
|
||||
autofocus
|
||||
|
@ -109,11 +109,6 @@
|
|||
{text: this.$gettext('Confidence'), value: 'Uncertainty', sortable: false, align: 'center'},
|
||||
{text: this.$gettext('Action'), value: '', sortable: false, align: 'center'},
|
||||
],
|
||||
labels: {
|
||||
addLabel: "",
|
||||
search: this.$gettext("Search"),
|
||||
name: this.$gettext("Label Name"),
|
||||
},
|
||||
nameRule: v => v.length <= this.$config.get('clip') || this.$gettext("Name too long"),
|
||||
};
|
||||
},
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
item-text="Title"
|
||||
item-value="UID"
|
||||
:allow-overflow="false"
|
||||
:label="labels.album"
|
||||
:label="$gettext('Select albums or create a new one')"
|
||||
return-object
|
||||
>
|
||||
<template v-slot:no-data>
|
||||
|
@ -111,9 +111,6 @@
|
|||
started: 0,
|
||||
review: this.$config.feature("review"),
|
||||
safe: !this.$config.get("uploadNSFW"),
|
||||
labels: {
|
||||
album: this.$gettext("Select albums or create a new one"),
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<v-text-field @keyup.enter.native="updateQuery"
|
||||
single-line
|
||||
class="hidden-xs-only mr-3"
|
||||
:label="labels.search"
|
||||
:label="$gettext('Search')"
|
||||
browser-autocomplete="off"
|
||||
prepend-inner-icon="search"
|
||||
clearable
|
||||
|
@ -19,7 +19,7 @@
|
|||
|
||||
<v-select @change="updateQuery"
|
||||
single-line
|
||||
:label="labels.category"
|
||||
:label="$gettext('Category')"
|
||||
color="secondary-dark"
|
||||
v-model="filter.category"
|
||||
:items="categories"
|
||||
|
@ -29,16 +29,16 @@
|
|||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn icon @click.stop="refresh" class="action-reload" :title="titles.reload">
|
||||
<v-btn icon @click.stop="refresh" class="action-reload" :title="$gettext('Reload')">
|
||||
<v-icon>refresh</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.stop="showUpload()" v-if="!$config.values.readonly && $config.feature('upload')"
|
||||
class="hidden-sm-and-down" :title="titles.upload">
|
||||
class="hidden-sm-and-down" :title="$gettext('Upload')">
|
||||
<v-icon>cloud_upload</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon @click.prevent="create" class="action-add" v-if="staticFilter.type === 'album'" :title="titles.add">
|
||||
<v-btn icon @click.prevent="create" class="action-add" v-if="staticFilter.type === 'album'" :title="$gettext('Add Album')">
|
||||
<v-icon>add</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
@ -254,16 +254,6 @@ export default {
|
|||
lastFilter: {},
|
||||
routeName: routeName,
|
||||
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Title too long"),
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
title: this.$gettext("Album Name"),
|
||||
category: this.$gettext("Category"),
|
||||
},
|
||||
titles: {
|
||||
reload: this.$gettext("Reload"),
|
||||
upload: this.$gettext("Upload"),
|
||||
add: this.$gettext("Add Album"),
|
||||
},
|
||||
mouseDown: {
|
||||
index: -1,
|
||||
timeStamp: -1,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<v-toolbar flat color="secondary">
|
||||
<v-text-field class="pt-3 pr-3 input-search"
|
||||
single-line
|
||||
:label="labels.search"
|
||||
:label="$gettext('Search')"
|
||||
prepend-inner-icon="search"
|
||||
browser-autocomplete="off"
|
||||
clearable
|
||||
|
@ -19,14 +19,14 @@
|
|||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn icon @click.stop="refresh" class="action-reload" :title="titles.reload">
|
||||
<v-btn icon @click.stop="refresh" class="action-reload" :title="$gettext('Reload')">
|
||||
<v-icon>refresh</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn v-if="!filter.all" icon @click.stop="showAll" class="action-show-all" :title="titles.more">
|
||||
<v-btn v-if="!filter.all" icon @click.stop="showAll" class="action-show-all" :title="$gettext('Show more')">
|
||||
<v-icon>visibility</v-icon>
|
||||
</v-btn>
|
||||
<v-btn v-else icon @click.stop="showImportant" class="action-show-important" :title="titles.less">
|
||||
<v-btn v-else icon @click.stop="showImportant" class="action-show-important" :title="$gettext('Show less')">
|
||||
<v-icon>visibility_off</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
@ -124,7 +124,7 @@
|
|||
<v-text-field
|
||||
v-model="label.Name"
|
||||
:rules="[titleRule]"
|
||||
:label="labels.name"
|
||||
:label="$gettext('Label Name')"
|
||||
color="secondary-dark"
|
||||
single-line
|
||||
autofocus
|
||||
|
@ -194,15 +194,6 @@ export default {
|
|||
filter: filter,
|
||||
lastFilter: {},
|
||||
routeName: routeName,
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
name: this.$gettext("Label Name"),
|
||||
},
|
||||
titles: {
|
||||
reload: this.$gettext("Reload"),
|
||||
more: this.$gettext("Show more"),
|
||||
less: this.$gettext("Show less"),
|
||||
},
|
||||
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Name too long"),
|
||||
mouseDown: {
|
||||
index: -1,
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn icon @click.stop="reload" class="action-reload" :title="titles.reload">
|
||||
<v-btn icon @click.stop="reload" class="action-reload" :title="$gettext('Reload')">
|
||||
<v-icon>refresh</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon href="https://github.com/photoprism/photoprism/issues" target="_blank" class="action-bug-report"
|
||||
:title="titles.bug">
|
||||
:title="$gettext('Report Bug')">
|
||||
<v-icon>bug_report</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
@ -113,10 +113,6 @@
|
|||
show: false,
|
||||
err: {"Level": "", "Message": "", "Time": ""},
|
||||
},
|
||||
titles: {
|
||||
reload: this.$gettext("Reload"),
|
||||
bug: this.$gettext("Report Bug"),
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn icon @click.stop="refresh" :title="titles.reload">
|
||||
<v-btn icon @click.stop="refresh" :title="$gettext('Reload')">
|
||||
<v-icon>refresh</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
@ -170,13 +170,6 @@ export default {
|
|||
limit: Folder.limit(),
|
||||
offset: 0,
|
||||
},
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
name: this.$gettext("Folder Name"),
|
||||
},
|
||||
titles: {
|
||||
reload: this.$gettext("Reload"),
|
||||
},
|
||||
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Name too long"),
|
||||
mouseDown: {
|
||||
index: -1,
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
class="ma-0 pa-0"
|
||||
v-model="settings.import.move"
|
||||
color="secondary-dark"
|
||||
:label="labels.move"
|
||||
:hint="hints.move"
|
||||
:label="$gettext('Move Files')"
|
||||
:hint="$gettext('Remove imported files to save storage. Unsupported file types will never be deleted, they remain in their current location.')"
|
||||
prepend-icon="delete"
|
||||
persistent-hint
|
||||
>
|
||||
|
@ -115,13 +115,6 @@
|
|||
source: null,
|
||||
root: root,
|
||||
dirs: [root],
|
||||
labels: {
|
||||
move: this.$gettext("Move Files"),
|
||||
path: this.$gettext("Folder"),
|
||||
},
|
||||
hints: {
|
||||
move: this.$gettext("Remove imported files to save storage. Unsupported file types will never be deleted, they remain in their current location."),
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
class="ma-0 pa-0"
|
||||
v-model="settings.index.rescan"
|
||||
color="secondary-dark"
|
||||
:label="labels.rescan"
|
||||
:hint="hints.rescan"
|
||||
:label="$gettext('Complete Rescan')"
|
||||
:hint="$gettext('Re-index all originals, including already indexed and unchanged files.')"
|
||||
prepend-icon="cached"
|
||||
persistent-hint
|
||||
>
|
||||
|
@ -111,15 +111,6 @@
|
|||
source: null,
|
||||
root: root,
|
||||
dirs: [root],
|
||||
labels: {
|
||||
rescan: this.$gettext("Complete Rescan"),
|
||||
convert: this.$gettext("Convert to JPEG"),
|
||||
path: this.$gettext("Folder"),
|
||||
},
|
||||
hints: {
|
||||
rescan: this.$gettext("Re-index all originals, including already indexed and unchanged files."),
|
||||
convert: this.$gettext("File types like RAW might need to be converted so that they can be displayed in a browser. JPEGs will be stored in the same folder next to the original using the best possible quality."),
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<v-text-field
|
||||
:disabled="loading"
|
||||
:label="labels.username"
|
||||
:label="$gettext('Name')"
|
||||
color="accent"
|
||||
v-model="username"
|
||||
flat solo required
|
||||
|
@ -23,7 +23,7 @@
|
|||
<v-flex xs12 class="pa-2">
|
||||
<v-text-field
|
||||
:disabled="loading"
|
||||
:label="labels.password"
|
||||
:label="$gettext('Password')"
|
||||
color="accent"
|
||||
v-model="password"
|
||||
flat solo required
|
||||
|
@ -62,10 +62,6 @@
|
|||
username: "admin",
|
||||
password: "",
|
||||
nextUrl: this.$route.params.nextUrl ? this.$route.params.nextUrl : "/",
|
||||
labels: {
|
||||
username: this.$gettext("Name"),
|
||||
password: this.$gettext("Password"),
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
single-line
|
||||
solo
|
||||
flat
|
||||
:label="labels.search"
|
||||
:label="$gettext('Search')"
|
||||
prepend-inner-icon="search"
|
||||
clearable
|
||||
hide-details
|
||||
|
@ -170,9 +170,6 @@
|
|||
result: {},
|
||||
filter: filter,
|
||||
lastFilter: {},
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
},
|
||||
config: this.$config.values,
|
||||
settings: s,
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.download"
|
||||
:title="$gettext('Download')"
|
||||
color="download"
|
||||
@click.stop="download()"
|
||||
class="action-download"
|
||||
|
@ -65,13 +65,6 @@
|
|||
share: false,
|
||||
upload: false,
|
||||
},
|
||||
labels: {
|
||||
share: this.$gettext("Share"),
|
||||
download: this.$gettext("Download"),
|
||||
clone: this.$gettext("Add to album"),
|
||||
delete: this.$gettext("Delete"),
|
||||
},
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -151,11 +151,6 @@ export default {
|
|||
lastFilter: {},
|
||||
routeName: routeName,
|
||||
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Title too long"),
|
||||
labels: {
|
||||
search: this.$gettext("Search"),
|
||||
title: this.$gettext("Album Name"),
|
||||
category: this.$gettext("Category"),
|
||||
},
|
||||
mouseDown: {
|
||||
index: -1,
|
||||
timeStamp: -1,
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<v-btn
|
||||
fab dark small
|
||||
:title="labels.download"
|
||||
:title="$gettext('Download')"
|
||||
color="download"
|
||||
@click.stop="download()"
|
||||
:disabled="!$config.feature('download')"
|
||||
|
@ -65,16 +65,6 @@
|
|||
album: false,
|
||||
share: false,
|
||||
},
|
||||
labels: {
|
||||
share: this.$gettext("Share"),
|
||||
private: this.$gettext("Change private flag"),
|
||||
edit: this.$gettext("Edit"),
|
||||
addToAlbum: this.$gettext("Add to album"),
|
||||
removeFromAlbum: this.$gettext("Remove"),
|
||||
archive: this.$gettext("Archive"),
|
||||
restore: this.$gettext("Restore"),
|
||||
download: this.$gettext("Download"),
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue