Commit f901a4e3 authored by Jean Böhm's avatar Jean Böhm Committed by Anton Koch
Browse files

Resolve "Split i18n messages in js-files"

parent 9fddbb11
......@@ -7,8 +7,8 @@
.text-body1.q-ml-sm(v-if="confirmDelete")
| {{ $t('messages.confirm_delete', { title: deleteItem.title || deleteItem.label || 'item' }) }}
q-card-actions(align="right")
q-btn(:label="$t('buttons.no')" color="negative" flat v-close-popup)
q-btn(v-if="confirmDelete" :label="$t('buttons.yes')" color="positive" flat
q-btn(:label="$t('general.no')" color="negative" flat v-close-popup)
q-btn(v-if="confirmDelete" :label="$t('general.yes')" color="positive" flat
v-close-popup @click="$emit('remove', deleteItem._id)")
</template>
......
......@@ -68,7 +68,7 @@
columns = [{
name: 'title',
field: 'title',
label: this.$t('fields.title'),
label: this.$t('general.title'),
align: 'left',
sortable: true,
filter: true
......@@ -78,7 +78,7 @@
{
name: 'updated',
field: 'updated',
label: this.$t('fields.updated'),
label: this.$t('general.updated'),
align: 'right',
sortable: true,
format: val => val ? DateTime.fromISO(val).toLocaleString(DateTime.DATETIME_SHORT) : ''
......@@ -87,7 +87,7 @@
name: 'created',
field: 'created',
required: true,
label: this.$t('fields.created'),
label: this.$t('general.created'),
align: 'right',
sortable: true,
format: val => val ? DateTime.fromISO(val).toLocaleString(DateTime.DATETIME_SHORT) : ''
......
......@@ -2,8 +2,8 @@
.row
.col
.col.text-right
q-btn.q-ml-lg(v-if="cancelTo" @click="$router.push(cancelTo)" :label="$t('buttons.cancel')" color="grey" flat)
q-btn.q-ml-lg(@click="$emit('submit')" :label="$t('buttons.submit')" type="submit" color="primary" flat)
q-btn.q-ml-lg(v-if="cancelTo" @click="$router.push(cancelTo)" :label="$t('general.cancel')" color="grey" flat)
q-btn.q-ml-lg(@click="$emit('submit')" :label="$t('general.submit')" type="submit" color="primary" flat)
</template>
<script>
......
<template lang="pug">
.q-my-sm.text-caption(v-if="acl") ACL
.q-my-sm.text-caption(v-if="acl") {{$t('general.acl')}}
.text-caption(v-html="acl")
</template>
......
<template lang="pug">
.q-my-sm.text-caption(v-if="author") Author
.q-my-sm.text-caption(v-if="author") {{$t('general.author')}}
.text-caption(v-html="author")
</template>
......
<template lang="pug">
.q-my-sm.text-caption(v-if="collections") Collections
.q-my-sm.text-caption(v-if="collections") {{$t('general.collections')}}
.text-caption(v-html="collections")
</template>
......
<template lang="pug">
.q-my-sm.text-caption(v-if="lastUpdate") Last Update
.q-my-sm.text-caption(v-if="lastUpdate") {{$t('general.updated')}}
.text-caption(v-html="lastUpdate")
</template>
......
......@@ -6,7 +6,7 @@
@click.native="moreDialog = true"
size="sm"
)
mb-dialog(v-model="moreDialog" label="Options")
mb-dialog(v-model="moreDialog" :label="$t('general.options')")
dialog-card-more-content
</template>
......
......@@ -15,10 +15,10 @@
mb-headline(:title="this.data.title || this.data.row.title")
//card-headline(:data="{ title: this.data.title || this.data.row.title }")
.action-buttons.q-mt-md.flex.justify-end
mb-icon-btn.q-mr-xs(icon-name="stream" :background="true" tooltip="Live Annotate" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="create" :background="true" tooltip="Post Annotate" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="settings" :background="true" tooltip="Edit" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="delete" :background="true" tooltip="Delete" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="stream" :background="true" :tooltip="$t('timelines.annotate.live')" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="create" :background="true" :tooltip="$t('timelines.annotate.post')" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="settings" :background="true" :tooltip="$t('general.edit')" :outline="true")
mb-icon-btn.q-mr-xs(icon-name="delete" :background="true" :tooltip="$t('general.delete')" :outline="true")
</template>
<script>
......
......@@ -3,18 +3,18 @@
// Title
mb-input-text(
v-model="payload.title"
:label="`${type} Title`"
:label="`${type} ${$t('general.title')}`"
:rules="[val => !!val || $t('errors.field_is_required')]"
)
// Add ACL
mb-input-text(
:label="`Share ${type}`"
:label="`${$t('general.share')} ${type}`"
)
.q-mt-md
// Submit
mb-btn.q-mr-sm(label="Create" @click.native="submit" :disable="!isValid" v-close-popup)
mb-btn.q-mr-sm(:label="$t('general.create')" @click.native="submit" :disable="!isValid" v-close-popup)
// Cancel
mb-btn(label="Cancel" :cancel="true" v-close-popup)
mb-btn(:label="$t('general.cancel')" :cancel="true" v-close-popup)
</template>
<script>
......
......@@ -2,8 +2,8 @@
.select-thumbnail
video.video(ref="video" :src="videoUrl" width="100%")
q-slider(v-model="currentTime" :min="0" :max="duration" :step="0.1" label)
mb-btn.q-mr-sm(:label="$t('buttons.apply')" @click.native="applyThumbnail")
mb-btn(:label="$t('buttons.cancel')" :cancel="true" @click.native="closePopup")
mb-btn.q-mr-sm(:label="$t('general.apply')" @click.native="applyThumbnail")
mb-btn(:label="$t('general.cancel')" :cancel="true" @click.native="closePopup")
</template>
<script>
......
......@@ -18,7 +18,7 @@
.col-12.col-md-7.order-sm-last
// title
mb-input-text.q-mb-md(
:label="$t('labels.media_title')"
:label="$t('general.media_title')"
v-model="mediaObj.title"
:rules="[val => !!val || $t('errors.field_is_required')]"
@input="validate"
......@@ -28,7 +28,7 @@
// start time
mb-input-text.q-mb-md(
v-if="fileType === 'video'"
:label="$t('labels.start_time')"
:label="$t('general.start_time')"
v-model="mediaObj.startTime"
)
template(v-slot:after)
......@@ -38,7 +38,7 @@
// durartion
mb-input-text.q-mb-md(
v-if="fileType === 'video'"
:label="$t('label.duration')"
:label="$t('general.duration')"
v-model="mediaObj.duration"
)
template(v-slot:after)
......@@ -53,7 +53,7 @@
v-if="fileType === 'video'"
@click="selectThumbnail = !selectThumbnail"
)
span.mb-link {{$t('message.select_thumbnail')}}
span.mb-link {{$t('messages.select_thumbnail')}}
// Dialog to select thumbnail
mb-dialog(
v-model="selectThumbnail"
......@@ -81,8 +81,8 @@
// Finish ----------------------------------------------------------------------------------------------------------
.q-my-xl
mb-btn.q-mr-sm(:label="$t('buttons.upload')" @click.native="submit")
mb-btn.q-mr-sm(:label="$t('buttons.cancel')" :cancel="true" @click.native="$emit('closeOverlay')")
mb-btn.q-mr-sm(:label="$t('general.upload')" @click.native="submit")
mb-btn.q-mr-sm(:label="$t('general.cancel')" :cancel="true" @click.native="$emit('closeOverlay')")
.q-pa-sm.text-caption.text-mb-red-100(v-if="validation.noTitle") {{$t('errors.missing_field')}}
</template>
......
......@@ -17,7 +17,7 @@
// acl -------------------------------------------------------------------------------------------------------------
mb-expansion-item(
:label="'Members'"
:label="$('general.members')"
:slim-header="true"
)
.q-pt-md
......@@ -25,7 +25,7 @@
// media -----------------------------------------------------------------------------------------------------------
mb-expansion-item(
:label="'Media'"
:label="$('general.media')"
:slim-header="true"
:no-border="true"
)
......@@ -37,7 +37,7 @@
.test-button.full-height.full-width.text-center.inline-block.relative-position.mb-border-a-light(style="border-radius: .5rem;")
.absolute-center
mb-btn(
:label="'add'"
:label="$('general.add')"
:secondary="true"
)
......
......@@ -13,14 +13,14 @@
q-item-section
q-item-label
mb-btn(
:label="'remove selected'"
:label="$t('general.remove_selected')"
:disable="true"
)
// invite button
q-item-section(avatar)
q-item-label
mb-btn(:label="'invite'")
mb-btn(:label="$t('general.invite')")
// members -------------------------------------------------------------------------------------------------------
template(v-for="acl in data.row.acl")
......@@ -41,7 +41,7 @@
// ...
q-item-section
q-item-label.text-right
| Zusatzinfo
| {{$t('general.more_info')}}
</template>
<script>
......
<template lang="pug">
.group-title
mb-input-text(
:label="'title'"
:label="$t('general.title')"
:model="data.value"
)
</template>
......
......@@ -9,7 +9,7 @@ mb-list
template(v-slot:left)
.row.items-center
q-icon(name="delete" left)
span Dismiss
span {{$t('general.delete')}}
q-item
q-item-section
q-item-label.mb-subheadline {{notification.label}}
......@@ -18,7 +18,7 @@ mb-list
q-item-label(caption) {{new Date}}
q-item(v-if="!notifications.length")
q-item-section
q-item-label.text-center No new notifications
q-item-label.text-center {{$t('messages.no_new_notifications')}}
</template>
<script>
......
......@@ -34,11 +34,8 @@
</template>
<script>
import MbExpansionItem from 'components/MbComponents/MbExpansionItem'
import MbHeadline from 'components/MbComponents/MbHeadline'
export default {
name: 'ProjectsOverlayContent',
components: { MbHeadline, MbExpansionItem },
props: ['data'],
data () {
return {
......
......@@ -9,7 +9,7 @@
// grids
mb-expansion-item(
icon="grid_on"
:label="'Grids'"
:label="$('grids.title')"
:group="expansionItems.group"
:slim-header="true"
)
......@@ -21,7 +21,7 @@
// timelines
mb-expansion-item(
icon="linear_scale"
:label="'Timelines'"
:label="$('timelines.title')"
:group="expansionItems.group"
:no-border="true"
:slim-header="true"
......@@ -36,7 +36,7 @@
// media
mb-expansion-item(
label="Assets"
:label="$('general.assets')"
:slim-header="true"
)
.row.q-col-gutter-md.q-pt-md
......@@ -46,7 +46,7 @@
// annotations
mb-expansion-item(
label="Annotations"
:label="$('timelines.annotations.title')"
:slim-header="true"
)
// annotation list
......@@ -58,12 +58,12 @@
.text-center
mb-btn(
@click.native="createDummyAnnotations()"
label="Load more annotations"
:label="$t('timelines.annotations.load_more')"
)
// collections
mb-expansion-item(
label="Collections"
:label="$t('general.collections')"
:slim-header="true"
:no-border="true"
)
......@@ -76,7 +76,7 @@
.text-center
mb-btn(
@click.native="createDummyAnnotations()"
label="Load more annotations"
:label="$t('timelines.annotations.load_more')"
)
</template>
......
......@@ -92,9 +92,7 @@ div
<script>
import ConfirmDelete from './../../AntonPresets/ConfirmDelete'
import MbTd from 'components/MbComponents/MbTable/MbTableData/MbTd'
import MbCard from 'components/MbComponents/MbCard/MbCard'
import MbDialogOverlay from 'components/MbComponents/MbDialogOverlay/MbDialogOverlay'
import ProjectsOverlayContent
from 'components/MbComponents/MbDialogOverlay/OverlayContents/Projects/ProjectsOverlayContent'
......@@ -115,8 +113,6 @@ div
TableHeaderModule,
TablePaginationModule,
ProjectsOverlayContent,
MbDialogOverlay,
MbCard,
MbTd,
ConfirmDelete
},
......@@ -189,7 +185,7 @@ div
columns = [{
name: 'title',
field: 'title',
label: this.$t('fields.title'),
label: this.$t('general.title'),
align: 'left',
sortable: true,
filter: true
......
......@@ -18,9 +18,9 @@
mb-popup-proxy
.q-pa-md
.text-bold
| Change ACL:
| {{$('general.change_acl')}}:
mb-btn(:label="'Add user'")
mb-btn(:label="$t('general.add_user')")
.q-mt-sm
| {{ props.value.length }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment