Skip to content
Snippets Groups Projects
Commit 2738058f authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Add translation(s)

parent 0c063289
No related branches found
No related tags found
No related merge requests found
{ {
"person-profile": {
"profile-caption": "Profil von",
"given-name": "Vorname",
"family-name": "Nachname",
"email": "Email",
"telephone": "Telefon",
"role": "Rolle",
"none-selected": "Keine Person ausgewählt",
"staff": "Mitarbeiter/in",
"alumni": "Absolvent/in"
}
} }
{ {
"person-profile": {
"profile-caption": "Profile for",
"given-name": "given name",
"family-name": "family name",
"email": "email",
"telephone": "telephone",
"role": "role",
"none-selected": "No person selected",
"staff": "staff",
"alumni": "alumni"
}
} }
...@@ -75,9 +75,9 @@ class PersonProfile extends VPULitElement { ...@@ -75,9 +75,9 @@ class PersonProfile extends VPULitElement {
if (this.person !== null && this.person.roles !== undefined) { if (this.person !== null && this.person.roles !== undefined) {
// roles are only defined for self-disclosure // roles are only defined for self-disclosure
if (this.person.roles.indexOf('ROLE_STAFF') > -1) { if (this.person.roles.indexOf('ROLE_STAFF') > -1) {
role = 'Mitarbeiter/in'; role = i18n.t('person-profile.staff');
} else if (this.person.roles.indexOf('ROLE_ALUMNI') > -1) { } else if (this.person.roles.indexOf('ROLE_ALUMNI') > -1) {
role = 'Absolvent/in'; role = i18n.t('person-profile.alumni');
} }
} }
const bulmaCSS = getAssetURL(bulmaCSSPath); const bulmaCSS = getAssetURL(bulmaCSSPath);
...@@ -92,18 +92,18 @@ class PersonProfile extends VPULitElement { ...@@ -92,18 +92,18 @@ class PersonProfile extends VPULitElement {
} }
</style> </style>
${this.person !== null && this.person.name !== '' ? html`<h3>PROFILE for ${this.person.name}</h3> ${this.person !== null && this.person.name !== '' ? html`<h3>${i18n.t('person-profile.profile-caption')} ${this.person.name}</h3>
<table class="profile"> <table class="profile">
<thead></thead> <thead></thead>
<tbody> <tbody>
<tr><td class="td-profile">Vorname</td><td>${this.person.givenName}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.given-name')}</td><td>${this.person.givenName}</td></tr>
<tr><td class="td-profile">Nachname</td><td>${this.person.familyName}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.family-name')}</td><td>${this.person.familyName}</td></tr>
<tr><td class="td-profile">Email</td><td>${this.person.email}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.email')}</td><td>${this.person.email}</td></tr>
<tr><td class="td-profile">Telefon</td><td>${this.person.telephone}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.telephone')}</td><td>${this.person.telephone}</td></tr>
<tr><td class="td-profile">Funktion</td><td>${role}</td></tr> <tr><td class="td-profile">${i18n.t('person-profile.role')}</td><td>${role}</td></tr>
</tbody> </tbody>
<tfoot></tfoot> <tfoot></tfoot>
</table>` : html`Keine Person ausgewählt.` } </table>` : i18n.t('person-profile.none-selected') }
`; `;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment