summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupView.vue
diff options
context:
space:
mode:
authorUdo Walter2018-08-03 05:23:18 +0200
committerUdo Walter2018-08-03 05:23:18 +0200
commita071feaf57284715bdf25d588ae9ba0ca424d6dd (patch)
tree088ea5de0a157070f3d08f639389d3b253c86bb9 /webapp/src/components/GroupModuleGroupView.vue
parent[webapp/external-backends] Language tags are now camelCase for consistency. G... (diff)
downloadbas-a071feaf57284715bdf25d588ae9ba0ca424d6dd.tar.gz
bas-a071feaf57284715bdf25d588ae9ba0ca424d6dd.tar.xz
bas-a071feaf57284715bdf25d588ae9ba0ca424d6dd.zip
[groups] add i18n
Diffstat (limited to 'webapp/src/components/GroupModuleGroupView.vue')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue34
1 files changed, 23 insertions, 11 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index 602e05d..8f99b1c 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -1,8 +1,20 @@
<i18n>
{
"en": {
+ "info": "Info",
+ "subgroups": "Subgroups",
+ "clients": "Clients",
+ "name": "Name",
+ "description": "Description",
+ "parents": "Parents"
},
"de": {
+ "info": "Info",
+ "subgroups": "Untergruppen",
+ "clients": "Clienten",
+ "name": "Name",
+ "description": "Beschreibung",
+ "parents": "Übergruppen"
}
}
</i18n>
@@ -16,9 +28,9 @@
<v-flex lg4 md6 xs12 order-lg1 order-xs2>
<v-layout column>
<v-flex>
- <v-text-field prepend-icon="label" v-if="editMode" class="info-input" label="Name" color="primary" v-model="info.name"></v-text-field>
+ <v-text-field prepend-icon="label" v-if="editMode" class="info-input" :label="$t('name')" color="primary" v-model="info.name"></v-text-field>
<div v-else class="info-input">
- <div class="body-2 info-heading"><v-icon>label</v-icon><span>Name</span></div>
+ <div class="body-2 info-heading"><v-icon>label</v-icon><span>{{ $t('name') }}</span></div>
<div class="info-text">{{ group.name || '-' }}</div>
</div>
</v-flex>
@@ -30,7 +42,7 @@
:items="$store.state.groups.groupList"
v-model="parentIds"
offset-y
- label="Parents"
+ :label="$t('parents')"
color="primary"
multiple
item-value="id"
@@ -48,7 +60,7 @@
</template>
</v-autocomplete>
<div v-else class="info-input">
- <div class="body-2 info-heading"><v-icon>description</v-icon><span>Parents</span></div>
+ <div class="body-2 info-heading"><v-icon>group_work</v-icon><span>{{ $t('parents') }}</span></div>
<div class="info-text">
<template v-if="group.parents && group.parents.length > 0">
<v-chip v-for="parent in group.parents" :key="parent.id" small>
@@ -62,21 +74,21 @@
</v-layout>
</v-flex>
<v-flex lg4 md6 xs12 order-lg2 order-xs3>
- <v-textarea prepend-icon="description" v-if="editMode" rows="1" auto-grow class="info-input" label="Description" color="primary" v-model="info.description"></v-textarea>
+ <v-textarea prepend-icon="description" v-if="editMode" rows="1" auto-grow class="info-input" :label="$t('description')" color="primary" v-model="info.description"></v-textarea>
<div v-else class="info-input">
- <div class="body-2 info-heading"><v-icon>description</v-icon><span>Description</span></div>
+ <div class="body-2 info-heading"><v-icon>description</v-icon><span>{{ $t('description') }}</span></div>
<pre class="info-text">{{ group.description || '-' }}</pre>
</div>
</v-flex>
<v-flex lg4 xs12 order-lg3 order-xs1 class="text-xs-right">
<div class="info-input">
<v-btn v-if="!editMode" color="primary" flat @click="editInfo" class="info-buttons">
- <v-icon left>create</v-icon>Edit
+ <v-icon left>create</v-icon>{{ $t('edit') }}
</v-btn>
<div v-else>
- <v-btn color="primary" flat @click="cancelEdit" class="info-buttons">Cancel</v-btn>
+ <v-btn color="primary" flat @click="cancelEdit" class="info-buttons">{{ $t('cancel') }}</v-btn>
<v-btn color="primary" @click="saveInfo" class="info-buttons">
- <v-icon left>save</v-icon>Save
+ <v-icon left>save</v-icon>{{ $t('save') }}
</v-btn>
</div>
</div>
@@ -85,9 +97,9 @@
</v-card-text>
</v-card>
<template v-if="group.id">
- <v-subheader>{{ tabIndex === 0 ? 'Groups' : 'Subgoups' }}</v-subheader>
+ <v-subheader>{{ $t('subgroups') }}</v-subheader>
<group-module-group-list :tabIndex="tabIndex" :groupId="group.id" :groups="group.subgroups" />
- <v-subheader>Clients</v-subheader>
+ <v-subheader>{{ $t('clients') }}</v-subheader>
<group-module-client-list :tabIndex="tabIndex" :groupId="group.id" :clients="group.clients" />
</template>
</div>