From c8449a069363560957c59c4a4c2b4cdd4ed6dc3b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 30 Sep 2020 10:45:22 +0200 Subject: [PATCH] Move contact to organized by And minor things Signed-off-by: Thomas Citharel --- js/src/i18n/en_US.json | 9 +++++++-- js/src/i18n/fr_FR.json | 9 +++++++-- js/src/views/About/AboutInstance.vue | 4 ++-- js/src/views/Event/Event.vue | 2 +- js/src/views/User/Register.vue | 4 ++-- 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 2720a547f..ff959e12e 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -469,7 +469,7 @@ "Decline": "Decline", "Rename": "Rename", "Move": "Move", - "Contact": "Contact|Contacts", + "Contact": "Contact", "Website": "Website", "Actor": "Actor", "Statut": "Statut", @@ -768,5 +768,10 @@ "Pick": "Pick", "The event will show as attributed to your personal profile.": "The event will show as attributed to your personal profile.", "The event will show as attributed to this group.": "The event will show as attributed to this group.", - "{contact} will be displayed as contact.": "{contact} will be displayed as contact.|{contact} will be displayed as contacts." + "{contact} will be displayed as contact.": "{contact} will be displayed as contact.|{contact} will be displayed as contacts.", + "and {number} groups": "and {number} groups", + "Will allow to display and manage your participation status on the event page when using this device. Uncheck if you're using a public device.": "Will allow to display and manage your participation status on the event page when using this device. Uncheck if you're using a public device.", + "Visit event page": "Visit event page", + "Remember my participation in this browser": "Remember my participation in this browser", + "Organized by": "Organized by" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 65ecf0406..03ea86886 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -101,7 +101,7 @@ "Confirmed": "Confirmé·e", "Confirmed at": "Confirmé·e à", "Confirmed: Will happen": "Confirmé : aura lieu", - "Contact": "Contact|Contacts", + "Contact": "Contact", "Continue editing": "Continuer la modification", "Cookies and Local storage": "Cookies et stockage local", "Country": "Pays", @@ -805,5 +805,10 @@ "Group settings saved": "Paramètres du groupe sauvegardés", "Error": "Erreur", "Registrations are restricted by allowlisting.": "Les inscriptions sont restreintes par liste d'accès.", - "{contact} will be displayed as contact.": "{contact} sera affiché·e comme contact.|{contact} seront affiché·es comme contacts." + "{contact} will be displayed as contact.": "{contact} sera affiché·e comme contact.|{contact} seront affiché·es comme contacts.", + "and {number} groups": "et {number} groupes", + "Will allow to display and manage your participation status on the event page when using this device. Uncheck if you're using a public device.": "Permet d'afficher et de gérer le statut de votre participation sur la page de l'événement lorsque vous utilisez cet appareil. Décochez si vous utilisez un appareil public.", + "Visit event page": "Voir la page de l'événement", + "Remember my participation in this browser": "Se souvenir de ma participation dans ce navigateur", + "Organized by": "Organisé par" } diff --git a/js/src/views/About/AboutInstance.vue b/js/src/views/About/AboutInstance.vue index 6bd608768..ad30b08cf 100644 --- a/js/src/views/About/AboutInstance.vue +++ b/js/src/views/About/AboutInstance.vue @@ -105,13 +105,13 @@ export default class AboutInstance extends Vue { if (this.isContactURL) { return { uri: this.config.contact, - text: this.urlToHostname(this.config.contact) || (this.$t("Contact") as string), + text: AboutInstance.urlToHostname(this.config.contact) || (this.$t("Contact") as string), }; } return null; } - urlToHostname(url: string): string | null { + static urlToHostname(url: string): string | null { try { return new URL(url).hostname; } catch (e) { diff --git a/js/src/views/Event/Event.vue b/js/src/views/Event/Event.vue index 3e1895d26..03a442144 100644 --- a/js/src/views/Event/Event.vue +++ b/js/src/views/Event/Event.vue @@ -329,7 +329,7 @@ :endsOn="event.endsOn" /> - + diff --git a/js/src/views/User/Register.vue b/js/src/views/User/Register.vue index 2ed72b598..fa6454152 100644 --- a/js/src/views/User/Register.vue +++ b/js/src/views/User/Register.vue @@ -180,7 +180,7 @@ export default class Register extends Vue { config!: IConfig; - async submit(): Promise { + async submit(): Promise { this.sendingForm = true; this.credentials.locale = this.$i18n.locale; try { @@ -191,7 +191,7 @@ export default class Register extends Vue { variables: this.credentials, }); - return this.$router.push({ + this.$router.push({ name: RouteName.REGISTER_PROFILE, params: { email: this.credentials.email }, });