Frontend: Update translations and navigation title

This commit is contained in:
Michael Mayer 2022-05-01 18:05:41 +02:00
parent f89795e74d
commit 7c688f5ea2
7 changed files with 247 additions and 412 deletions

File diff suppressed because it is too large Load diff

View file

@ -44,7 +44,7 @@
</v-list-tile-avatar>
<v-list-tile-content>
<v-list-tile-title class="title">
{{ config.name }}
{{ config.name }}<sup v-if="isSponsor">+</sup>
</v-list-tile-title>
</v-list-tile-content>
<v-list-tile-action class="hidden-sm-and-down" :title="$gettext('Minimize')">
@ -543,12 +543,17 @@ export default {
}
},
data() {
const name = this.$config.get("name");
const isSponsor = name === "PhotoPrism" && this.$config.isSponsor();
return {
name: this.$config.get("name"),
drawer: null,
isMini: localStorage.getItem('last_navigation_mode') !== 'false',
isPublic: this.$config.get("public"),
isTest: this.$config.test,
isReadOnly: this.$config.get("readonly"),
isSponsor: isSponsor,
session: this.$session,
config: this.$config.values,
page: this.$config.page,

View file

@ -8,6 +8,10 @@
background: transparent;
}
nav .v-list__tile__title.title {
line-height: normal!important;
}
#p-navigation .nav-title {
text-align: left;
-webkit-box-flex: 1!important;
@ -16,6 +20,7 @@
margin-left: 10px;
margin-right: 10px;
max-height: 100%;
line-height: normal!important;
}
#p-navigation .nav-count {

File diff suppressed because one or more lines are too long

View file

@ -60,7 +60,7 @@ msgstr ""
#: src/component/navigation.vue:406
#: src/component/navigation.vue:27
#: src/pages/about/about.vue:4
#: src/pages/about/about.vue:191
#: src/pages/about/about.vue:180
#: src/pages/help.vue:45
msgid "About"
msgstr ""

View file

@ -2,7 +2,7 @@
<div class="p-page p-page-about">
<v-toolbar flat color="secondary" :dense="$vuetify.breakpoint.smAndDown">
<v-toolbar-title>
<translate>About</translate> {{ $config.get('name') }}
<translate>About</translate>
</v-toolbar-title>
<v-spacer></v-spacer>
@ -87,11 +87,11 @@
</p>
<p class="caption mt-4 text-xs-center">
PhotoPrism® is a <a href="https://photoprism.app/trademark" target="_blank" class="text-link">registered trademark</a>.
By using the software and services we provide, you agree to our
<a href="https://photoprism.app/terms" target="_blank" class="text-link">Terms of Service</a>,
<a href="https://photoprism.app/privacy" target="_blank" class="text-link">Privacy Policy</a>, and
<a href="https://photoprism.app/code-of-conduct" target="_blank" class="text-link">Code of Conduct</a>.
PhotoPrism® is a <a href="https://photoprism.app/trademark" target="_blank" class="text-link">registered trademark</a>.
</p>
</v-container>
<p-about-footer></p-about-footer>

View file

@ -293,10 +293,6 @@ func (c *Config) SerialChecksum() string {
// Name returns the application name ("PhotoPrism").
func (c *Config) Name() string {
if c.Sponsor() && c.options.Name == "PhotoPrism" {
c.options.Name = "PhotoPrism+"
}
return c.options.Name
}