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

View File

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

View File

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

View File

@ -92,7 +92,6 @@
"STOPPED_SPEED_THRESHOLD": "Geschwindigkeitsschwellenwert für Stopp" "STOPPED_SPEED_THRESHOLD": "Geschwindigkeitsschwellenwert für Stopp"
}, },
"SPORTS_EDITION": "Sportarten-Einstellungsausgabe", "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_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": "Dein Konto wurde erfolgreich erstellt.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Ein Aktivierungslink für Dein Konto wurde an die angegebene E-Mail Adresse geschickt.", "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", "DAY": "day | days",
"DISPLAYED": "Displayed", "DISPLAYED": "Displayed",
"DOCUMENTATION": "documentation", "DOCUMENTATION": "documentation",
"FALSE": "False",
"HERE": "here", "HERE": "here",
"HIDDEN": "Hidden", "HIDDEN": "Hidden",
"HOME": "Home", "HOME": "Home",
@ -22,6 +21,5 @@
"LABEL": "par page" "LABEL": "par page"
} }
}, },
"TOTAL": "Total", "TOTAL": "Total"
"TRUE": "True"
} }

View File

@ -69,6 +69,11 @@
"EDIT_PREFERENCES": "Edit preferences", "EDIT_PREFERENCES": "Edit preferences",
"EDIT_SPORTS_PREFERENCES": "Edit sports preferences", "EDIT_SPORTS_PREFERENCES": "Edit sports preferences",
"ERRORED_EMAIL_UPDATE": "Please {0} to change your email address again or contact the administrator", "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_DAY_OF_WEEK": "First day of week",
"FIRST_NAME": "First name", "FIRST_NAME": "First name",
"LANGUAGE": "Language", "LANGUAGE": "Language",
@ -92,7 +97,6 @@
"STOPPED_SPEED_THRESHOLD": "stopped speed threshold" "STOPPED_SPEED_THRESHOLD": "stopped speed threshold"
}, },
"SPORTS_EDITION": "Sports preferences edition", "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_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": "Your account has been created successfully.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "A link to activate your account has been emailed to the address provided.", "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", "DAY": "jour | jours",
"DISPLAYED": "Affiché", "DISPLAYED": "Affiché",
"DOCUMENTATION": "documentation (en)", "DOCUMENTATION": "documentation (en)",
"FALSE": "Faux",
"HERE": "ici", "HERE": "ici",
"HIDDEN": "Masqué", "HIDDEN": "Masqué",
"HOME": "Accueil", "HOME": "Accueil",
@ -22,6 +21,5 @@
"LABEL": "par page" "LABEL": "par page"
} }
}, },
"TOTAL": "Total", "TOTAL": "Total"
"TRUE": "Vrai"
} }

View File

@ -68,6 +68,11 @@
"EDIT": "Modifier le profil", "EDIT": "Modifier le profil",
"EDIT_PREFERENCES": "Modifier les préférences", "EDIT_PREFERENCES": "Modifier les préférences",
"EDIT_SPORTS_PREFERENCES": "Modifier les préférences des sports", "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", "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_DAY_OF_WEEK": "Premier jour de la semaine",
"FIRST_NAME": "Prénom", "FIRST_NAME": "Prénom",
@ -92,7 +97,6 @@
"STOPPED_SPEED_THRESHOLD": "seuil de vitesse arrêtée" "STOPPED_SPEED_THRESHOLD": "seuil de vitesse arrêtée"
}, },
"SPORTS_EDITION": "Mise à jour des préférences des sports", "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_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": "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.", "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", "DAY": "giorno | giorni",
"DISPLAYED": "Mostrato", "DISPLAYED": "Mostrato",
"DOCUMENTATION": "documentazione", "DOCUMENTATION": "documentazione",
"FALSE": "Falso",
"HERE": "qui", "HERE": "qui",
"HIDDEN": "Nascosto", "HIDDEN": "Nascosto",
"HOME": "Home", "HOME": "Home",
@ -22,6 +21,5 @@
"LABEL": "per pagina" "LABEL": "per pagina"
} }
}, },
"TOTAL": "Totale", "TOTAL": "Totale"
"TRUE": "Vero"
} }

View File

@ -79,7 +79,6 @@
"STOPPED_SPEED_THRESHOLD": "Limite minimo di velocità" "STOPPED_SPEED_THRESHOLD": "Limite minimo di velocità"
}, },
"SPORTS_EDITION": "Preferenze sport", "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_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": "Il tuo account è stato creato con successo.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Un link per attivare il tuo account è stato inviato all'indirizzo specificato.", "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", "DAY": "dag | dagen",
"DISPLAYED": "Weergegeven", "DISPLAYED": "Weergegeven",
"DOCUMENTATION": "documentatie", "DOCUMENTATION": "documentatie",
"FALSE": "Waar",
"HERE": "hier", "HERE": "hier",
"HIDDEN": "Verborgen", "HIDDEN": "Verborgen",
"HOME": "Startscherm", "HOME": "Startscherm",
@ -22,6 +21,5 @@
"LABEL": "per pagina" "LABEL": "per pagina"
} }
}, },
"TOTAL": "Totaal", "TOTAL": "Totaal"
"TRUE": "Onwaar"
} }

View File

@ -92,7 +92,6 @@
"STOPPED_SPEED_THRESHOLD": "snelheidsgrens voor stilstand" "STOPPED_SPEED_THRESHOLD": "snelheidsgrens voor stilstand"
}, },
"SPORTS_EDITION": "Sport voorkeuren aanpassen", "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_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": "Uw account werd succesvol aangemaakt.",
"SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Een link om uw account te activeren werd doorgestuurd naar opgegeven email adres.", "SUCCESSFUL_REGISTRATION_WITH_EMAIL": "Een link om uw account te activeren werd doorgestuurd naar opgegeven email adres.",