Merge branch '5-internationalization-missing-core-translations' into 'develop'

Added some missing internationalization of core component groups

See merge request bramw/baserow!382
This commit is contained in:
Bram Wiepjes committed 2021-09-21 12:23:30 +00:00
commit 55aaec00bf
16 files changed
+217 -51

No files matched your search

+2
View File
@@ -9,6 +9,8 @@ export default {
change: 'Change',
delete: 'Delete',
rename: 'Rename',
add: 'Add',
makeChoice: 'Make a choice',
},
adminType: {
settings: 'Settings',
+2
View File
@@ -9,6 +9,8 @@ export default {
change: 'Changer',
delete: 'Supprimer',
rename: 'Renomer',
add: 'Ajouter',
makeChoice: 'Choisissez',
},
adminType: {
settings: 'Paramètres',
@@ -15,7 +15,7 @@
></i>
{{ selectedName }}
</template>
<template v-else>{{ $t('dropdown.makeChoice') }}</template>
<template v-else>{{ $t('action.makeChoice') }}</template>
<i class="dropdown__toggle-icon fas fa-caret-down"></i>
</a>
<div class="dropdown__items" :class="{ hidden: !open }">
@@ -45,18 +45,3 @@ export default {
mixins: [dropdown],
}
</script>
<i18n>
{
"en": {
"dropdown": {
"makeChoice": "Make a choice"
}
},
"en": {
"dropdown": {
"makeChoice": "Choisissez"
}
}
}
</i18n>
@@ -10,7 +10,7 @@
<template v-if="displayName !== null">
{{ displayName }}
</template>
<template v-else>Make a choice</template>
<template v-else>{{ $t('action.makeChoice') }}</template>
<i class="dropdown__toggle-icon fas fa-caret-down"></i>
</a>
<div class="dropdown__items" :class="{ hidden: !open }">
@@ -1,6 +1,6 @@
<template>
<div class="paginator">
<div class="paginator__name">page</div>
<div class="paginator__name">{{ $t('paginator.page') }}</div>
<div class="paginator__group">
<a
class="paginator__button"
@@ -17,7 +17,9 @@
type="number"
@keypress.enter="changePage(textInputPage)"
/>
<div class="paginator__count">of {{ totalPages }}</div>
<div class="paginator__count">
{{ $t('paginator.of', { pages: totalPages }) }}
</div>
<a
class="paginator__button"
:class="{
@@ -83,3 +85,20 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"paginator": {
"page": "page",
"of": "of {pages}"
}
},
"fr": {
"paginator": {
"page": "page",
"of": "sur {pages}"
}
}
}
</i18n>
@@ -3,7 +3,7 @@
<div class="control">
<label class="control__label">
<i class="fas fa-font"></i>
Name
{{ $t('applicationForm.nameLabel') }}
</label>
<div class="control__elements">
<input
@@ -15,7 +15,7 @@
@blur="$v.values.name.$touch()"
/>
<div v-if="$v.values.name.$error" class="error">
This field is required.
{{ $t('error.requiredField') }}
</div>
</div>
</div>
@@ -48,3 +48,18 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"applicationForm": {
"nameLabel": "Name"
}
},
"fr": {
"applicationForm": {
"nameLabel": "Nom"
}
}
}
</i18n>
@@ -1,7 +1,7 @@
<template>
<Modal>
<h2 class="box__title">
Create new {{ applicationType.getName() | lowercase }}
{{ $t('action.createNew') }} {{ applicationType.getName() | lowercase }}
</h2>
<Error :error="error"></Error>
<component
@@ -16,7 +16,7 @@
:class="{ 'button--loading': loading }"
:disabled="loading"
>
Add {{ applicationType.getName() | lowercase }}
{{ $t('action.add') }} {{ applicationType.getName() | lowercase }}
</button>
</div>
</div>
@@ -1,6 +1,6 @@
<template>
<Modal>
<h2 class="box__title">Create new group</h2>
<h2 class="box__title">{{ $t('createGroupModal.createNew') }}</h2>
<Error :error="error"></Error>
<GroupForm ref="groupForm" @submitted="submitted">
<div class="actions">
@@ -10,7 +10,7 @@
:class="{ 'button--loading': loading }"
:disabled="loading"
>
Add group
{{ $t('createGroupModal.add') }}
</button>
</div>
</div>
@@ -50,3 +50,20 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"createGroupModal": {
"createNew": "Create new group",
"add": "Add group"
}
},
"fr": {
"createGroupModal": {
"createNew": "Nouveau groupe",
"add": "Ajouter le groupe"
}
}
}
</i18n>
@@ -118,7 +118,7 @@ export default {
"members": "Membres",
"viewTrash": "Voir la corbeille",
"leaveGroup": "Quitter le groupe",
"deleteGroup": "Supprimer le group"
"deleteGroup": "Supprimer le groupe"
}
}
}
@@ -3,7 +3,7 @@
<div class="control">
<label class="control__label">
<i class="fas fa-font"></i>
Name
{{ $t('groupForm.nameLabel') }}
</label>
<div class="control__elements">
<input
@@ -15,7 +15,7 @@
@blur="$v.values.name.$touch()"
/>
<div v-if="$v.values.name.$error" class="error">
This field is required.
{{ $t('error.requiredField') }}
</div>
</div>
</div>
@@ -48,3 +48,18 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"groupForm": {
"nameLabel": "Name"
}
},
"fr": {
"groupForm": {
"nameLabel": "Nom"
}
}
}
</i18n>
@@ -5,11 +5,14 @@
<div class="alert__icon">
<i class="fas fa-exclamation"></i>
</div>
<div class="alert__title">Invitation</div>
<div class="alert__title">{{ $t('groupInvitation.title') }}</div>
<p class="alert__content">
<strong>{{ invitation.invited_by }}</strong> has invited you to join
<strong>{{ invitation.group }}</strong
>.
{{
$t('groupInvitation.message', {
by: invitation.invited_by,
group: invitation.group,
})
}}
</p>
<div v-if="invitation.message !== ''" class="quote">
"{{ invitation.message }}"
@@ -19,14 +22,14 @@
:class="{ 'button--loading': rejectLoading }"
:disabled="rejectLoading || acceptLoading"
@click="!rejectLoading && !acceptLoading && reject(invitation)"
>Reject</a
>{{ $t('groupInvitation.reject') }}</a
>
<a
class="button button--success dashboard__alert-button"
:class="{ 'button--loading': acceptLoading }"
:disabled="rejectLoading || acceptLoading"
@click="!rejectLoading && !acceptLoading && accept(invitation)"
>Accept</a
>{{ $t('groupInvitation.accept') }}</a
>
</div>
</template>
@@ -96,3 +99,24 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"groupInvitation": {
"title": "Invitation",
"message": "{by} has invited you to join {group}.",
"reject": "Reject",
"accept": "Accept"
}
},
"fr": {
"groupInvitation": {
"title": "Invitation",
"message": "{by} vous a invité à rejoindre le groupe {group}.",
"reject": "Refuser",
"accept": "Accepter"
}
}
}
</i18n>
@@ -1,16 +1,12 @@
<template>
<Modal>
<h2 class="box__title">Leave {{ group.name }}</h2>
<h2 class="box__title">
{{ $t('leaveGroupModal.title', { group: group.name }) }}
</h2>
<Error :error="error"></Error>
<div>
<p>
Are you sure you want to leave the group
<strong>{{ group.name }}</strong
>? You won't be able to access the related applications anymore and if
you want to regain access, one of the admins must invite you again. If
you leave the group, it will not be deleted. All the other members will
still have access to it. It is not possible to leave a group if you're
the last admin because that will leave it unmaintained.
{{ $t('leaveGroupModal.message', { group: group.name }) }}
</p>
<div class="actions">
<div class="align-right">
@@ -20,7 +16,7 @@
:disabled="loading"
@click="leaveGroup()"
>
Leave group
{{ $t('leaveGroupModal.leave') }}
</button>
</div>
</div>
@@ -63,3 +59,22 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"leaveGroupModal": {
"title": "Leave {group}",
"message": "Are you sure you want to leave the group {group}? You won't be able to access the related applications anymore and if you want to regain access, one of the admins must invite you again. If you leave the group, it will not be deleted. All the other members will still have access to it. It is not possible to leave a group if you're the last admin because that will leave it unmaintained.",
"leave": "Leave group"
}
},
"fr": {
"leaveGroupModal": {
"title": "Quitter {groupe}",
"message": "Êtes-vous sûr·e de vouloir quitter le groupe {group} ? Vous ne serez plus en mesure d'accéder aux applications associées et si vous souhaitez y accéder de nouveau, l'un des administrateurs du groupe devra vous envoyer une nouvelle invitation. Si vous quittez un groupe, celui-ci ne sera pas supprimé et les autres membres y auront toujours accès. Il n'est pas possible de quitter un groupe si vous êtes le dernier administrateur car il se retrouverait alors sans propriétaire.",
"leave": "Quitter le groupe"
}
}
}
</i18n>
@@ -3,8 +3,8 @@
<div class="alert__icon">
<div class="loading alert__icon-loading"></div>
</div>
<div class="alert__title">Reconnecting</div>
<p class="alert__content">Reconnecting with server.</p>
<div class="alert__title">{{ $t('connectingNotification.title') }}</div>
<p class="alert__content">{{ $t('connectingNotification.content') }}</p>
</div>
</template>
@@ -13,3 +13,20 @@ export default {
name: 'ConnectingNotification',
}
</script>
<i18n>
{
"en": {
"connectingNotification": {
"title": "Reconnecting",
"content": "Reconnecting with server."
}
},
"fr": {
"connectingNotification": {
"title": "Reconnexion en cours",
"content": "Reconnexion avec le serveur en cours"
}
}
}
</i18n>
@@ -5,15 +5,17 @@
<div class="alert__icon">
<i class="fas fa-exclamation"></i>
</div>
<div class="alert__title">Failed</div>
<div class="alert__title">
{{ $t('failedConnectingNotification.title') }}
</div>
<p class="alert__content">
Connection to the server has failed. Please refresh the page.
{{ $t('failedConnectingNotification.content') }}
</p>
<a
class="button margin-top-1"
:class="{ 'button--loading': loading }"
@click="reload()"
>Refresh page</a
>{{ $t('failedConnectingNotification.action') }}</a
>
</div>
</template>
@@ -34,3 +36,22 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"failedConnectingNotification": {
"title": "Failed",
"content": "Connection to the server has failed. Please refresh the page.",
"action": "Refresh page"
}
},
"fr": {
"failedConnectingNotification": {
"title": "Échec de connexion",
"content": "La connexion avec le serveur a été interrompue. Merci de rafraîchir la page.",
"action": "Rafraîchir la page"
}
}
}
</i18n>
@@ -1,14 +1,16 @@
<template>
<div class="templates__sidebar">
<slot></slot>
<div class="templates__sidebar-title">Templates</div>
<div class="templates__sidebar-title">
{{ $t('templateCategories.title') }}
</div>
<div class="templates__search">
<div class="input__with-icon input__with-icon--left">
<input
v-model="search"
type="text"
class="input"
placeholder="Search templates"
:placeholder="$t('templateCategories.search')"
/>
<i class="fas fa-search"></i>
</div>
@@ -65,3 +67,20 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"templateCategories": {
"search": "Search templates",
"title": "Templates"
}
},
"fr": {
"templateCategories": {
"search": "Chercher des modèles",
"title": "Modèles"
}
}
}
</i18n>
@@ -13,7 +13,7 @@
class="button"
:class="{ 'button--loading': installing }"
@click="install(template)"
>Use this template</a
>{{ $t('templateHeader.use') }}</a
>
</div>
</template>
@@ -75,3 +75,18 @@ export default {
},
}
</script>
<i18n>
{
"en": {
"templateHeader": {
"use": "Use this template"
}
},
"fr": {
"templateHeader": {
"use": "Utiliser ce modèle"
}
}
}
</i18n>