Add translate tags to settings pages
This commit is contained in:
parent
53196930a2
commit
8c6ab8bf8d
2 changed files with 9 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
<v-flex xs12 sm6 class="pr-3">
|
||||
<v-select
|
||||
:items="options.languages"
|
||||
label="Language"
|
||||
:label="labels.language"
|
||||
color="secondary-dark"
|
||||
v-model="settings.language"
|
||||
flat
|
||||
|
@ -18,7 +18,7 @@
|
|||
<v-flex xs12 sm6 class="pr-3">
|
||||
<v-select
|
||||
:items="options.themes"
|
||||
label="Theme"
|
||||
:label="labels.theme"
|
||||
color="secondary-dark"
|
||||
v-model="settings.theme"
|
||||
flat
|
||||
|
@ -30,7 +30,7 @@
|
|||
class="white--text ml-0 mt-2"
|
||||
depressed
|
||||
@click.stop="save">
|
||||
Save
|
||||
<translate>Save</translate>
|
||||
<v-icon right dark>save</v-icon>
|
||||
</v-btn>
|
||||
</v-form>
|
||||
|
@ -49,6 +49,10 @@
|
|||
readonly: this.$config.getValue("readonly"),
|
||||
settings: new Settings(this.$config.values.settings),
|
||||
options: options,
|
||||
labels: {
|
||||
language: this.$gettext("Language"),
|
||||
theme: this.$gettext("Theme"),
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
@ -58,7 +62,7 @@
|
|||
save() {
|
||||
this.settings.save().then((s) => {
|
||||
this.$config.updateSettings(s.getValues(), this.$vuetify);
|
||||
this.$notify.info("Settings saved");
|
||||
this.$notify.info(this.$gettext("Settings saved"));
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<v-layout row wrap fill-height class="pa-0 ma-3">
|
||||
<v-flex grow xs12 class="pa-2 terminal elevation-0 p-logs">
|
||||
<p v-if="logs.length === 0" class="p-log-empty">
|
||||
Nothing to see here yet. Be patient.
|
||||
<translate>Nothing to see here yet. Be patient.</translate>
|
||||
</p>
|
||||
<p v-for="(log, index) in logs" :key="index.id" class="p-log-message" :class="'p-log-' + log.level">
|
||||
{{ log.time | luxon:format('yyyy-LL-dd hh:mm:ss') }} {{ level(log) }} <span>{{ log.msg }}</span>
|
||||
|
|
Loading…
Reference in a new issue