Client - preferences labels update

This commit is contained in:
Sam 2023-04-08 10:31:58 +02:00
parent adad72d9a3
commit fc9b22cb72
12 changed files with 21 additions and 27 deletions

View File

@ -19,8 +19,8 @@
</dd>
<dt>{{ $t('user.PROFILE.ASCENT_DATA') }}:</dt>
<dd>{{ $t(`common.${display_ascent}`) }}</dd>
<dt>{{ $t('user.PROFILE.START_ELEVATION_AT_ZERO') }}:</dt>
<dd>{{ $t(`common.${startElevationAtZero}`) }}</dd>
<dt>{{ $t('user.PROFILE.ELEVATION_CHART_START.LABEL') }}:</dt>
<dd>{{ $t(`user.PROFILE.ELEVATION_CHART_START.${user.start_elevation_at_zero ? 'ZERO' : 'MIN_ALT'}`) }}</dd>
</dl>
<div class="profile-buttons">
<button @click="$router.push('/profile/edit/preferences')">
@ -56,7 +56,6 @@
: languageLabels['en']
)
const fistDayOfWeek = computed(() => (props.user.weekm ? 'MONDAY' : 'SUNDAY'))
const startElevationAtZero = computed(() => (props.user.start_elevation_at_zero ? 'TRUE' : 'FALSE'))
const timezone = computed(() =>
props.user.timezone ? props.user.timezone : 'Europe/Paris'
)

View File

@ -101,7 +101,7 @@
</div>
<div class="form-items form-checkboxes">
<span class="checkboxes-label">
{{ $t('user.PROFILE.START_ELEVATION_AT_ZERO') }}
{{ $t('user.PROFILE.ELEVATION_CHART_START.LABEL') }}
</span>
<div class="checkboxes">
<label v-for="status in startElevationAtZeroData" :key="status.label">
@ -114,7 +114,7 @@
@input="updateStartElevationAtZero(status.value)"
/>
<span class="checkbox-label">
{{ $t(`common.${status.label}`) }}
{{ $t(`user.PROFILE.ELEVATION_CHART_START.${status.label}`) }}
</span>
</label>
</div>
@ -192,11 +192,11 @@
]
const startElevationAtZeroData = [
{
label: 'TRUE',
label: 'ZERO',
value: true
},
{
label: 'FALSE',
label: 'MIN_ALT',
value: false
}
]

View File

@ -5,7 +5,6 @@
"DAY": "Tag | Tage",
"DISPLAYED": "Angezeigt",
"DOCUMENTATION": "Dokumentation (en)",
"FALSE": "Falsch",
"HERE": "hier",
"HIDDEN": "Versteckt",
"HOME": "Startseite",
@ -22,6 +21,5 @@
"LABEL": "pro Seite"
}
},
"TOTAL": "Insgesamt",
"TRUE": "Wahr"
"TOTAL": "Insgesamt"
}

View File

@ -92,7 +92,6 @@
"STOPPED_SPEED_THRESHOLD": "Geschwindigkeitsschwellenwert für Stopp"
},
"SPORTS_EDITION": "Sportarten-Einstellungsausgabe",
"START_ELEVATION_AT_ZERO": "Starten Sie das Höhendiagramm bei null",
"SUCCESSFUL_EMAIL_UPDATE": "Dein Konto wurde erfolgreich aktualisiert. Bitte prüfe Deine E-Mail um die neue E-Mail Adresse zu bestätigen.",
"SUCCESSFUL_REGISTRATION": "Dein Konto wurde erfolgreich erstellt.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Ein Aktivierungslink für Dein Konto wurde an die angegebene E-Mail Adresse geschickt.",

View File

@ -5,7 +5,6 @@
"DAY": "day | days",
"DISPLAYED": "Displayed",
"DOCUMENTATION": "documentation",
"FALSE": "False",
"HERE": "here",
"HIDDEN": "Hidden",
"HOME": "Home",
@ -22,6 +21,5 @@
"LABEL": "par page"
}
},
"TOTAL": "Total",
"TRUE": "True"
"TOTAL": "Total"
}

View File

@ -69,6 +69,11 @@
"EDIT_PREFERENCES": "Edit preferences",
"EDIT_SPORTS_PREFERENCES": "Edit sports preferences",
"ERRORED_EMAIL_UPDATE": "Please {0} to change your email address again or contact the administrator",
"ELEVATION_CHART_START": {
"LABEL": "Elevation chart starts at",
"ZERO": "Zero",
"MIN_ALT": "Minimum altitude"
},
"FIRST_DAY_OF_WEEK": "First day of week",
"FIRST_NAME": "First name",
"LANGUAGE": "Language",
@ -92,7 +97,6 @@
"STOPPED_SPEED_THRESHOLD": "stopped speed threshold"
},
"SPORTS_EDITION": "Sports preferences edition",
"START_ELEVATION_AT_ZERO": "Start elevation plots at zero",
"SUCCESSFUL_EMAIL_UPDATE": "Your account has been updated successfully. Please check your email to confirm your new email address.",
"SUCCESSFUL_REGISTRATION": "Your account has been created successfully.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "A link to activate your account has been emailed to the address provided.",

View File

@ -5,7 +5,6 @@
"DAY": "jour | jours",
"DISPLAYED": "Affiché",
"DOCUMENTATION": "documentation (en)",
"FALSE": "Faux",
"HERE": "ici",
"HIDDEN": "Masqué",
"HOME": "Accueil",
@ -22,6 +21,5 @@
"LABEL": "par page"
}
},
"TOTAL": "Total",
"TRUE": "Vrai"
"TOTAL": "Total"
}

View File

@ -68,6 +68,11 @@
"EDIT": "Modifier le profil",
"EDIT_PREFERENCES": "Modifier les préférences",
"EDIT_SPORTS_PREFERENCES": "Modifier les préférences des sports",
"ELEVATION_CHART_START": {
"LABEL": "Début de l'axe pour le graphe affichant l'altitude",
"ZERO": "0",
"MIN_ALT": "Altitude minimale"
},
"ERRORED_EMAIL_UPDATE": "Veuillez vous {0} pour changer de nouveau votre adresse électronique ou contacter l'administrateur",
"FIRST_DAY_OF_WEEK": "Premier jour de la semaine",
"FIRST_NAME": "Prénom",
@ -92,7 +97,6 @@
"STOPPED_SPEED_THRESHOLD": "seuil de vitesse arrêtée"
},
"SPORTS_EDITION": "Mise à jour des préférences des sports",
"START_ELEVATION_AT_ZERO": "Démarrer le tracé d'altitude à zéro",
"SUCCESSFUL_EMAIL_UPDATE": "Votre compte a été modifié avec succès. Veuillez vérifier votre boîte de réception pour valider votre nouvelle adresse électronique.",
"SUCCESSFUL_REGISTRATION": "Votre compte a été créé avec succès.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Un lien pour activer votre compte a été envoyé à l'adresse électronique fournie.",

View File

@ -5,7 +5,6 @@
"DAY": "giorno | giorni",
"DISPLAYED": "Mostrato",
"DOCUMENTATION": "documentazione",
"FALSE": "Falso",
"HERE": "qui",
"HIDDEN": "Nascosto",
"HOME": "Home",
@ -22,6 +21,5 @@
"LABEL": "per pagina"
}
},
"TOTAL": "Totale",
"TRUE": "Vero"
"TOTAL": "Totale"
}

View File

@ -79,7 +79,6 @@
"STOPPED_SPEED_THRESHOLD": "Limite minimo di velocità"
},
"SPORTS_EDITION": "Preferenze sport",
"START_ELEVATION_AT_ZERO": "Inizia il grafico dell'elevazione a 0",
"SUCCESSFUL_EMAIL_UPDATE": "Il tuo account è stato aggiornato con successo. Per favore controlla la tua email per confermare il tuo indirizzo email.",
"SUCCESSFUL_REGISTRATION": "Il tuo account è stato creato con successo.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Un link per attivare il tuo account è stato inviato all'indirizzo specificato.",

View File

@ -5,7 +5,6 @@
"DAY": "dag | dagen",
"DISPLAYED": "Weergegeven",
"DOCUMENTATION": "documentatie",
"FALSE": "Waar",
"HERE": "hier",
"HIDDEN": "Verborgen",
"HOME": "Startscherm",
@ -22,6 +21,5 @@
"LABEL": "per pagina"
}
},
"TOTAL": "Totaal",
"TRUE": "Onwaar"
"TOTAL": "Totaal"
}

View File

@ -92,7 +92,6 @@
"STOPPED_SPEED_THRESHOLD": "snelheidsgrens voor stilstand"
},
"SPORTS_EDITION": "Sport voorkeuren aanpassen",
"START_ELEVATION_AT_ZERO": "Begin hoogtegrafiek op nul",
"SUCCESSFUL_EMAIL_UPDATE": "Uw account werd succesvol bijgewerkt. Controleer uw inbox om uw nieuw email adres te bevestigen.",
"SUCCESSFUL_REGISTRATION": "Uw account werd succesvol aangemaakt.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Een link om uw account te activeren werd doorgestuurd naar opgegeven email adres.",