From 6d42c700bffc5099aa1de93359905b99e59104a6 Mon Sep 17 00:00:00 2001 From: Massedil Date: Sat, 27 Sep 2025 16:47:53 +0200 Subject: [PATCH] refactor: Rename "suspend" into "ban" for account deletion --- src/graphql/user.ts | 6 ++--- src/i18n/en_US.json | 13 +++++----- src/i18n/fr_FR.json | 13 +++++----- src/views/Admin/AdminProfile.vue | 2 +- src/views/Admin/AdminUserProfile.vue | 24 +++++++++---------- src/views/Moderation/ReportView.vue | 12 +++++----- src/views/Settings/AccountSettings.vue | 4 ++-- .../__snapshots__/adminProfile.spec.ts.snap | 2 +- 8 files changed, 39 insertions(+), 37 deletions(-) diff --git a/src/graphql/user.ts b/src/graphql/user.ts index 13628f416..5a01ee38a 100644 --- a/src/graphql/user.ts +++ b/src/graphql/user.ts @@ -76,7 +76,7 @@ export const VALIDATE_EMAIL = gql` } `; -export const DELETE_ACCOUNT = gql` +export const DELETE_ACCOUNT_AS_USER = gql` mutation DeleteAccount($password: String, $userId: ID) { deleteAccount(password: $password, userId: $userId) { id @@ -84,8 +84,8 @@ export const DELETE_ACCOUNT = gql` } `; -export const SUSPEND_USER = gql` - mutation SuspendUser($userId: ID) { +export const DELETE_ACCOUNT_AS_MODERATOR = gql` + mutation DeleteAccount($userId: ID) { deleteAccount(userId: $userId) { id } diff --git a/src/i18n/en_US.json b/src/i18n/en_US.json index c4b33cb5b..25eb7a710 100644 --- a/src/i18n/en_US.json +++ b/src/i18n/en_US.json @@ -368,8 +368,8 @@ "Displayed on homepage and meta tags. Describe what Mobilizon is and what makes this instance special in a single paragraph.": "Displayed on homepage and meta tags. Describe what Mobilizon is and what makes this instance special in a single paragraph.", "Distance": "Distance", "Do not receive any mail": "Do not receive any mail", - "Do you really want to suspend the account \u00ab\u00a0{emailAccount}\u00a0\u00bb\u00a0?": "Do you really want to suspend the account \u00ab\u00a0{emailAccount}\u00a0\u00bb\u00a0?", - "Do you really want to suspend this account? All of the user's profiles will be deleted.": "Do you really want to suspend this account? All of the user's profiles will be deleted.", + "Do you really want to ban the account \u00ab\u00a0{emailAccount}\u00a0\u00bb\u00a0?": "Do you really want to ban the account \u00ab\u00a0{emailAccount}\u00a0\u00bb\u00a0?", + "Do you really want to ban this account? All of the user's profiles will be deleted.": "Do you really want to ban this account? All of the user's profiles will be deleted.", "Do you really want to suspend this profile? All of the profiles content will be deleted.": "Do you really want to suspend this profile? All of the profiles content will be deleted.", "Do you wish to {create_event} or {explore_events}?": "Do you wish to {create_event} or {explore_events}?", "Do you wish to {create_group} or {explore_groups}?": "Do you wish to {create_group} or {explore_groups}?", @@ -1113,9 +1113,10 @@ "Subtitles": "Subtitles", "Suggestions:": "Suggestions:", "Suspend": "Suspend", + "Ban": "Ban", "Suspend group": "Suspend group", - "Suspend the account": "Suspend the account", - "Suspend the account?": "Suspend the account?", + "Ban the account": "Ban the account", + "Ban the account?": "Ban the account?", "Suspend the profile": "Suspend the profile", "Suspend the profile?": "Suspend the profile?", "Suspended": "Suspended", @@ -1192,7 +1193,7 @@ "The report will be sent to the moderators of your instance. You can explain why you report this content below.": "The report will be sent to the moderators of your instance. You can explain why you report this content below.", "The selected picture is too heavy. You need to select a file smaller than {size}.": "The selected picture is too heavy. You need to select a file smaller than {size}.", "The technical details of the error can help developers solve the problem more easily. Please add them to your feedback.": "The technical details of the error can help developers solve the problem more easily. Please add them to your feedback.", - "The user has been disabled": "The user has been disabled", + "The user has been banned": "The user has been banned", "The videoconference will be created on {service}": "The videoconference will be created on {service}", "The {default_privacy_policy} will be used. They will be translated in the user's language.": "The {default_privacy_policy} will be used. They will be translated in the user's language.", "The {default_terms} will be used. They will be translated in the user's language.": "The {default_terms} will be used. They will be translated in the user's language.", @@ -1285,7 +1286,7 @@ "This post is accessible only for members. You have access to it for moderation purposes only because you are an instance moderator.": "This post is accessible only for members. You have access to it for moderation purposes only because you are an instance moderator.", "This post is accessible only through it's link. Be careful where you post this link.": "This post is accessible only through it's link. Be careful where you post this link.", "This profile is from another instance, the informations shown here may be incomplete.": "This profile is from another instance, the informations shown here may be incomplete.", - "This profile is located on this instance, so you need to {access_the_corresponding_account} to suspend it.": "This profile is located on this instance, so you need to {access_the_corresponding_account} to suspend it.", + "This profile is located on this instance, so you need to {access_the_corresponding_account} to ban it.": "This profile is located on this instance, so you need to {access_the_corresponding_account} to ban it.", "This profile was not found": "This profile was not found", "This section lets you add links to external websites to the menu.": "This section lets you add links to external websites to the menu.", "This setting will be used to display the website and send you emails in the correct language.": "This setting will be used to display the website and send you emails in the correct language.", diff --git a/src/i18n/fr_FR.json b/src/i18n/fr_FR.json index 3e615e653..a77226602 100644 --- a/src/i18n/fr_FR.json +++ b/src/i18n/fr_FR.json @@ -366,8 +366,8 @@ "Domain or instance name": "Domaine ou nom de l'instance", "Domain": "Domaine", "Do not receive any mail": "Ne pas recevoir d'e-mail", - "Do you really want to suspend the account « {emailAccount} » ?": "Voulez-vous vraiment suspendre le compte « {emailAccount} » ?", - "Do you really want to suspend this account? All of the user's profiles will be deleted.": "Voulez-vous vraiment suspendre ce compte ? Tous les profils de cet·te utilisateur·ice seront supprimés.", + "Do you really want to ban the account « {emailAccount} » ?": "Voulez-vous vraiment bannir le compte « {emailAccount} » ?", + "Do you really want to ban this account? All of the user's profiles will be deleted.": "Voulez-vous vraiment bannir ce compte ? Tous les profils de cet·te utilisateur·ice seront supprimés.", "Do you really want to suspend this profile? All of the profiles content will be deleted.": "Voulez-vous vraiment suspendre ce profil ? Tout le contenu du profil sera supprimé.", "Do you wish to {create_event} or {explore_events}?": "Voulez-vous {create_event} ou {explore_events} ?", "Do you wish to {create_group} or {explore_groups}?": "Voulez-vous {create_group} ou {explore_groups} ?", @@ -1120,11 +1120,12 @@ "Suggestions:": "Suggestions :", "Suspended": "Suspendu·e", "Suspend group": "Suspendre le groupe", - "Suspend the account": "Suspendre le compte", - "Suspend the account?": "Suspendre le compte ?", + "Ban the account": "Bannir le compte", + "Ban the account?": "Bannir le compte ?", "Suspend the profile": "Suspendre le profil", "Suspend the profile?": "Suspendre le profil ?", "Suspend": "Suspendre", + "Ban": "Bannir", "Tag search": "Recherche par tag", "Task lists": "Listes de tâches", "Technical details": "Détails techniques", @@ -1211,7 +1212,7 @@ "The URL of a poll where the choice for the event date is happening": "L'URL d'un sondage où la date de l'événement doit être choisie", "The URL where the event can be watched live": "L'URL où l'événement peut être visionné en direct", "The URL where the event live can be watched again after it has ended": "L'URL où le direct de l'événement peut être visionné à nouveau une fois terminé", - "The user has been disabled": "L'utilisateur·ice a été désactivé", + "The user has been banned": "L'utilisateur·ice a été banni.e", "The videoconference will be created on {service}": "La visio-conférence sera créée sur {service}", "The Zoom video teleconference URL": "L'URL de visio-conférence Zoom", "The {default_privacy_policy} will be used. They will be translated in the user's language.": "La {default_privacy_policy} sera utilisée. Elle sera traduite dans la langue de l'utilisateur·rice.", @@ -1290,7 +1291,7 @@ "This post is accessible only for members. You have access to it for moderation purposes only because you are an instance moderator.": "Ce billet est accessible uniquement aux membres. Vous y avez accès à des fins de modération car vous êtes modérateur·ice de l'instance.", "This post is accessible only through it's link. Be careful where you post this link.": "Ce billet est accessible uniquement à travers son lien. Faites attention où vous le diffusez.", "This profile is from another instance, the informations shown here may be incomplete.": "Ce profil provient d'une autre instance, les informations montrées ici peuvent être incomplètes.", - "This profile is located on this instance, so you need to {access_the_corresponding_account} to suspend it.": "Ce profil se situe sur cette instance, vous devez donc {access_the_corresponding_account} afin de le suspendre.", + "This profile is located on this instance, so you need to {access_the_corresponding_account} to ban it.": "Ce profil se situe sur cette instance, vous devez donc {access_the_corresponding_account} afin de le bannir.", "This profile was not found": "Ce profil n'a pas été trouvé", "This section lets you add links to external websites to the menu.": "Cette section vous permet d'ajouter des liens vers des sites internet externes au menu.", "This setting will be used to display the website and send you emails in the correct language.": "Ce paramètre sera utilisé pour l'affichage du site et pour vous envoyer des courriels dans la bonne langue.", diff --git a/src/views/Admin/AdminProfile.vue b/src/views/Admin/AdminProfile.vue index 953934a80..a8f5ca21a 100644 --- a/src/views/Admin/AdminProfile.vue +++ b/src/views/Admin/AdminProfile.vue @@ -84,7 +84,7 @@ role="alert" >