summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleDialog.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/GroupModuleDialog.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/GroupModuleDialog.vue')
-rw-r--r--webapp/src/components/GroupModuleDialog.vue56
1 files changed, 38 insertions, 18 deletions
diff --git a/webapp/src/components/GroupModuleDialog.vue b/webapp/src/components/GroupModuleDialog.vue
index 97a3d20..69527b2 100644
--- a/webapp/src/components/GroupModuleDialog.vue
+++ b/webapp/src/components/GroupModuleDialog.vue
@@ -1,25 +1,45 @@
<i18n>
{
"en": {
- "title-delete-group": "Delete this group? | Delete these {0} groups?",
- "title-delete-client": "Delete this client? | Delete these {0} clients?",
- "title-remove-group": "Remove this subgroup? | Remove these {0} subgroups?",
- "title-remove-client": "Remove this client? | Remove these {0} clients?",
- "title-add-group": "Add groups | Add this group? | Add these {0} groups?",
- "title-add-client": "Add clients | Add this client? | Add these {0} clients?",
- "delete-instead-remove-group": "Permanently delete group | Permanently delete groups",
- "delete-instead-remove-client": "Permanently delete client | Permanently delete clients",
+ "title": {
+ "delete": {
+ "group": "Delete this group? | Delete these {0} groups?",
+ "client": "Delete this client? | Delete these {0} clients?"
+ },
+ "remove": {
+ "group": "Remove this subgroup? | Remove these {0} subgroups?",
+ "client": "Remove this client? | Remove these {0} clients?"
+ },
+ "add": {
+ "group": "Add groups | Add this group? | Add these {0} groups?",
+ "client": "Add clients | Add this client? | Add these {0} clients?"
+ }
+ },
+ "deletePermanently": {
+ "group": "Permanently delete group | Permanently delete groups",
+ "client": "Permanently delete client | Permanently delete clients"
+ },
"new": "New"
},
"de": {
- "title-delete-group": "Diese Gruppe löschen? | Diese {0} Gruppen löschen?",
- "title-delete-client": "Diesen Clienten löschen? | Diese {0} Clienten löschen?",
- "title-remove-group": "Diese Untergruppe entfernen? | Diese {0} Untergruppen entfernen?",
- "title-remove-client": "Diesen Clienten entfernen? | Diese {0} Clienten entfernen?",
- "title-add-group": "Gruppen hinzufügen | Diese Gruppe hinzufügen? | Diese {0} Gruppen hinzufügen?",
- "title-add-client": "Clienten hinzufügen | Diesen Clienten hinzufügen? | Diese {0} Clienten hinzufügen?",
- "delete-instead-remove-group": "Gruppe dauerhaft löschen | Gruppen dauerhaft löschen",
- "delete-instead-remove-client": "Client dauerhaft löschen | Clienten dauerhaft löschen",
+ "title": {
+ "delete": {
+ "group": "Diese Gruppe löschen? | Diese {0} Gruppen löschen?",
+ "client": "Diesen Clienten löschen? | Diese {0} Clienten löschen?"
+ },
+ "remove": {
+ "group": "Diese Untergruppe entfernen? | Diese {0} Untergruppen entfernen?",
+ "client": "Diesen Clienten entfernen? | Diese {0} Clienten entfernen?"
+ },
+ "add": {
+ "group": "Gruppen hinzufügen | Diese Gruppe hinzufügen? | Diese {0} Gruppen hinzufügen?",
+ "client": "Clienten hinzufügen | Diesen Clienten hinzufügen? | Diese {0} Clienten hinzufügen?"
+ }
+ },
+ "deletePermanently": {
+ "group": "Gruppe dauerhaft löschen | Gruppen dauerhaft löschen",
+ "client": "Client dauerhaft löschen | Clienten dauerhaft löschen"
+ },
"new": "Neu"
}
}
@@ -71,7 +91,7 @@
<v-checkbox
class="delete-checkbox"
v-if="dialog.info.action === 'remove'"
- :label="$tc('delete-instead-remove-' + dialog.info.type, selectedCount)"
+ :label="$tc('deletePermanently.' + dialog.info.type, selectedCount)"
color="error"
v-model="deleteInsteadOfRemove"
hide-details
@@ -113,7 +133,7 @@ export default {
return this.action === 'add' ? this.selected.length : (this.dialog.info.selected ? this.dialog.info.selected.length : 0)
},
title () {
- return this.$tc('title-' + this.action + '-' + this.dialog.info.type, this.selectedCount, [this.selectedCount])
+ return this.$tc('title.' + this.action + '.' + this.dialog.info.type, this.selectedCount, [this.selectedCount])
},
items () {
if (this.dialog.info.type === 'group') return this.$store.state.groups.groupList